You are not logged in.
Hi and thanks for reading,
I have created udev rules
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="00cb", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/john/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient TouchpadOff=1"
ACTION=="remove", SUBSYSTEM=="usb", ATTRS{idVendor}=="045e", ATTRS{idProduct}=="00cb", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/john/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient TouchpadOff=0"
Now it works as expected when I plug in the mouse the touchpad disables. However when uplugging the mouse the touchpad does not enable again. I cannot for the life of me figure out why?
Offline