Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Mouse doesn't work when plugged into any USB 2 port
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Monq
n00b
n00b


Joined: 11 Feb 2011
Posts: 41
Location: Spain

PostPosted: Sun Dec 10, 2017 8:56 pm    Post subject: [SOLVED] Mouse doesn't work when plugged into any USB 2 port Reply with quote

I have this gaming mouse that is recognised by my computer as a keyboard. I think it exposes two interfaces, both a keyboard and a mouse. I don't know how common that kind of thing is. But the point is that it doesn't work with evdev. This is the log from Xorg when I plug it in.

Code:
[   171.577] (II) config/udev: Adding input device COMPANY USB Device (/dev/input/mouse1)
[   171.577] (II) No input driver specified, ignoring this device.
[   171.577] (II) This device may have been added with another device file.
[   171.671] (II) config/udev: Adding input device COMPANY USB Device (/dev/input/event2)
[   171.671] (**) COMPANY USB Device: Applying InputClass "evdev keyboard catchall"
[   171.671] (**) COMPANY USB Device: Applying InputClass "system-keyboard"
[   171.671] (II) Using input driver 'evdev' for 'COMPANY USB Device'
[   171.671] (II) systemd-logind: got fd for /dev/input/event2 13:66 fd 40 paused 0
[   171.672] (**) COMPANY USB Device: always reports core events
[   171.672] (**) evdev: COMPANY USB Device: Device: "/dev/input/event2"
[   171.672] (--) evdev: COMPANY USB Device: Vendor 0x9da Product 0x7733
[   171.672] (--) evdev: COMPANY USB Device: Found keys
[   171.672] (II) evdev: COMPANY USB Device: Configuring as keyboard
[   171.672] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:09DA:7733.0007/input/input16/event2"
[   171.672] (II) XINPUT: Adding extended input device "COMPANY USB Device" (type: KEYBOARD, id 8)
[   171.672] (**) Option "xkb_rules" "evdev"
[   171.672] (**) Option "xkb_layout" "es"
[   171.672] (II) config/udev: Adding input device COMPANY USB Device (/dev/input/event3)
[   171.672] (**) COMPANY USB Device: Applying InputClass "evdev pointer catchall"
[   171.672] (II) Using input driver 'evdev' for 'COMPANY USB Device'
[   171.780] (EE) systemd-logind: failed to take device /dev/input/event3: Device or resource busy
[   171.780] (**) COMPANY USB Device: always reports core events
[   171.780] (**) evdev: COMPANY USB Device: Device: "/dev/input/event3"
[   171.900] (EE) evdev: COMPANY USB Device: Unable to open evdev device "/dev/input/event3".
[   171.900] (EE) PreInit returned 2 for "COMPANY USB Device"
[   171.900] (II) UnloadModule: "evdev"
[   171.900] (II) config/udev: Adding input device COMPANY USB Device (/dev/input/event4)
[   171.900] (**) COMPANY USB Device: Applying InputClass "evdev keyboard catchall"
[   171.900] (**) COMPANY USB Device: Applying InputClass "system-keyboard"
[   171.900] (II) Using input driver 'evdev' for 'COMPANY USB Device'
[   171.900] (II) systemd-logind: got fd for /dev/input/event4 13:68 fd 56 paused 0
[   171.900] (**) COMPANY USB Device: always reports core events
[   171.900] (**) evdev: COMPANY USB Device: Device: "/dev/input/event4"
[   171.901] (--) evdev: COMPANY USB Device: Vendor 0x9da Product 0x7733
[   171.901] (--) evdev: COMPANY USB Device: Found 1 mouse buttons
[   171.901] (--) evdev: COMPANY USB Device: Found scroll wheel(s)
[   171.901] (--) evdev: COMPANY USB Device: Found relative axes
[   171.901] (II) evdev: COMPANY USB Device: Forcing relative x/y axes to exist.
[   171.901] (--) evdev: COMPANY USB Device: Found absolute axes
[   171.901] (--) evdev: COMPANY USB Device: Found absolute multitouch axes
[   171.901] (--) evdev: COMPANY USB Device: Fake MT device detected
[   171.901] (--) evdev: COMPANY USB Device: Found keys
[   171.901] (II) evdev: COMPANY USB Device: Configuring as mouse
[   171.901] (II) evdev: COMPANY USB Device: Configuring as keyboard
[   171.901] (II) evdev: COMPANY USB Device: Adding scrollwheel support
[   171.901] (**) evdev: COMPANY USB Device: YAxisMapping: buttons 4 and 5
[   171.901] (**) evdev: COMPANY USB Device: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
[   171.901] (**) Option "config_info" "udev:/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.2/0003:09DA:7733.0009/input/input18/event4"
[   171.901] (II) XINPUT: Adding extended input device "COMPANY USB Device" (type: KEYBOARD, id 9)
[   171.901] (**) Option "xkb_rules" "evdev"
[   171.901] (**) Option "xkb_layout" "es"
[   171.901] (II) evdev: COMPANY USB Device: initialized for relative axes.
[   171.901] (WW) evdev: COMPANY USB Device: ignoring absolute axes.
[   171.901] (**) COMPANY USB Device: (accel) keeping acceleration scheme 1
[   171.901] (**) COMPANY USB Device: (accel) acceleration profile 0
[   171.901] (**) COMPANY USB Device: (accel) acceleration factor: 2.000
[   171.901] (**) COMPANY USB Device: (accel) acceleration threshold: 4


libinput shows a similar log.


Last edited by Monq on Sun Dec 10, 2017 11:09 pm; edited 2 times in total
Back to top
View user's profile Send private message
Monq
n00b
n00b


Joined: 11 Feb 2011
Posts: 41
Location: Spain

PostPosted: Sun Dec 10, 2017 10:46 pm    Post subject: Reply with quote

I admit now my initial hypothesis was wrong: the actual problem is that opening the device throws an error:

Code:
$ sudo cat /dev/input/event3
cat: /dev/input/event3: Device or resource busy


What's more surprising: this only happens on two ports of this laptop (USB 2). On the other one (USB 3) it works alright.

fuser/lsof return an empty list.
Back to top
View user's profile Send private message
Monq
n00b
n00b


Joined: 11 Feb 2011
Posts: 41
Location: Spain

PostPosted: Sun Dec 10, 2017 11:08 pm    Post subject: Reply with quote

Solved by enabling lots of stuff in the kernel menuconfig. I enabled a dozen options so I can't really say which one did it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum