* [PATCH] generate by-id links for Wacom USB TabletPC devices
@ 2008-08-27 20:15 Danny Kukawka
2008-08-27 20:39 ` Kay Sievers
2008-08-27 20:54 ` Danny Kukawka
0 siblings, 2 replies; 3+ messages in thread
From: Danny Kukawka @ 2008-08-27 20:15 UTC (permalink / raw)
To: linux-hotplug
From: Danny Kukawka <danny.kukawka@web.de>
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
Signed-off-by: Danny Kukawka <danny.kukawka@web.de>
---
60-persistent-input.rules | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rules/rules.d/60-persistent-input.rules b/rules/rules.d/60-persistent-input.rules
index 34d5ef1..a4a971d 100644
--- a/rules/rules.d/60-persistent-input.rules
+++ b/rules/rules.d/60-persistent-input.rules
@@ -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"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] generate by-id links for Wacom USB TabletPC devices
2008-08-27 20:15 [PATCH] generate by-id links for Wacom USB TabletPC devices Danny Kukawka
@ 2008-08-27 20:39 ` Kay Sievers
2008-08-27 20:54 ` Danny Kukawka
1 sibling, 0 replies; 3+ messages in thread
From: Kay Sievers @ 2008-08-27 20:39 UTC (permalink / raw)
To: linux-hotplug
On Wed, 2008-08-27 at 22:15 +0200, Danny Kukawka wrote:
> From: Danny Kukawka <danny.kukawka@web.de>
> 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
Where do these links point to? Care to run "tree"?
> +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?
> +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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] generate by-id links for Wacom USB TabletPC devices
2008-08-27 20:15 [PATCH] generate by-id links for Wacom USB TabletPC devices Danny Kukawka
2008-08-27 20:39 ` Kay Sievers
@ 2008-08-27 20:54 ` Danny Kukawka
1 sibling, 0 replies; 3+ messages in thread
From: Danny Kukawka @ 2008-08-27 20:54 UTC (permalink / raw)
To: linux-hotplug
On Mittwoch, 27. August 2008, Kay Sievers wrote:
> On Wed, 2008-08-27 at 22:15 +0200, Danny Kukawka wrote:
> > From: Danny Kukawka <danny.kukawka@web.de>
> > 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
>
> Where 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
> > +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.
> > +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.
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-27 20:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27 20:15 [PATCH] generate by-id links for Wacom USB TabletPC devices Danny Kukawka
2008-08-27 20:39 ` Kay Sievers
2008-08-27 20:54 ` Danny Kukawka
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).