You are not logged in.

#1 2017-01-11 22:28:03

deepspawn
Member
Registered: 2008-11-16
Posts: 5

[Solved] Inactive Xorg crashes when new keyboard is connected to USB

Hi I have a tricky situation that been affecting me for a while:

I run two users in two different users and I am constantly switching from one to the other with the usual Ctr+Alt+Fn,
recently I found the following issue:

- Start Lxdm login manager
- Log user1
- $ lxdm -c USER_SWITCH
- Log user2
- Connect a new keyboard device to USB,
- Active Xorg survives, inactive xorg crashes

The crashed Xorg output shows the following:

[306859.107] (II) config/udev: Adding input device Cooler Master Technology Inc. MasterKeys Lite L Combo Mouse (/dev/input/mouse1)
[306859.107] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Mouse: Applying InputClass "system-keyboard"
[306859.107] (II) No input driver specified, ignoring this device.
[306859.107] (II) This device may have been added with another device file.
[306859.141] (II) config/udev: Adding input device Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB) (/dev/input/event15)
[306859.141] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): Applying InputClass "evdev keyboard catchall"
[306859.141] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): Applying InputClass "libinput keyboard catchall"
[306859.141] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): Applying InputClass "system-keyboard"
[306859.141] (II) Using input driver 'libinput' for 'Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB)'
[306859.141] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): always reports core events
[306859.141] (**) Option "Device" "/dev/input/event15"
[306859.141] (**) Option "_source" "server/udev"
[306859.142] (II) input device 'Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB)', /dev/input/event15 is tagged by udev as: Keyboard
[306859.142] (II) input device 'Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB)', /dev/input/event15 is a keyboard
[306859.156] (II) libinput: Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): needs a virtual subdevice
[306859.156] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:10.0/usb3/3-1/3-1.1/3-1.1:1.1/0003:2516:0042.0026/input/input46/event15"
[306859.156] (II) XINPUT: Adding extended input device "Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB)" (type: MOUSE, id 9)
[306859.156] (**) Option "AccelerationScheme" "none"
[306859.156] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): (accel) selected scheme none/0
[306859.156] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): (accel) acceleration factor: 2.000
[306859.156] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): (accel) acceleration threshold: 4
[306859.156] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): Applying InputClass "evdev keyboard catchall"
[306859.156] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): Applying InputClass "libinput keyboard catchall"
[306859.156] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): Applying InputClass "system-keyboard"
[306859.156] (II) Using input driver 'libinput' for 'Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB)'
[306859.156] (**) Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): always reports core events
[306859.156] (**) Option "Device" "/dev/input/event15"
[306859.156] (**) Option "_source" "_driver/libinput"
[306859.157] (II) libinput: Cooler Master Technology Inc. MasterKeys Lite L Combo Keyboard(KB): is a virtual subdevice
[306859.157] (EE)
[306859.157] (EE) Backtrace:
[306859.157] (EE) 0: /usr/lib/xorg-server/Xorg (OsLookupColor+0x139) [0x59cd49]
[306859.158] (EE) 1: /usr/lib/libc.so.6 (__restore_rt+0x0) [0x7efbf5ee40af]
[306859.159] (EE) 2: /usr/lib/libinput.so.10 (libinput_device_config_tap_get_finger_count+0x0) [0x7efbf0a4faa0]
[306859.160] (EE) 3: /usr/lib/xorg/modules/input/libinput_drv.so (_init+0x330e) [0x7efbf0c7d4fe]
[306859.160] (EE) 4: /usr/lib/xorg-server/Xorg (xf86DeleteInput+0x1e2) [0x486a32]
[306859.161] (EE) 5: /usr/lib/xorg/modules/input/libinput_drv.so (_init+0x170f) [0x7efbf0c79f2f]
[306859.161] (EE) 6: /usr/lib/xorg-server/Xorg (ProcessWorkQueue+0x21) [0x43b5d1]
[306859.162] (EE) 7: /usr/lib/xorg-server/Xorg (WaitForSomething+0xac) [0x5953bc]
[306859.162] (EE) 8: /usr/lib/xorg-server/Xorg (SendErrorToClient+0x10e) [0x4365ee]
[306859.162] (EE) 9: /usr/lib/xorg-server/Xorg (remove_fs_handlers+0x463) [0x43a7f3]
[306859.164] (EE) 10: /usr/lib/libc.so.6 (__libc_start_main+0xf1) [0x7efbf5ed1291]
[306859.164] (EE) 11: /usr/lib/xorg-server/Xorg (_start+0x29) [0x4246e9]
[306859.166] (EE) 12: ? (?+0x29) [0x29]
[306859.166] (EE)
[306859.166] (EE) Segmentation fault at address 0x40
[306859.166] (EE)
Fatal server error:
[306859.166] (EE) Caught signal 11 (Segmentation fault). Server aborting
[306859.166] (EE)
[306859.166] (EE)
Please consult the The X.Org Foundation support

Last edited by deepspawn (2017-01-11 23:14:10)

Offline

#2 2017-01-11 23:13:54

deepspawn
Member
Registered: 2008-11-16
Posts: 5

Re: [Solved] Inactive Xorg crashes when new keyboard is connected to USB

Found the solution:

https://bugs.freedesktop.org/show_bug.cgi?id=97117

Built latest xf86-input-libinput-git from AUR and the issue disappeared.

Offline

Board footer

Powered by FluxBB