Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window flickering issue when reconfiguring screen outputs #127

Closed
levaidaniel opened this issue May 4, 2016 · 13 comments
Closed

Window flickering issue when reconfiguring screen outputs #127

levaidaniel opened this issue May 4, 2016 · 13 comments

Comments

@levaidaniel
Copy link

I don't how put my finger on this, but here's the deal:
Given are three screens:

Screen 0: minimum 8 x 8, current 3840 x 1080, maximum 32767 x 32767
eDP1 connected 1600x900+1920+0 (normal left inverted right x axis y axis) 309mm x 174mm
   1600x900      60.04*+  40.03
   1368x768      60.00
   1280x720      60.00
   1024x768      60.00
   1024x576      60.00
   960x540       60.00
   800x600       60.32    56.25
   864x486       60.00
   800x450       60.00
   640x480       59.94
   720x405       60.00
   640x360       60.00
DP1 disconnected (normal left inverted right x axis y axis)
DP1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080     60.00*+
   1600x900      60.00
   1280x1024     75.02    60.02
   1152x864      75.00
   1024x768      75.08    60.00
   800x600       75.00    60.32
   640x480       75.00    60.00
   720x400       70.08
DP1-2 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 509mm x 286mm
   1920x1080     60.00*+
   1600x900      60.00
   1280x1024     75.02    60.02
   1152x864      75.00
   1024x768      75.08    60.00
   800x600       75.00    60.32
   640x480       75.00    60.00
   720x400       70.08
DP1-3 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
HDMI2 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)

When I start spectrwm (3.0.0) with autostarting st (simple term) on ws[1], and thunar on ws[2], and issuing this xrandr command from .xinitrc (so it's automatic):

/usr/bin/xrandr --output eDP1 --same-as DP1-2 --output DP1-1 --auto --output DP1-2 --auto --right-of DP1-1

I end up with a flickering st window, and a barely moving mouse cursor. Eventually spectrwm doesn't react to anything (kbd, mouse), and I have to kill it.
If the only thing I remove from my configuration file is the autostart of simple term, then this doesn't happen (although I'm not sure if this is only because of st).

Is there a way I can effectively debug this?

@marcopeereboom
Copy link
Contributor

Are you using NVIDIA by any chance?

@levaidaniel
Copy link
Author

That's an interesting point, in that I do have and nvidia card in my laptop, but also an Intel, and I'm only using the Intel with Xorg. I also have blacklisted the nouveau kernel module.

# lspci
00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation 8 Series USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation 8 Series HECI #0 (rev 04)
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I218-LM (rev 04)
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 1 (rev e4)
00:1c.3 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 4 (rev e4)
00:1c.4 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 5 (rev e4)
00:1c.5 PCI bridge: Intel Corporation 8 Series PCI Express Root Port 6 (rev e4)
00:1d.0 USB controller: Intel Corporation 8 Series USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation 8 Series LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 8 Series SMBus Controller (rev 04)
01:00.0 SD Host controller: O2 Micro, Inc. SD/MMC Card Reader Controller (rev 01)
02:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)
03:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] (rev a1)
[   114.584]
X.Org X Server 1.18.3
Release Date: 2016-04-04
[   114.584] X Protocol Version 11, Revision 0
[   114.584] Build Operating System: Slackware 14.2 Slackware Linux Project
[   114.584] Current Operating System: Linux daniell-balabit 4.4.8 #1 SMP Fri Apr 22 16:41:57 CDT 2016 x86_64
[   114.584] Kernel command line: BOOT_IMAGE=/vmlinuz-generic-4.4.8 root=/dev/mapper/daniell--balabit-root ro
[   114.584] Build Date: 15 April 2016  11:05:21AM
[   114.584]
[   114.584] Current version of pixman: 0.34.0
[   114.584]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   114.584] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   114.585] (==) Log file: "/var/log/Xorg.0.log", Time: Wed May  4 16:40:59 2016
[   114.588] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   114.588] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   114.589] (==) No Layout section.  Using the first Screen section.
[   114.589] (==) No screen section available. Using defaults.
[   114.589] (**) |-->Screen "Default Screen Section" (0)
[   114.589] (**) |   |-->Monitor "<default monitor>"
[   114.589] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[   114.589] (==) Automatically adding devices
[   114.589] (==) Automatically enabling devices
[   114.589] (==) Automatically adding GPU devices
[   114.589] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   114.589] (WW) The directory "/usr/share/fonts/local" does not exist.
[   114.589]    Entry deleted from font path.
[   114.589] (WW) The directory "/usr/share/fonts/CID" does not exist.
[   114.589]    Entry deleted from font path.
[   114.591] (==) FontPath set to:
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/Type1,
        /usr/share/fonts/misc,
        /usr/share/fonts/75dpi/:unscaled,
        /usr/share/fonts/100dpi/:unscaled,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/cyrillic
