trying to disable touchpad in ~/.profile
Adam Funk
a24061 at ducksburg.com
Tue Oct 10 09:43:11 UTC 2017
On 2017-09-28, Tom H wrote:
> Sorry. Given that ".xsessionrc" runs just before the gnome-session is
> started, it must be too early for your command :(
>
> Two suggestions
>
> 1) An xdg autostart file (you may need to set more properties than below)
>
> $ cat $HOME/.config/autostart/disable_touchpad.desktop
> [Desktop Entry]
> Name=Disable touchpad
> Comment=Disable touchpad
> Exec=xinput --set-prop 13 'Device Enabled' 0
Interesting --- apparently that runs a little too early too! If I
twiddle the touchpad after entering my password, it stops working,
then starts again by the time the desktop is ready to use. I changed
Exec to point to a script containing the following lines
xinput --set-prop 13 'Device Enabled' 0
( sleep 5 ; xinput --set-prop 13 'Device Enabled' 0 ) &
and the result is that the touchpad stops working during the login
process, starts working again, then stops again (& stays off).
> 2) A dconf edit
>
> Launch "dconf-editor" (if it's not installed, the package has the same
> as the executable), search for touchpad, and disable it.
I'll take a look at that; thanks.
More information about the ubuntu-users
mailing list