Gentoo Archives: gentoo-user

From: joost@××××××××.org
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] udev doesn't turn off touchpad on boot.
Date: Mon, 16 Sep 2013 10:55:57
Message-Id: af231f5c-2218-4539-b029-b1613a5c9cbc@email.android.com
In Reply to: Re: [gentoo-user] udev doesn't turn off touchpad on boot. by "东方巽雷"
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.

Replies

Subject Author
Re: [gentoo-user] udev doesn't turn off touchpad on boot. "东方巽雷" <dongfangxunlei@×××××.com>