[   114.591] (==) ModulePath set to "/usr/lib64/xorg/modules"
[   114.591] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[   114.591] (II) Loader magic: 0x808c00
[   114.591] (II) Module ABI versions:
[   114.591]    X.Org ANSI C Emulation: 0.4
[   114.591]    X.Org Video Driver: 20.0
[   114.591]    X.Org XInput driver : 22.1
[   114.591]    X.Org Server Extension : 9.0
[   114.591] (II) xfree86: Adding drm device (/dev/dri/card0)
[   114.594] (--) PCI:*(0:0:2:0) 8086:0a16:1028:05de rev 11, Mem @ 0xf6400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[   114.594] (--) PCI: (0:3:0:0) 10de:1140:1028:05de rev 161, Mem @ 0xf5000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[   114.594] (II) Open ACPI successful (/var/run/acpid.socket)
[   114.594] (II) LoadModule: "glx"
[   114.596] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   114.599] (II) Module glx: vendor="X.Org Foundation"
[   114.599]    compiled for 1.18.3, module version = 1.0.0
[   114.599]    ABI class: X.Org Server Extension, version 9.0
[   114.599] (==) AIGLX enabled
[   114.599] (==) Matched intel as autoconfigured driver 0
[   114.599] (==) Matched intel as autoconfigured driver 1
[   114.599] (==) Matched modesetting as autoconfigured driver 2
[   114.599] (==) Matched fbdev as autoconfigured driver 3
[   114.599] (==) Matched vesa as autoconfigured driver 4
[   114.599] (==) Assigned the driver to the xf86ConfigLayout
[   114.599] (II) LoadModule: "intel"
[   114.600] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[   114.603] (II) Module intel: vendor="X.Org Foundation"
[   114.603]    compiled for 1.18.3, module version = 2.99.917
[   114.603]    Module class: X.Org Video Driver
[   114.603]    ABI class: X.Org Video Driver, version 20.0
[   114.603] (II) LoadModule: "modesetting"
[   114.603] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[   114.604] (II) Module modesetting: vendor="X.Org Foundation"
[   114.604]    compiled for 1.18.3, module version = 1.18.3
[   114.604]    Module class: X.Org Video Driver
[   114.604]    ABI class: X.Org Video Driver, version 20.0
[   114.604] (II) LoadModule: "fbdev"
[   114.604] (WW) Warning, couldn't open module fbdev
[   114.604] (II) UnloadModule: "fbdev"
[   114.604] (II) Unloading fbdev
[   114.604] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   114.604] (II) LoadModule: "vesa"
[   114.604] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[   114.605] (II) Module vesa: vendor="X.Org Foundation"
[   114.605]    compiled for 1.18.0, module version = 2.3.4
[   114.605]    Module class: X.Org Video Driver
[   114.605]    ABI class: X.Org Video Driver, version 20.0
[   114.605] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43
[   114.605] (II) intel: Driver for Intel(R) HD Graphics: 2000-6000
[   114.605] (II) intel: Driver for Intel(R) Iris(TM) Graphics: 5100, 6100
[   114.605] (II) intel: Driver for Intel(R) Iris(TM) Pro Graphics: 5200, 6200, P6300
[   114.605] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   114.605] (II) VESA: driver for VESA chipsets: vesa
[   114.605] (--) using VT number 7

