[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#821389: xinput: please support distinct device IDs



Package: xinput
Version: 1.6.1-1

Seems that xinput doesn't really know how to identify
the devices, either. Sample session:

% xinput list-props "Logitech USB Receiver"
Warning: There are multiple devices matching 'Logitech USB Receiver'.
To ensure the correct one is selected, please use the device ID, or prefix the
device name with 'pointer:' or 'keyboard:' as appropriate.

unable to find device Logitech USB Receiver

% xinput list-props pointer:"Logitech USB Receiver"
Warning: There are multiple devices matching 'pointer:Logitech USB Receiver'.
To ensure the correct one is selected, please use the device ID, or prefix the
device name with 'pointer:' or 'keyboard:' as appropriate.

unable to find device pointer:Logitech USB Receiver


You have to admit that this is weird.

The device ID might change on the next reboot with other USB
devices plugged in, so using the ID is no option for a config
line in my .xinitrc.

Using device nodes doesn't work, either:

% xinput list-props /dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse
unable to find device /dev/input/by-id/usb-Logitech_USB_Receiver-event-mouse

% xinput list-props /dev/input/by-id/usb-Logitech_USB_Receiver-mouse
unable to find device /dev/input/by-id/usb-Logitech_USB_Receiver-mouse

% xinput list-props usb-Logitech_USB_Receiver-mouse
unable to find device usb-Logitech_USB_Receiver-mouse

% xinput list-props usb-Logitech_USB_Receiver-event-mouse
unable to find device usb-Logitech_USB_Receiver-event-mouse

% ls -al /dev/input/by-id
total 0
drwxr-xr-x 2 root root 120 Apr 11 13:39 .
drwxr-xr-x 4 root root 440 Apr 11 13:39 ..
lrwxrwxrwx 1 root root   9 Apr 11 13:39 usb-Logitech_USB_Receiver-event-if01 -> ../event1
lrwxrwxrwx 1 root root   9 Apr 11 13:39 usb-Logitech_USB_Receiver-event-mouse -> ../event0
lrwxrwxrwx 1 root root   9 Apr 11 13:39 usb-Logitech_USB_Receiver-mouse -> ../mouse0
lrwxrwxrwx 1 root root   9 Apr 11 13:39 usb-Unicomp_Inc_Ruffian6_x_Kbrd_v3_xx-event-kbd -> ../event2


So how can I tell xinput to configure my mouse in a
reproducible way, regardless which and how many other
peripheral devices are plugged into the USB port?


Regards
Harri


Reply to: