false udev event

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

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux