Feature request: Entries in /dev/input/by-id
Posted: Mon Sep 14, 2015 8:54 pm
Can appropriate links be added to /dev/input/by-id for the touch screen device please ?
These entries are useful for finding a particular device by name, for example on my desk top machine:
As you can see this means you can find the correct "event" or "mouse" entry to use to pick up events from a particualr device when more that one is present.
Currently on my PI I have entries in /dev/input for a USB keyboard, a USB tracker ball and the touch screen, but no matching entry in /dev/input/by-id for the touch screen.
THese are useful when developing openGL ES code that needs to get user input from a mouse,keyboard or touch screen 
I'm not sure where these entries get created.
PeterO
These entries are useful for finding a particular device by name, for example on my desk top machine:
Code: Select all
petero@HP /dev/input/by-id $ ls -l
total 0
lrwxrwxrwx 1 root root 9 Sep 14 19:03 usb-CHICONY_HP_USB_Multimedia_Keyboard-event-if01 -> ../event3
lrwxrwxrwx 1 root root 9 Sep 14 19:03 usb-CHICONY_HP_USB_Multimedia_Keyboard-event-kbd -> ../event2
lrwxrwxrwx 1 root root 9 Sep 14 19:03 usb-Logitech_USB_Trackball-event-mouse -> ../event4
lrwxrwxrwx 1 root root 9 Sep 14 19:03 usb-Logitech_USB_Trackball-mouse -> ../mouse0
petero@HP /dev/input/by-id $
Currently on my PI I have entries in /dev/input for a USB keyboard, a USB tracker ball and the touch screen, but no matching entry in /dev/input/by-id for the touch screen.
Code: Select all
pi@raspberrypi /dev/input $ ls -l
total 0
drwxr-xr-x 2 root root 120 Sep 14 21:46 by-id
drwxr-xr-x 2 root root 120 Sep 14 21:46 by-path
crw-rw---T 1 root input 13, 64 Jan 1 1970 event0
crw-rw---T 1 root input 13, 65 Jan 1 1970 event1
crw-rw---T 1 root input 13, 66 Jan 1 1970 event2
crw-rw---T 1 root input 13, 67 Sep 14 21:46 event3
crw-rw---T 1 root input 13, 63 Jan 1 1970 mice
crw-rw---T 1 root input 13, 32 Jan 1 1970 mouse0
crw-rw---T 1 root input 13, 33 Sep 14 21:46 mouse1
pi@raspberrypi /dev/input $ cd by-id
pi@raspberrypi /dev/input/by-id $ ls -l
total 0
lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-04f3_0103-event-if01 -> ../event1
lrwxrwxrwx 1 root root 9 Jan 1 1970 usb-04f3_0103-event-kbd -> ../event0
lrwxrwxrwx 1 root root 9 Sep 14 21:46 usb-Logitech_USB_Trackball-event-mouse -> ../event3
lrwxrwxrwx 1 root root 9 Sep 14 21:46 usb-Logitech_USB_Trackball-mouse -> ../mouse1
pi@raspberrypi /dev/input/by-id $
I'm not sure where these entries get created.
PeterO