* [gentoo-user] udev doesn't turn off touchpad on boot.
@ 2013-09-16 2:12 东方巽雷
2013-09-16 2:33 ` joost
0 siblings, 1 reply; 5+ messages in thread
From: 东方巽雷 @ 2013-09-16 2:12 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 490 bytes --]
I have /etc/udev/rules.d/touchpad.rules,content as below:
ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]", ENV{DISPLAY}=":0",
ENV{XAUTHORITY}="/home/gentoo/.Xauthority", ENV{ID_CLASS}="mouse",
ENV{REMOVE_CMD}="/usr/bin/synclient TouchpadOff=0",
RUN+="/usr/bin/synclient TouchpadOff=1"
My user name is gentoo.I notice that this rules not work when boot into
desktop.In orderv to disable touchpad,I must restart udev service or remove
usb mouse and connect again.
Can it be solved?
[-- Attachment #2: Type: text/html, Size: 665 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] udev doesn't turn off touchpad on boot.
2013-09-16 2:12 [gentoo-user] udev doesn't turn off touchpad on boot 东方巽雷
@ 2013-09-16 2:33 ` joost
2013-09-16 5:44 ` 东方巽雷
0 siblings, 1 reply; 5+ messages in thread
From: joost @ 2013-09-16 2:33 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 751 bytes --]
"东方巽雷" <dongfangxunlei@gmail.com> wrote:
>I have /etc/udev/rules.d/touchpad.rules,content as below:
>ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]",
>ENV{DISPLAY}=":0",
>ENV{XAUTHORITY}="/home/gentoo/.Xauthority", ENV{ID_CLASS}="mouse",
>ENV{REMOVE_CMD}="/usr/bin/synclient TouchpadOff=0",
>RUN+="/usr/bin/synclient TouchpadOff=1"
>
>
>My user name is gentoo.I notice that this rules not work when boot into
>desktop.In orderv to disable touchpad,I must restart udev service or
>remove
>usb mouse and connect again.
>Can it be solved?
Do you have /usr on a seperate partition?
If yes, do you use an initramfs to mount it at boot?
--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
[-- Attachment #2: Type: text/html, Size: 1170 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] udev doesn't turn off touchpad on boot.
2013-09-16 2:33 ` joost
@ 2013-09-16 5:44 ` 东方巽雷
2013-09-16 10:55 ` joost
0 siblings, 1 reply; 5+ messages in thread
From: 东方巽雷 @ 2013-09-16 5:44 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 913 bytes --]
No,I only seperate /home and /usr/portage.
And now I don't use initramfs to boot.
2013/9/16 <joost@antarean.org>
> "东方巽雷" <dongfangxunlei@gmail.com> wrote:
>>
>> I have /etc/udev/rules.d/touchpad.rules,content as below:
>> ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]",
>> ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/gentoo/.Xauthority",
>> ENV{ID_CLASS}="mouse", ENV{REMOVE_CMD}="/usr/bin/synclient TouchpadOff=0",
>> RUN+="/usr/bin/synclient TouchpadOff=1"
>>
>>
>> My user name is gentoo.I notice that this rules not work when boot into
>> desktop.In orderv to disable touchpad,I must restart udev service or remove
>> usb mouse and connect again.
>> Can it be solved?
>>
>
> Do you have /usr on a seperate partition?
> If yes, do you use an initramfs to mount it at boot?
>
> --
> Joost
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
[-- Attachment #2: Type: text/html, Size: 1850 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] udev doesn't turn off touchpad on boot.
2013-09-16 5:44 ` 东方巽雷
@ 2013-09-16 10:55 ` joost
2013-09-16 12:23 ` 东方巽雷
0 siblings, 1 reply; 5+ messages in thread
From: joost @ 2013-09-16 10:55 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1351 bytes --]
"东方巽雷" <dongfangxunlei@gmail.com> wrote:
>No,I only seperate /home and /usr/portage.
>And now I don't use initramfs to boot.
>
>
>2013/9/16 <joost@antarean.org>
>
>> "东方巽雷" <dongfangxunlei@gmail.com> wrote:
>>>
>>> I have /etc/udev/rules.d/touchpad.rules,content as below:
>>> ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]",
>>> ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/gentoo/.Xauthority",
>>> ENV{ID_CLASS}="mouse", ENV{REMOVE_CMD}="/usr/bin/synclient
>TouchpadOff=0",
>>> RUN+="/usr/bin/synclient TouchpadOff=1"
>>>
>>>
>>> My user name is gentoo.I notice that this rules not work when boot
>into
>>> desktop.In orderv to disable touchpad,I must restart udev service or
>remove
>>> usb mouse and connect again.
>>> Can it be solved?
>>>
>>
>> Do you have /usr on a seperate partition?
>> If yes, do you use an initramfs to mount it at boot?
>>
>> --
>> Joost
>> --
>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>
Please do not top-post.
I just noticed you are checking for display and xauthority in the environment.
Udev processes events when they come in. I doubt you are logged in when the mouse is detected during boot.
Try removing those checks from the rule.
--
Joost
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
[-- Attachment #2: Type: text/html, Size: 2561 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [gentoo-user] udev doesn't turn off touchpad on boot.
2013-09-16 10:55 ` joost
@ 2013-09-16 12:23 ` 东方巽雷
0 siblings, 0 replies; 5+ messages in thread
From: 东方巽雷 @ 2013-09-16 12:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]
Never work when remove them.
2013/9/16 <joost@antarean.org>
> "东方巽雷" <dongfangxunlei@gmail.com> wrote:
>>
>> No,I only seperate /home and /usr/portage.
>> And now I don't use initramfs to boot.
>>
>>
>> 2013/9/16 <joost@antarean.org>
>>
>>> "东方巽雷" <dongfangxunlei@gmail.com> wrote:
>>>>
>>>> I have /etc/udev/rules.d/touchpad.rules,content as below:
>>>> ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]",
>>>> ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/gentoo/.Xauthority",
>>>> ENV{ID_CLASS}="mouse", ENV{REMOVE_CMD}="/usr/bin/synclient TouchpadOff=0",
>>>> RUN+="/usr/bin/synclient TouchpadOff=1"
>>>>
>>>>
>>>> My user name is gentoo.I notice that this rules not work when boot into
>>>> desktop.In orderv to disable touchpad,I must restart udev service or remove
>>>> usb mouse and connect again.
>>>> Can it be solved?
>>>>
>>>
>>> Do you have /usr on a seperate partition?
>>> If yes, do you use an initramfs to mount it at boot?
>>>
>>> --
>>> Joost
>>> --
>>> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>>>
>>
>>
> Please do not top-post.
>
> I just noticed you are checking for display and xauthority in the
> environment.
> Udev processes events when they come in. I doubt you are logged in when
> the mouse is detected during boot.
>
> Try removing those checks from the rule.
>
>
> --
> Joost
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>
[-- Attachment #2: Type: text/html, Size: 2956 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-09-16 12:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-16 2:12 [gentoo-user] udev doesn't turn off touchpad on boot 东方巽雷
2013-09-16 2:33 ` joost
2013-09-16 5:44 ` 东方巽雷
2013-09-16 10:55 ` joost
2013-09-16 12:23 ` 东方巽雷
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox