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

Re: udev and some usb mouses.



Egor Tur wrote:
      Hi folk.
I have two identical usb mouse which pluged to one comp with two head.
I use Xorg 6.9.0.dfsg.1-2 and udev 0.086-1 and kernel 2.6.15.5

In xorg.conf I write rules for this usb mouse as
    Driver         "mouse"
    Option         "ZAxisMapping" "4 5"
    Option         "Device" "/dev/input/mouse0"
and
    Driver         "mouse"
    Option         "ZAxisMapping" "4 5"
Option "Device" "/dev/input/mouse1"
And this work correctly for my two head comp but sometime mouses changes their input devices.
And after this usb mouse  defined in system as /dev/input/mouse2 and so on.
I try write udev rule for this mouses ( for example /dev/input/mouse_head0 and /dev/input/mouse_head1)
but I cannot know what paramiters I must use for separation one mouse from another.

I try for example in /etc/udev/local.rules (symlink from /etc/udev/rules.d/@z10_local.rules):
BUS=="input", SYSFS{phys}=="usb-0000:00:1d.0-2/input0", SYSFS{name}=="Genius NetScroll + Traveler", KERNEL=="mouse?", NAME="input/%k", MODE="0660", SYMLINK+="input/mouse_head0"
BUS=="input", SYSFS{phys}=="usb-0000:00:1d.1-1/input0", SYSFS{name}=="Genius NetScroll + Traveler", KERNEL=="mouse?", NAME="input/%k", MODE="0660", SYMLINK+="input/mouse_head1"
But nothing created in /dev/input/mouse_headX.

Hi,

Just to make sure: Did you run "udevsynthesize" after you added the
rules?

Regards,
           Florian






Reply to: