You are not logged in.

#1 2006-04-28 06:46:09

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Udev Rules, Mouse Buttons, and KVMs...OH MY!

Hmmm...been annoyed by this for a while now.  I have a Logitech MX500 optical mouse hooked up on the PS/2 port, but it's running through a KVM.  To get the buttons working properly, I've always used <code>evdev</code> and haven't had any problems...until recently.  Every time I switch to my other machines using the KVM, and switch back, the scroll wheel and extra buttons cease to function.  Logging out and back into X doesn't solve the problem either, I actually have to reboot the machine.  Needless to say, that's annoying.

I've done some research, but can't seem to make any headway.  I've made a custom udev rule and put it in <code>/etc/udev/rules.d/10-local.rules</code> as such (note it is all on one line in the actual file):

BUS=="input", SYSFS{modalias}=="input:b0011v0002p0002e0070-e0,1,2,k110,111,112,113,114,115,116,117,r0,1,8,amlsfw", KERNEL=="event*", NAME="input/%k", SYMLINK="input/mx500"

...and then tried switching over my <code>xorg.conf</code> to use the symlink.  That works just fine, but it never changes when I use the KVM to switch between machines.  It also appears that it uses the same <code>event</code> number each time (but I'm not sure how to check).  I was also somewhat confused on when to use the double/single equal sign for the rules...it did seem to make a difference, and it works the way I have it now, but I'm not sure if it's right.

It always worked just fine back when I could use the <code>/dev/input/mice</code> line in my <code>xorg.conf</code> file.  Now that it's all about the udev events for evdev, it hasn't worked once.  Any other ideas to try?

Offline

#2 2006-04-28 21:15:35

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: Udev Rules, Mouse Buttons, and KVMs...OH MY!

I would change event* to event[1-9] seams more reliable..
and would use name for sysfs no rather than modalias...
look at this post.....
http://bbs.archlinux.org/viewtopic.php?t=20666

Offline

#3 2006-04-28 21:34:15

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Udev Rules, Mouse Buttons, and KVMs...OH MY!

Yeah, my rule was a mixture from that thread and also from the Gentoo wiki article making a udev rule for a static usb mouse.  I'll try changing to a different identifier.  Is there a log file somewhere that monitors udev events so I can see what actually happens when I switch back and forth on the KVM?

Offline

#4 2006-05-01 02:14:53

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: Udev Rules, Mouse Buttons, and KVMs...OH MY!

Still no go...anyone know if there's a place to monitor uevents as they occur?

Offline

#5 2006-05-01 09:17:16

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Udev Rules, Mouse Buttons, and KVMs...OH MY!

try 'udevmonitor' wink

Offline

Board footer

Powered by FluxBB