linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* false udev event
@ 2010-11-20 18:22 J. Bakshi
  2010-11-21 14:27 ` Phillip Susi
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: J. Bakshi @ 2010-11-20 18:22 UTC (permalink / raw)
  To: linux-hotplug

Hello list,

I have a strange problem of triggering false udev event !!

Here is my rule sets to active/in-active touchpad based on the presence of usb mouse

````````````````````````````````````
ACTION="add", SUBSYSTEM="input", ENV{ID_CLASS}="mouse", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/joy/.Xauthority"  RUN+="/usr/bin/synclient TouchpadOff=1", RUN+="/bin/su joy -c 'DISPLAY=:0.0 notify-send %k; killall syndaemon ' "

ACTION="remove", SUBSYSTEM="input", ENV{ID_CLASS}="mouse"  RUN+="/usr/bin/synclient TouchpadOff=0", RUN+="/bin/su joy -c 'DISPLAY=:0.0 notify-send %k ; syndaemon -t -k -i 3 -d' "
````````````````````````````

But when I start my machine, the rules  actually behaves opposite. i.e. it disable touchpad and with *no mouse attached* !!!  I face the same when the PC alive from hibernation. How to fix this false event ? 

Thanks

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-11-21 19:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-20 18:22 false udev event J. Bakshi
2010-11-21 14:27 ` Phillip Susi
2010-11-21 15:53 ` J. Bakshi
2010-11-21 19:12 ` Phillip Susi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).