[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: udev question



John L Fjellstad wrote:
> Sam Halliday writes:
> > i would very much like to have a symlink set up by udev
> > (/dev/input/mousemain or similar) which points to the /dev/input/mouseX
> > unless it has been removed, in which case it should be pointed to
> > /dev/input/mouse1.
> >
> > unfortunately the /dev/input/mouseX devices all remain when the usb mouse is
> > unplugged and reconnected.
<snip>
> So, construct the udev rule:
> BUS="usb", SYSFS{idProduct}="c012", SYSFS{product}="USB-PS/2 Optical Mouse",
> NAME="input/%k", SYMLINK="usbmouse"

hi there... i set this up, and udev seems to be creating the symlink dynamically
as expected.

however... there is one major problem! instead of creating the link to
/dev/input/mouseX, it is creating to the link to /dev/input/ts2, which does not
appear to be a valid mouse device. how can i fix it? (ts2 appears only when the
usb mouse is plugged in)

cheers,
Sam
-- 
Free High School Science Texts
  http://www.nongnu.org/fhsst/
Sam's Homepages
  http://fommil.homeunix.org/~samuel/
  http://www.ma.hw.ac.uk/~samuel/

Attachment: pgp_NFez41Sn4.pgp
Description: PGP signature


Reply to: