1 |
"东方巽雷" <dongfangxunlei@×××××.com> wrote: |
2 |
>No,I only seperate /home and /usr/portage. |
3 |
>And now I don't use initramfs to boot. |
4 |
> |
5 |
> |
6 |
>2013/9/16 <joost@××××××××.org> |
7 |
> |
8 |
>> "东方巽雷" <dongfangxunlei@×××××.com> wrote: |
9 |
>>> |
10 |
>>> I have /etc/udev/rules.d/touchpad.rules,content as below: |
11 |
>>> ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]", |
12 |
>>> ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/gentoo/.Xauthority", |
13 |
>>> ENV{ID_CLASS}="mouse", ENV{REMOVE_CMD}="/usr/bin/synclient |
14 |
>TouchpadOff=0", |
15 |
>>> RUN+="/usr/bin/synclient TouchpadOff=1" |
16 |
>>> |
17 |
>>> |
18 |
>>> My user name is gentoo.I notice that this rules not work when boot |
19 |
>into |
20 |
>>> desktop.In orderv to disable touchpad,I must restart udev service or |
21 |
>remove |
22 |
>>> usb mouse and connect again. |
23 |
>>> Can it be solved? |
24 |
>>> |
25 |
>> |
26 |
>> Do you have /usr on a seperate partition? |
27 |
>> If yes, do you use an initramfs to mount it at boot? |
28 |
>> |
29 |
>> -- |
30 |
>> Joost |
31 |
>> -- |
32 |
>> Sent from my Android device with K-9 Mail. Please excuse my brevity. |
33 |
>> |
34 |
|
35 |
Please do not top-post. |
36 |
|
37 |
I just noticed you are checking for display and xauthority in the environment. |
38 |
Udev processes events when they come in. I doubt you are logged in when the mouse is detected during boot. |
39 |
|
40 |
Try removing those checks from the rule. |
41 |
|
42 |
-- |
43 |
Joost |
44 |
-- |
45 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |