From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 04 May 2005 05:16:01 +0000 Subject: Re: Simple Newbie question Message-Id: <20050504051601.GA16768@kroah.com> List-Id: References: <1115181822.12538.0.camel@odyssey> In-Reply-To: <1115181822.12538.0.camel@odyssey> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Wed, May 04, 2005 at 04:43:42PM +1200, Steve Castellotti wrote: > hey all- >=20 > I recently came across a USB touchscreen I'm trying to get to work > under linux. If I plug it in under windows it registers as an HID- > compliant device, and starts working with no additional drivers, so I > don't believe this should be very difficult. (I'm running Fedora Core 3 > with linux kernel2.6.10-1.770_14.rhfc3.at incidentally) >=20 >=20 > By diffing changes to /proc/bus/usb/devices, I've gotten a the info: >=20 > P: Vendor=0000 ProdID=FFff Rev=3D 1.00 >=20 > which I've confirmed is the correct device. >=20 >=20 >=20 > I've then edited /etc/hotplug/usb.usermap and added the following lines: >=20 > usbhid 0x0000 0x0000 0xffff 0x0000 0x0000 > 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00000000 > keybdev 0x0000 0x0000 0xffff 0x0000 0x0000 > 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00000000 > mousedev 0x0000 0x0000 0xffff 0x0000 0x0000 > 0x00 0x00 0x00 0x00 0x00 > 0x00 0x00000000 >=20 >=20 > (The device appears three times in /var/log/messages, as a "USB HID > v1.00 Mouse" a "USB HID v1.00 Device" and a "USB HID v1.00 Keyboard" but > of course I'm only interested in the mouse functionality) >=20 >=20 > Diffing the changes to /sys/bus/usb/drivers/usbhid, the device is > appearing on 2-1, so I've created a rules file in /etc/udev/rules.d: >=20 > BUS=3D"usb", PLACE=3D"2-1", NAME=3D"input/mouse0" >=20 >=20 >=20 > The device seems to be recognized as a usbhid device even without > the hotplug or udev changes, but gpm fails to recognize it. Even after > the changes, while /dev/input/mouse0 will appear correctly, gpm still > will not recognize the mouse. You should not need any hotplug or udev changes. But you should point gpm to use the new /dev/input/mouse0 or the /dev/input/mice device node. Good luck with that. greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel