generate by-id links for Wacom USB TabletPC devices
PATCH 1/1 generate by-id links for Wacom USB TabletPC devices
From: Danny Kukawka <[email protected]>
Subject: generate by-id links for Wacom USB TabletPC devices
Generate these persistent links for Wacom USB TabletPC input devices under /dev/input/by-id/ :
* usb-Tablet_ISD-V4-event-stylus
* usb-Tablet_ISD-V4-stylus
* usb-Tablet_ISD-V4-event-touch
* usb-Tablet_ISD-V4-touch
--- 60-persistent-input.rules | 2 ++ 1 file changed, 2 insertions(+)
rules/rules.d/60-persistent-input.rules +0 -0
@@ -15,6 +15,8 @@ DRIVERS="atkbd", ENV{ID_CLASS}="kbd" DRIVERS="psmouse", ENV{ID_CLASS}="mouse" ATTRS{name}="*dvb*|*DVB*|* IR *", ENV{ID_CLASS}="ir" ATTRS{modalias}="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14A,*r*",
ENV{ID_CLASS}="joystick"
+DRIVERS="wacom", ENV{ID_SERIAL}="Tablet_ISD-V4", ENV{ID_CLASS}!="mouse", ENV{ID_CLASS}="touch" +DRIVERS="wacom", ENV{ID_SERIAL}="Tablet_ISD-V4", ENV{ID_CLASS}="mouse", ENV{ID_CLASS}="stylus"
# fill empty serial number
ENV{ID_CLASS}="?*", ENV{ID_SERIAL}="", ENV{ID_SERIAL}="noserial"Quoted 10 lines · Danny Kukawka
From: Danny Kukawka <[email protected]>
Subject: generate by-id links for Wacom USB TabletPC devicesGenerate these persistent links for Wacom USB TabletPC input devices under
/dev/input/by-id/:* usb-Tablet_ISD-V4-event-stylus
* usb-Tablet_ISD-V4-stylus
* usb-Tablet_ISD-V4-event-touch
* usb-Tablet_ISD-V4-touch
Where do these links point to? Care to run "tree"?
Quoted 1 line
+DRIVERS="wacom", ENV{ID_SERIAL}="Tablet_ISD-V4", ENV{ID_CLASS}!="mouse", ENV{ID_CLASS}="touch"
There are also kernel "ts" input devices, "touch" sounds like a class name for them. Is that in any way related to this class of kernel devices?
Quoted 1 line
+DRIVERS="wacom", ENV{ID_SERIAL}="Tablet_ISD-V4", ENV{ID_CLASS}="mouse", ENV{ID_CLASS}="stylus"
Why do we rename a detected "USB mouse class" to "stylus"?
What's the difference between the two input devices this tablet creates?
Thanks,
Kay
Quoted 7 lines · Kay Sievers
Quoted 6 lines · Danny Kukawka
From: Danny Kukawka <[email protected]>
Subject: generate by-id links for Wacom USB TabletPC devicesGenerate these persistent links for Wacom USB TabletPC input devices under
/dev/input/by-id/:
Quoted 6 lines
Quoted 4 lines
* usb-Tablet_ISD-V4-event-stylus
* usb-Tablet_ISD-V4-stylus
* usb-Tablet_ISD-V4-event-touch
* usb-Tablet_ISD-V4-touchWhere do these links point to? Care to run "tree"?
For example (sorry, can't run tree, since I don't have a machine available with these devices) :
ls -lha /dev/input/by-id
lrwxrwxrwx 1 root root 9 2008-08-25 12:44 usb-Tablet_ISD-V4-event-stylus -> ../event6
lrwxrwxrwx 1 root root 9 2008-08-25 12:44 usb-Tablet_ISD-V4-event-touch -> ../event7
lrwxrwxrwx 1 root root 9 2008-08-25 12:44 usb-Tablet_ISD-V4-stylus -> ../mouse2
lrwxrwxrwx 1 root root 9 2008-08-25 12:44 usb-Tablet_ISD-V4-touch -> ../mouse3
Quoted 6 lines
Quoted 2 lines
+DRIVERS="wacom", ENV{ID_SERIAL}="Tablet_ISD-V4",
ENV{ID_CLASS}!="mouse", ENV{ID_CLASS}="touch"There are also kernel "ts" input devices, "touch" sounds like a class name for them. Is that in any way related to this class of kernel devices?
Sorry, I don't know. These devices are touchscreen devices.
Quoted 4 lines
Quoted 2 lines
+DRIVERS="wacom", ENV{ID_SERIAL}="Tablet_ISD-V4",
ENV{ID_CLASS}="mouse", ENV{ID_CLASS}="stylus"Why do we rename a detected "USB mouse class" to "stylus"?
Because it's the stylus device for this driver, it's easier for the user to identify the correct device with this naming.
Quoted 1 line
What's the difference between the two input devices this tablet creates?
The *-stylus devices handle the stylus and eraser input devices and the touch devices only the touchscreen device. But both are from the same USB device.
Danny