From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Kukawka Date: Wed, 27 Aug 2008 20:54:18 +0000 Subject: Re: [PATCH] generate by-id links for Wacom USB TabletPC devices Message-Id: <200808272254.19202.danny.kukawka@web.de> List-Id: References: <200808272215.12054.danny.kukawka@web.de> In-Reply-To: <200808272215.12054.danny.kukawka@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mittwoch, 27. August 2008, Kay Sievers wrote: > On Wed, 2008-08-27 at 22:15 +0200, Danny Kukawka wrote: > > From: Danny Kukawka > > 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