"东方巽雷" <[email protected]> wrote:
>No,I only seperate /home and /usr/portage.
>And now I don't use initramfs to boot.
>
>
>2013/9/16 <[email protected]>
>
>> "东方巽雷" <[email protected]> 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.

Reply via email to