User avatar
PeterO
Posts: 5951
Joined: Sun Jul 22, 2012 4:14 pm

Official Display Touch interface

Fri Sep 11, 2015 3:19 pm

Can someone check if the touch interface on the official display show up in /dev/input/by-id please?

If so, what is it called ?

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

JimmyN
Posts: 1109
Joined: Wed Mar 18, 2015 7:05 pm
Location: Virginia, USA

Re: Official Display Touch interface

Fri Sep 11, 2015 7:26 pm

Mine doesn't. It adds /dev/input/event0 and /dev/input/mouse0 when the display is connected.

If I plug in my wireless keyboard that will add the sub-directories /dev/input/by-id and /dev/input/by-path but if I unplug the keyboard dongle they disappear again, so the touch interface isn't using them.

User avatar
PeterO
Posts: 5951
Joined: Sun Jul 22, 2012 4:14 pm

Re: Official Display Touch interface

Fri Sep 11, 2015 7:37 pm

Ah OK, that's useful. I prefer to access devices via /dev/input/by-id because that contains useful symbolic links like this :

Code: Select all

petero@HP /dev/input/by-id $ ls -l 
total 0
lrwxrwxrwx 1 root root 9 Sep 11 18:26 usb-CHICONY_HP_USB_Multimedia_Keyboard-event-if01 -> ../event3
lrwxrwxrwx 1 root root 9 Sep 11 18:26 usb-CHICONY_HP_USB_Multimedia_Keyboard-event-kbd -> ../event2
lrwxrwxrwx 1 root root 9 Sep 11 18:26 usb-Logitech_USB_Trackball-event-mouse -> ../event4
lrwxrwxrwx 1 root root 9 Sep 11 18:26 usb-Logitech_USB_Trackball-mouse -> ../mouse0
petero@HP /dev/input/by-id $ 
I don't know if it is compulsory for a device to add these links. I'll get my screen tomorrow so then I'll be able to investigate further myself :-)

PeterO
Discoverer of the PI2 XENON DEATH FLASH!
Interests: C,Python,PIC,Electronics,Ham Radio (G0DZB),1960s British Computers.
"The primary requirement (as we've always seen in your examples) is that the code is readable. " Dougie Lawson

Return to “Advanced users”