Intermittent failure of external USB mouse and keyboard in Xorg

Alad Wenter alad at archlinux.info
Mon Aug 31 04:42:06 PDT 2015


Hello,

On some occasions, my external keyboard (CM Storm Quickfire TKL 6keys) 
is recognized on connection, and working in a virtual terminal, but not 
in X.

Similarly, my USB mouse (Logitech, Inc. M105 Optical Mouse) doesn't 
always work in X. When I relogin (and restart X), the keyboard/mouse do 
work again.

The system is a Lenovo ThinkPad X201 [1] running on Arch Linux, with the 
following application versions:

Xorg -version

X.Org X Server 1.17.2
Release Date: 2015-06-16
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.0.4-2-ARCH x86_64
Current Operating System: Linux arch 4.0.7-2-ARCH #1 SMP PREEMPT Tue Jun 
30 07:50:21 UTC 2015 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux 
root=UUID=3f690f9f-237e-4352-97ff-db32377e325e rw quiet resume=/dev/sda2 
modprobe.blacklist=pcspkr
Build Date: 17 July 2015  05:38:19PM

Current version of pixman: 0.32.6
     Before reporting problems, check http://wiki.x.org
     to make sure that you have the latest version.

xf86-input-keyboard 1.8.1-1
xf86-input-evdev 2.9.2-1
xf86-video-intel 1:2.99.917+381+g5772556-1
systemd 224-1

See [2] for my dmesg output and [3] for the Xorg log. The following 
snippets look relevant to me:

[ 58626.186] (II) config/udev: Adding input device CM Storm Quickfire 
TKL 6keys (/dev/input/event14)
[ 58626.186] (**) CM Storm Quickfire TKL 6keys: Applying InputClass 
"evdev keyboard catchall"
[ 58626.186] (**) CM Storm Quickfire TKL 6keys: Applying InputClass 
"system-keyboard"
[ 58626.186] (II) systemd-logind: returning pre-existing fd for 
/dev/input/event14 13:78
[ 58626.186] (II) Using input driver 'evdev' for 'CM Storm Quickfire TKL 
6keys'
[ 58626.186] (**) CM Storm Quickfire TKL 6keys: always reports core events
[ 58626.186] (**) evdev: CM Storm Quickfire TKL 6keys: Device: 
"/dev/input/event14"
[ 58626.186] (EE) evdev: CM Storm Quickfire TKL 6keys: Unable to query 
fd: No such device
[ 58626.186] (EE) PreInit returned 2 for "CM Storm Quickfire TKL 6keys"
[ 58626.186] (II) UnloadModule: "evdev"
[ 58626.186] (II) systemd-logind: not releasing fd for 13:78, still in use

[ 59334.880] (II) UnloadModule: "evdev"
[ 59334.880] (II) systemd-logind: releasing fd for 13:78
[ 59334.881] (EE) systemd-logind: failed to release device: Device not taken

My logind session is correctly marked active:

% loginctl show-session $XDG_SESSION_ID --property=Active
Active=yes

X is started via startx, using the i3 window manager. I also use a few 
xorg.conf.d snippets [4] and udev rules [5].

Where could I further look in debugging this?

Regards,
Alad

[1] http://www.thinkwiki.org/wiki/Category:X201
[2] http://git.io/vGs5I
[3] http://git.io/vGs7N
[4] http://git.io/vGs5K
[5] http://git.io/vGsd5


More information about the xorg mailing list