A rule for mouse on udev is generating various inputs of mouse and interfering on keyboard

Bug #191411 reported by Thiago

This bug report was converted into a question: question #42273: A rule for mouse on udev is generating various inputs of mouse and interfering on keyboard.

2
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I created a rule in udev (/etc/udev/rules.d/mouse.rules) to disable the touchpad of my laptop when my usb mouse is connected. The rules are:
ACTION=="add", KERNEL=="mouse2", PROGRAM+="/sbin/rmmod psmouse"
ACTION=="remove", KERNEL=="mouse2", PROGRAM+="/sbin/modprobe psmouse"

Before PROGRAM, I tried RUN, but reading the manual saying that run must be short, I changed it. I tried PROGRAM= too (without the +). In all cases, the rules worked. When I connected my usb mouse, the touchpad was disabled and when disconnected, touchpad was enabled again. But some times it affected the keyboard. Looking some informations on logs (kern.log, message, syslog, ...) appeared various entries like "input: ImPS/2 Logitech Wheel Mouse as /class/input/inputXX", where these XX grows. I don't know if my rule is wrong (but I don't think so, because it worked!) or this is really a bug. These inputs happens on boot and I think after backing from screensaver too.

My work around is to unpug and plug my usb mouse again: the touchpad is disabled and keyboard back to work properly. But I need to do this on every boot and some times later, but I don't no exactly what cause this times, if screensaver or other things.

I'm using gutsy, 2.6.22-14-generic.

ps: Sorry my english.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. Thanks.

Changed in linux:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.