1 |
I have /etc/udev/rules.d/touchpad.rules,content as below: |
2 |
ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]", ENV{DISPLAY}=":0", |
3 |
ENV{XAUTHORITY}="/home/gentoo/.Xauthority", ENV{ID_CLASS}="mouse", |
4 |
ENV{REMOVE_CMD}="/usr/bin/synclient TouchpadOff=0", |
5 |
RUN+="/usr/bin/synclient TouchpadOff=1" |
6 |
|
7 |
|
8 |
My user name is gentoo.I notice that this rules not work when boot into |
9 |
desktop.In orderv to disable touchpad,I must restart udev service or remove |
10 |
usb mouse and connect again. |
11 |
Can it be solved? |