[   114.608] (II) intel(0): Using Kernel Mode Setting driver: i915, version 1.6.0 20151010
[   114.608] (II) intel(0): SNA compiled from 2.99.917-638-g46caee8
[   114.609] (WW) Falling back to old probe method for modesetting
[   114.609] (WW) Falling back to old probe method for vesa
[   114.610] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4400
[   114.610] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2; using a maximum of 2 threads
[   114.610] (II) intel(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[   114.610] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[   114.610] (==) intel(0): RGB weight 888
[   114.610] (==) intel(0): Default visual is TrueColor
[   114.610] (II) intel(0): Output eDP1 has no monitor section
[   114.615] (--) intel(0): Found backlight control interface intel_backlight (type 'raw') for output eDP1
[   114.615] (II) intel(0): Enabled output eDP1
[   114.615] (II) intel(0): Output DP1 has no monitor section
[   114.615] (II) intel(0): Enabled output DP1
[   114.615] (II) intel(0): Output HDMI1 has no monitor section
[   114.615] (II) intel(0): Enabled output HDMI1
[   114.615] (II) intel(0): Output HDMI2 has no monitor section
[   114.615] (II) intel(0): Enabled output HDMI2
[   114.615] (II) intel(0): Output DP1-1 has no monitor section
[   114.615] (II) intel(0): Enabled output DP1-1
[   114.615] (II) intel(0): Output DP1-2 has no monitor section
[   114.615] (II) intel(0): Enabled output DP1-2
[   114.615] (II) intel(0): Output DP1-3 has no monitor section
[   114.615] (II) intel(0): Enabled output DP1-3
[   114.615] (--) intel(0): Using a maximum size of 256x256 for hardware cursors
[   114.615] (II) intel(0): Output VIRTUAL1 has no monitor section
[   114.615] (II) intel(0): Enabled output VIRTUAL1
[   114.615] (--) intel(0): Output eDP1 using initial mode 1600x900 on pipe 0
[   114.615] (--) intel(0): Output DP1-1 using initial mode 1600x900 on pipe 1
[   114.615] (--) intel(0): Output DP1-2 using initial mode 1600x900 on pipe 2
[   114.615] (==) intel(0): TearFree disabled
[   114.615] (==) intel(0): DPI set to (96, 96)
[   114.615] (II) Loading sub module "dri3"
[   114.615] (II) LoadModule: "dri3"
[   114.615] (II) Module "dri3" already built-in
[   114.615] (II) Loading sub module "dri2"
[   114.615] (II) LoadModule: "dri2"
[   114.615] (II) Module "dri2" already built-in
[   114.615] (II) Loading sub module "present"
[   114.615] (II) LoadModule: "present"
[   114.615] (II) Module "present" already built-in
[   114.616] (II) UnloadModule: "modesetting"
[   114.616] (II) Unloading modesetting
[   114.616] (II) UnloadModule: "vesa"
[   114.616] (II) Unloading vesa
[   114.616] (==) Depth 24 pixmap format is 32 bpp
[   114.620] (II) intel(0): SNA initialized with Haswell (gen7.5, gt2) backend
[   114.620] (==) intel(0): Backing store enabled
[   114.620] (==) intel(0): Silken mouse enabled
[   114.620] (II) intel(0): HW Cursor enabled
[   114.620] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   114.621] (==) intel(0): DPMS enabled
[   114.621] (==) intel(0): Display hotplug detection enabled
[   114.621] (II) intel(0): [DRI2] Setup complete
[   114.621] (II) intel(0): [DRI2]   DRI driver: i965
[   114.621] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[   114.621] (II) intel(0): direct rendering: DRI2 DRI3 enabled
[   114.621] (II) intel(0): hardware support for Present enabled
[   114.621] (--) RandR disabled
[   114.644] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[   114.644] (II) AIGLX: enabled GLX_ARB_create_context
[   114.644] (II) AIGLX: enabled GLX_ARB_create_context_profile
[   114.644] (II) AIGLX: enabled GLX_EXT_create_context_es{,2}_profile
[   114.644] (II) AIGLX: enabled GLX_INTEL_swap_event
[   114.644] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[   114.644] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[   114.644] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[   114.644] (II) AIGLX: enabled GLX_EXT_fbconfig_packed_float
[   114.644] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[   114.644] (II) AIGLX: enabled GLX_ARB_create_context_robustness
[   114.644] (II) AIGLX: Loaded and initialized i965
[   114.644] (II) GLX: Initialized DRI2 GL provider for screen 0
[   114.646] (II) intel(0): switch to mode 1600x900@60.0 on eDP1 using pipe 0, position (0, 0), rotation normal, reflection none
[   114.646] (II) intel(0): switch to mode 1600x900@60.0 on DP1-1 using pipe 1, position (0, 0), rotation normal, reflection none
[   114.646] (II) intel(0): switch to mode 1600x900@60.0 on DP1-2 using pipe 2, position (0, 0), rotation normal, reflection none
[   114.646] (II) intel(0): Setting screen physical size to 423 x 238
[   114.717] (II) config/udev: Adding input device Power Button (/dev/input/event6)
[   114.717] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   114.717] (**) Power Button: Applying InputClass "keyboard-all"
[   114.717] (**) Power Button: Applying InputClass "keyboard-all"
[   114.717] (II) LoadModule: "evdev"
[   114.717] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[   114.719] (II) Module evdev: vendor="X.Org Foundation"
[   114.719]    compiled for 1.18.3, module version = 2.10.2
[   114.719]    Module class: X.Org XInput Driver
[   114.719]    ABI class: X.Org XInput driver, version 22.1
[   114.719] (II) Using input driver 'evdev' for 'Power Button'
[   114.719] (**) Power Button: always reports core events
[   114.719] (**) evdev: Power Button: Device: "/dev/input/event6"
[   114.719] (--) evdev: Power Button: Vendor 0 Product 0x1
[   114.719] (--) evdev: Power Button: Found keys
[   114.719] (II) evdev: Power Button: Configuring as keyboard
[   114.719] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input7/event6"
[   114.719] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[   114.719] (**) Option "xkb_rules" "evdev"
[   114.719] (**) Option "xkb_layout" "us,hu"
[   114.719] (**) Option "xkb_options" "terminate:ctrl_alt_bksp,grp:lctrl_lwin_rctrl_menu,grp:shift_caps_toggle"
[   114.737] (II) config/udev: Adding input device Video Bus (/dev/input/event11)
[   114.737] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   114.737] (**) Video Bus: Applying InputClass "keyboard-all"
[   114.737] (**) Video Bus: Applying InputClass "keyboard-all"
[   114.737] (II) Using input driver 'evdev' for 'Video Bus'
[   114.737] (**) Video Bus: always reports core events
[   114.737] (**) evdev: Video Bus: Device: "/dev/input/event11"
[   114.737] (--) evdev: Video Bus: Vendor 0 Product 0x6
[   114.737] (--) evdev: Video Bus: Found keys
[   114.737] (II) evdev: Video Bus: Configuring as keyboard
[   114.737] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:01/input/input12/event11"
[   114.737] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[   114.737] (**) Option "xkb_rules" "evdev"
[   114.737] (**) Option "xkb_layout" "us,hu"
[   114.737] (**) Option "xkb_options" "terminate:ctrl_alt_bksp,grp:lctrl_lwin_rctrl_menu,grp:shift_caps_toggle"
[   114.737] (II) config/udev: Adding input device Video Bus (/dev/input/event10)
[   114.737] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   114.737] (**) Video Bus: Applying InputClass "keyboard-all"
[   114.737] (**) Video Bus: Applying InputClass "keyboard-all"
[   114.737] (II) Using input driver 'evdev' for 'Video Bus'
[   114.737] (**) Video Bus: always reports core events
[   114.737] (**) evdev: Video Bus: Device: "/dev/input/event10"
[   114.737] (--) evdev: Video Bus: Vendor 0 Product 0x6
[   114.737] (--) evdev: Video Bus: Found keys
[   114.737] (II) evdev: Video Bus: Configuring as keyboard
[   114.737] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:08/LNXVIDEO:00/input/input11/event10"
[   114.737] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[   114.737] (**) Option "xkb_rules" "evdev"
[   114.737] (**) Option "xkb_layout" "us,hu"
[   114.737] (**) Option "xkb_options" "terminate:ctrl_alt_bksp,grp:lctrl_lwin_rctrl_menu,grp:shift_caps_toggle"
[   114.737] (II) config/udev: Adding input device Power Button (/dev/input/event4)
[   114.737] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   114.737] (**) Power Button: Applying InputClass "keyboard-all"
[   114.737] (**) Power Button: Applying InputClass "keyboard-all"
[   114.737] (II) Using input driver 'evdev' for 'Power Button'
[   114.737] (**) Power Button: always reports core events
[   114.737] (**) evdev: Power Button: Device: "/dev/input/event4"
[   114.737] (--) evdev: Power Button: Vendor 0 Product 0x1
[   114.737] (--) evdev: Power Button: Found keys
[   114.737] (II) evdev: Power Button: Configuring as keyboard
[   114.737] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input5/event4"
[   114.737] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[   114.737] (**) Option "xkb_rules" "evdev"
[   114.737] (**) Option "xkb_layout" "us,hu"
[   114.737] (**) Option "xkb_options" "terminate:ctrl_alt_bksp,grp:lctrl_lwin_rctrl_menu,grp:shift_caps_toggle"
[   114.737] (II) config/udev: Adding input device Lid Switch (/dev/input/event3)
[   114.737] (II) No input driver specified, ignoring this device.
[   114.737] (II) This device may have been added with another device file.
[   114.738] (II) config/udev: Adding input device Sleep Button (/dev/input/event5)
[   114.738] (**) Sleep Button: Applying InputClass "evdev keyboard catchall"
[   114.738] (**) Sleep Button: Applying InputClass "keyboard-all"
[   114.738] (**) Sleep Button: Applying InputClass "keyboard-all"
[   114.738] (II) Using input driver 'evdev' for 'Sleep Button'
[   114.738] (**) Sleep Button: always reports core events
[   114.738] (**) evdev: Sleep Button: Device: "/dev/input/event5"
[   114.738] (--) evdev: Sleep Button: Vendor 0 Product 0x3
[   114.738] (--) evdev: Sleep Button: Found keys
[   114.738] (II) evdev: Sleep Button: Configuring as keyboard
[   114.738] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0E:00/input/input6/event5"
[   114.738] (II) XINPUT: Adding extended input device "Sleep Button" (type: KEYBOARD, id 10)
[   114.738] (**) Option "xkb_rules" "evdev"
[   114.738] (**) Option "xkb_layout" "us,hu"
[   114.738] (**) Option "xkb_options" "terminate:ctrl_alt_bksp,grp:lctrl_lwin_rctrl_menu,grp:shift_caps_toggle"
[   114.738] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=3 (/dev/input/event13)
[   114.738] (II) No input driver specified, ignoring this device.
[   114.738] (II) This device may have been added with another device file.
[   114.738] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=7 (/dev/input/event14)
[   114.738] (II) No input driver specified, ignoring this device.
[   114.738] (II) This device may have been added with another device file.
[   114.738] (II) config/udev: Adding input device HDA Intel HDMI HDMI/DP,pcm=8 (/dev/input/event15)
[   114.738] (II) No input driver specified, ignoring this device.
[   114.738] (II) This device may have been added with another device file.
[   114.738] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/event1)
[   114.738] (**) USB Optical Mouse: Applying InputClass "evdev pointer catchall"
[   114.738] (II) Using input driver 'evdev' for 'USB Optical Mouse'
[   114.738] (**) USB Optical Mouse: always reports core events
[   114.738] (**) evdev: USB Optical Mouse: Device: "/dev/input/event1"
[   114.789] (--) evdev: USB Optical Mouse: Vendor 0x1bcf Product 0x5
[   114.789] (--) evdev: USB Optical Mouse: Found 9 mouse buttons
[   114.789] (--) evdev: USB Optical Mouse: Found scroll wheel(s)
[   114.789] (--) evdev: USB Optical Mouse: Found relative axes
[   114.789] (--) evdev: USB Optical Mouse: Found x and y relative axes
[   114.789] (II) evdev: USB Optical Mouse: Configuring as mouse
[   114.789] (II) evdev: USB Optical Mouse: Adding scrollwheel support
[   114.789] (**) evdev: USB Optical Mouse: YAxisMapping: buttons 4 and 5
[   114.789] (**) evdev: USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[   114.789] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.1/2-4.1:1.0/0003:1BCF:0005.0001/input/input2/event1"
[   114.789] (II) XINPUT: Adding extended input device "USB Optical Mouse" (type: MOUSE, id 11)
[   114.789] (II) evdev: USB Optical Mouse: initialized for relative axes.
[   114.789] (**) USB Optical Mouse: (accel) keeping acceleration scheme 1
[   114.789] (**) USB Optical Mouse: (accel) acceleration profile 0
[   114.789] (**) USB Optical Mouse: (accel) acceleration factor: 2.000
[   114.789] (**) USB Optical Mouse: (accel) acceleration threshold: 4
[   114.789] (II) config/udev: Adding input device USB Optical Mouse (/dev/input/mouse0)
[   114.789] (II) No input driver specified, ignoring this device.
[   114.789] (II) This device may have been added with another device file.
[   114.789] (II) config/udev: Adding input device CHICONY USB NetVista Full Width Keyboard (/dev/input/event2)
[   114.789] (**) CHICONY USB NetVista Full Width Keyboard: Applying InputClass "evdev keyboard catchall"
[   114.789] (**) CHICONY USB NetVista Full Width Keyboard: Applying InputClass "keyboard-all"
[   114.789] (**) CHICONY USB NetVista Full Width Keyboard: Applying InputClass "keyboard-all"
[   114.789] (II) Using input driver 'evdev' for 'CHICONY USB NetVista Full Width Keyboard'
[   114.789] (**) CHICONY USB NetVista Full Width Keyboard: always reports core events
[   114.789] (**) evdev: CHICONY USB NetVista Full Width Keyboard: Device: "/dev/input/event2"
[   114.790] (--) evdev: CHICONY USB NetVista Full Width Keyboard: Vendor 0x4b3 Product 0x3025
[   114.790] (--) evdev: CHICONY USB NetVista Full Width Keyboard: Found keys
[   114.790] (II) evdev: CHICONY USB NetVista Full Width Keyboard: Configuring as keyboard
[   114.790] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb2/2-4/2-4.2/2-4.2:1.0/0003:04B3:3025.0002/input/input3/event2"
[   114.790] (II) XINPUT: Adding extended input device "CHICONY USB NetVista Full Width Keyboard" (type: KEYBOARD, id 12)
[   114.790] (**) Option "xkb_rules" "evdev"
[   114.790] (**) Option "xkb_layout" "us,hu"
[   114.790] (**) Option "xkb_options" "terminate:ctrl_alt_bksp,grp:lctrl_lwin_rctrl_menu,grp:shift_caps_toggle"
[   114.790] (II) config/udev: Adding input device Laptop_Integrated_Webcam_HD (/dev/input/event12)
[   114.790] (**) Laptop_Integrated_Webcam_HD: Applying InputClass "evdev keyboard catchall"
[   114.790] (**) Laptop_Integrated_Webcam_HD: Applying InputClass "keyboard-all"
[   114.790] (**) Laptop_Integrated_Webcam_HD: Applying InputClass "keyboard-all"
[   114.790] (II) Using input driver 'evdev' for 'Laptop_Integrated_Webcam_HD'
[   114.790] (**) Laptop_Integrated_Webcam_HD: always reports core events
[   114.790] (**) evdev: Laptop_Integrated_Webcam_HD: Device: "/dev/input/event12"
[   114.790] (--) evdev: Laptop_Integrated_Webcam_HD: Vendor 0xc45 Product 0x649d
[   114.790] (--) evdev: Laptop_Integrated_Webcam_HD: Found keys
[   114.790] (II) evdev: Laptop_Integrated_Webcam_HD: Configuring as keyboard
[   114.790] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:14.0/usb2/2-6/2-6:1.0/input/input13/event12"
[   114.790] (II) XINPUT: Adding extended input device "Laptop_Integrated_Webcam_HD" (type: KEYBOARD, id 13)
[   114.790] (**) Option "xkb_rules" "evdev"
[   114.790] (**) Option "xkb_layout" "us,hu"
[   114.790] (**) Option "xkb_options" "terminate:ctrl_alt_bksp,grp:lctrl_lwin_rctrl_menu,grp:shift_caps_toggle"
[   114.790] (II) config/udev: Adding input device HDA Intel PCH Front Headphone (/dev/input/event9)
[   114.790] (II) No input driver specified, ignoring this device.
[   114.790] (II) This device may have been added with another device file.
[   114.790] (II) config/udev: Adding input device HDA Intel PCH Dock Mic (/dev/input/event7)
[   114.790] (II) No input driver specified, ignoring this device.
[   114.790] (II) This device may have been added with another device file.
[   114.790] (II) config/udev: Adding input device HDA Intel PCH Dock Line Out (/dev/input/event8)
[   114.790] (II) No input driver specified, ignoring this device.
[   114.790] (II) This device may have been added with another device file.
[   114.790] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event0)
[   114.790] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[   114.790] (**) AT Translated Set 2 keyboard: Applying InputClass "keyboard-all"
[   114.790] (**) AT Translated Set 2 keyboard: Applying InputClass "keyboard-all"
[   114.790] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[   114.790] (**) AT Translated Set 2 keyboard: always reports core events
[   114.790] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event0"
[   114.790] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[   114.790] (--) evdev: AT Translated Set 2 keyboard: Found keys
[   114.790] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[   114.790] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input0/event0"
[   114.790] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 14)
[   114.790] (**) Option "xkb_rules" "evdev"
[   114.790] (**) Option "xkb_layout" "us,hu"
[   114.790] (**) Option "xkb_options" "terminate:ctrl_alt_bksp,grp:lctrl_lwin_rctrl_menu,grp:shift_caps_toggle"
[   114.791] (II) config/udev: Adding input device AlpsPS/2 ALPS GlidePoint (/dev/input/event17)
[   114.791] (**) AlpsPS/2 ALPS GlidePoint: Applying InputClass "evdev touchpad catchall"
[   114.791] (**) AlpsPS/2 ALPS GlidePoint: Applying InputClass "touchpad"
[   114.791] (II) LoadModule: "synaptics"
[   114.791] (II) Loading /usr/lib64/xorg/modules/input/synaptics_drv.so
[   114.791] (II) Module synaptics: vendor="X.Org Foundation"
[   114.791]    compiled for 1.18.0, module version = 1.8.3
[   114.791]    Module class: X.Org XInput Driver
[   114.791]    ABI class: X.Org XInput driver, version 22.1
[   114.791] (II) Using input driver 'synaptics' for 'AlpsPS/2 ALPS GlidePoint'
[   114.791] (**) AlpsPS/2 ALPS GlidePoint: always reports core events
[   114.791] (**) Option "Device" "/dev/input/event17"
[   114.818] (II) synaptics: AlpsPS/2 ALPS GlidePoint: ignoring touch events for semi-multitouch device
[   114.818] (--) synaptics: AlpsPS/2 ALPS GlidePoint: x-axis range 0 - 2000 (res 24)
[   114.818] (--) synaptics: AlpsPS/2 ALPS GlidePoint: y-axis range 0 - 1400 (res 27)
[   114.818] (--) synaptics: AlpsPS/2 ALPS GlidePoint: pressure range 0 - 127
[   114.818] (II) synaptics: AlpsPS/2 ALPS GlidePoint: device does not report finger width.
[   114.818] (--) synaptics: AlpsPS/2 ALPS GlidePoint: buttons: left right middle double triple
[   114.818] (--) synaptics: AlpsPS/2 ALPS GlidePoint: Vendor 0x2 Product 0x8
[   114.818] (--) synaptics: AlpsPS/2 ALPS GlidePoint: invalid finger width range.  defaulting to 0 - 15
[   114.818] (**) Option "TapButton1" "1"
[   114.818] (**) Option "TapButton2" "2"
[   114.818] (**) Option "TapButton3" "3"
[   114.818] (--) synaptics: AlpsPS/2 ALPS GlidePoint: touchpad found
[   114.818] (**) AlpsPS/2 ALPS GlidePoint: always reports core events
[   114.830] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input14/event17"
[   114.830] (II) XINPUT: Adding extended input device "AlpsPS/2 ALPS GlidePoint" (type: TOUCHPAD, id 15)
[   114.830] (**) synaptics: AlpsPS/2 ALPS GlidePoint: (accel) MinSpeed is now constant deceleration 2.5
[   114.830] (**) synaptics: AlpsPS/2 ALPS GlidePoint: (accel) MaxSpeed is now 1.75
[   114.830] (**) synaptics: AlpsPS/2 ALPS GlidePoint: (accel) AccelFactor is now 0.082
[   114.830] (**) AlpsPS/2 ALPS GlidePoint: (accel) keeping acceleration scheme 1
[   114.830] (**) AlpsPS/2 ALPS GlidePoint: (accel) acceleration profile 1
[   114.830] (**) AlpsPS/2 ALPS GlidePoint: (accel) acceleration factor: 2.000
[   114.830] (**) AlpsPS/2 ALPS GlidePoint: (accel) acceleration threshold: 4
[   114.830] (--) synaptics: AlpsPS/2 ALPS GlidePoint: touchpad found
[   114.830] (II) config/udev: Adding input device AlpsPS/2 ALPS GlidePoint (/dev/input/mouse1)
[   114.830] (II) No input driver specified, ignoring this device.
[   114.830] (II) This device may have been added with another device file.
[   114.830] (II) config/udev: Adding input device Dell WMI hotkeys (/dev/input/event16)
[   114.830] (**) Dell WMI hotkeys: Applying InputClass "evdev keyboard catchall"
[   114.830] (**) Dell WMI hotkeys: Applying InputClass "keyboard-all"
[   114.830] (**) Dell WMI hotkeys: Applying InputClass "keyboard-all"
[   114.830] (II) Using input driver 'evdev' for 'Dell WMI hotkeys'
[   114.830] (**) Dell WMI hotkeys: always reports core events
[   114.830] (**) evdev: Dell WMI hotkeys: Device: "/dev/input/event16"
[   114.830] (--) evdev: Dell WMI hotkeys: Vendor 0 Product 0
[   114.830] (--) evdev: Dell WMI hotkeys: Found keys
[   114.830] (II) evdev: Dell WMI hotkeys: Configuring as keyboard
[   114.830] (**) Option "config_info" "udev:/sys/devices/virtual/input/input18/event16"
[   114.830] (II) XINPUT: Adding extended input device "Dell WMI hotkeys" (type: KEYBOARD, id 16)
[   114.830] (**) Option "xkb_rules" "evdev"
[   114.830] (**) Option "xkb_layout" "us,hu"
[   114.830] (**) Option "xkb_options" "terminate:ctrl_alt_bksp,grp:lctrl_lwin_rctrl_menu,grp:shift_caps_toggle"
[   116.619] (II) intel(0): EDID vendor "AUO", prod id 8766
[   116.619] (II) intel(0): Printing DDC gathered Modelines:
[   116.619] (II) intel(0): Modeline "1600x900"x0.0  129.60  1600 1664 1706 2326  900 903 906 928 +hsync -vsync (55.7 kHz eP)
[   116.619] (II) intel(0): Modeline "1600x900"x0.0   86.40  1600 1664 1706 2326  900 903 906 928 +hsync -vsync (37.1 kHz e)
[   116.908] (II) intel(0): resizing framebuffer to 3840x1080
[   116.942] (II) intel(0): switch to mode 1600x900@60.0 on eDP1 using pipe 0, position (1920, 0), rotation normal, reflection none
[   116.943] (II) intel(0): switch to mode 1920x1080@60.0 on DP1-1 using pipe 1, position (0, 0), rotation normal, reflection none
[   116.977] (II) intel(0): switch to mode 1920x1080@60.0 on DP1-2 using pipe 2, position (1920, 0), rotation normal, reflection none

