You are not logged in.

#1 2017-06-27 16:45:46

asdfiex
Member
From: Eastern Europe
Registered: 2015-12-15
Posts: 71

[SOLVED] Problems deactivating touchpad at startup

I want it deactivated during login manager too so using the synclient TouchpadOff=1 inside .profile it's not doing it right.
Ok, so back on the Wikis I found that  my /etc/udev/rules.d/01-touchpad.rules should contain:

SUBSYSTEM=="input", KERNEL=="mouse[0-9]*", ATTRS{name}!="*TouchPad", ATTRS{name}!="*Stick", ACTION=="add", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/user/.Xauthority", RUN+="/usr/bin/synclient TouchpadOff=1"
SUBSYSTEM=="input", KERNEL=="mouse[0-9]*", ATTRS{name}!="*TouchPad", ATTRS{name}!="*Stick", ACTION=="remove", ENV{DISPLAY}=":0", ENV{XAUTHORITY}="/home/user/.Xauthority", RUN+="/usr/bin/synclient TouchpadOff=0"

But not working and eww, as always when you expect light and you get plenty of arousing dark...
Where I should look or what am I doing wrong?

Last edited by asdfiex (2017-07-01 08:05:15)

Offline

#2 2017-06-28 12:15:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,880

Re: [SOLVED] Problems deactivating touchpad at startup

I doubt that your user is called "user" and even if, he'll very unlikely hold the X authority while the DM is running the show.
The DMs usually have vast abilities to incorporate random scripts at all stages (before starting X, after starting X, when logging in, either as root or user)

So I suggest you look up the wiki for your actually used DM and fire the script there.

The even better way would likely be to add a device secting xorg configlet and add

Option "TouchpadOff" "1"

there should already be a /usr/share/X11/xorg.conf.d/70-synaptics.conf to derive into your /usr/share/X11/xorg.conf.d/71-donottouchme.conf or so.

Offline

#3 2017-07-01 08:04:57

asdfiex
Member
From: Eastern Europe
Registered: 2015-12-15
Posts: 71

Re: [SOLVED] Problems deactivating touchpad at startup

There in the rules file I just replaced my real user name with "user" in the hope of more anonimity here on forums, so you were right.
Thank you! I added the bottom file there in the directory and all the magical spread, it finally works!

/etc/X11/xorg.conf.d/70-synaptics.conf

Section "InputClass"
    Identifier "touchpad"
    Driver "synaptics"
    MatchIsTouchpad "on"
        Option "TouchpadOff" "1" 
EndSection

Offline

Board footer

Powered by FluxBB