Gentoo Archives: gentoo-user

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