@LordReg
Copy link
Contributor

LordReg commented May 4, 2016

Could you rebuild spectrwm with CFLAGS="-DSWM_DEBUG" and capture the stderr output of spectrwm starting up with the glitch?
e.g. exec spectrwm > ~/spectrwm.log 2>&1 in .xinitrc

@LordReg LordReg closed this as completed May 4, 2016
@LordReg LordReg reopened this May 4, 2016
@levaidaniel
Copy link
Author

Definitely! However, it became like a 40Megs text file, 1.5M compressed. Can/should I upload it here, or send it to you via email (my profile has my address, just drop me a mail, and I can reply)?

@wavexx
Copy link
Contributor

wavexx commented May 5, 2016

Was the window iconified? I get exactly this behavior in #120, which might actually not be related to iconification after all.

@levaidaniel
Copy link
Author

No it wasn't iconified, it was just open and visible on ws[1] (after autorun-d).

@LordReg
Copy link
Contributor

LordReg commented May 6, 2016

just drop me a mail, and I can reply

sent

@wavexx
Copy link
Contributor

wavexx commented May 7, 2016

Indeed, after a few tries, it seems that iconification has nothing to do with it. although iconified windows also flicker. I still get the behavior even with just a regular window. I'm just using the xorg intel driver.

@LordReg
Copy link
Contributor

LordReg commented May 9, 2016

@levaidaniel thanks for the log, it was helpful

I pushed a new branch (randr_unmap_window_fix) that should fix this issue. Please give it a try and let me know if it resolves the issue.

@levaidaniel
Copy link
Author

It segfaults for me, unfortunately:

GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-slackware-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./spectrwm...done.
[New LWP 5718]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/home/daniell/stuff/progs/spectrwm/linux/spectrwm'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000000000040c2ac in set_region (r=0x2191cd0) at ../spectrwm.c:4126
4126                    xcb_change_window_attributes(conn, rf->bar->id,
(gdb) #0  0x000000000040c2ac in set_region (r=0x2191cd0) at ../spectrwm.c:4126
#1  0x000000000040c428 in focus_region (r=0x2191cd0) at ../spectrwm.c:4164
#2  0x000000000041bb21 in motionnotify (e=0x21930c0) at ../spectrwm.c:10999
#3  0x000000000041e223 in event_handle (evt=0x21930c0) at ../spectrwm.c:12015
#4  0x000000000041e852 in main (argc=1, argv=0x7ffe5748bd28) at ../spectrwm.c:12195
(gdb) #0  0x000000000040c2ac in set_region (r=0x2191cd0) at ../spectrwm.c:4126
        rf = 0x207cc30
        vals = {0, 0}
#1  0x000000000040c428 in focus_region (r=0x2191cd0) at ../spectrwm.c:4164
        nfw = 0x2060968
        old_r = 0x207cc30
#2  0x000000000041bb21 in motionnotify (e=0x21930c0) at ../spectrwm.c:10999
        r = 0x2191cd0
        i = 0
        num_screens = 1
#3  0x000000000041e223 in event_handle (evt=0x21930c0) at ../spectrwm.c:12015
        type = 6 '\006'
#4  0x000000000041e852 in main (argc=1, argv=0x7ffe5748bd28) at ../spectrwm.c:12195
        pfd = {{fd = 3, events = 1, revents = 1}, {fd = 0, events = 1, revents = 0}}
        sact = {__sigaction_handler = {sa_handler = 0x407291 <sighdlr>, sa_sigaction = 0x407291 <sighdlr>}, sa_mask = {__val = {0 <repeats 16 times>}}, sa_flags = 1, sa_restorer = 0x0}
        sb = {st_dev = 64773, st_ino = 404, st_nlink = 1, st_mode = 33184, st_uid = 1000, st_gid = 1000, __pad0 = 0, st_rdev = 0, st_size = 5558, st_blksize = 4096, st_blocks = 16, st_atim = {
            tv_sec = 1462437820, tv_nsec = 349415415}, st_mtim = {tv_sec = 1462437820, tv_nsec = 350415411}, st_ctim = {tv_sec = 1462437820, tv_nsec = 359415372}, __glibc_reserved = {0, 0, 0}}
        pwd = 0x7efcd2448e20 <resbuf.10110>
        r = 0x0
        evt = 0x21930c0
        xfd = 3
        i = 1
        num_screens = 1
        num_readable = 1
        conf = "/home/daniell/.spectrwm.conf\000~\000\000\300\352\334\323\374~\000\000\032\000\000\000\000\000\000\000/\000\000\000\001\000\000\000\017\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\060\335\323\374~\000\000\200\254HW\376\177\000\000\027\370\276\323\374~\000\000\240\361\377\177\003\000\000\000\200\254HW\376\177\000\000\340\352\334\323\374~\000\000\370\254\276\323\374~\000\000\260\254HW\376\177\000\000\027\370\276\323\003\000\000\000\003\000\000\000\000\000\000\000\370H \000\000\000\000\000\370\310\003\320\374~\000\000@\253HW\376\177\000\000@\252HW\376\177\000\000\000\000\000\000\000\000\000\000 \255HW\376\177\000\000"...
        cfile = 0x7ffe5748aac0 "/home/daniell/.spectrwm.conf"
        stdin_ready = false
        startup = false
(gdb) 4121              /* Unfocus old region bar. */
4122            if (rf != NULL) {
4123                    if (rf == r)
4124                            return;
4125
4126                    xcb_change_window_attributes(conn, rf->bar->id,
4127                        XCB_CW_BORDER_PIXEL,
4128                        &r->s->c[SWM_S_COLOR_BAR_BORDER_UNFOCUS].pixel);
4129            }
4130
(gdb) quit

@LordReg
Copy link
Contributor

LordReg commented May 9, 2016

Committed a fix.

@levaidaniel
Copy link
Author

levaidaniel commented May 9, 2016

Yep, now it seems OK!

@LordReg LordReg closed this as completed in 68a43ba May 9, 2016
@wavexx
Copy link
Contributor

wavexx commented May 12, 2016

Huh, I just had the same behavior when opening a new tool window in libreoffice (not changing the screen configuration).

Incidentally, I noticed that over time, the status bar loses the "focused" border over the course of a day as well. There is still some state to reset properly somewhere, but I couldn't reproduce either easily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants