Forum › Forums › New users › New Users and General Questions › How to disable laptop touchpad
Tagged: bash
- This topic has 15 replies, 9 voices, and was last updated Nov 19-8:08 am by ok-ok.
-
AuthorPosts
-
March 17, 2021 at 11:33 pm #55933Member
dukester
Please! TIA
--
dukesterMarch 18, 2021 at 12:05 am #55934Member
dukester
::OFF = synclient TouchpadOff=1
ON = synclient TouchpadOff=0You guys are SO helpful here! LOL
I should use Google more often!!!--
dukesterMarch 18, 2021 at 12:05 am #55935Anonymous
March 18, 2021 at 2:49 am #55944Member
dukester
March 18, 2021 at 1:07 pm #55951MemberRobin
::Hi dukester,
you might want to bind these commands to a button, to prevent you from typing them again and again.
See https://www.antixforum.com/forums/topic/simple-icewm-startup-example-with-programs-and-wifi/#post-43866
for details how you can manage this.Windows is like a submarine. Open a window and serious problems will start.
March 18, 2021 at 2:28 pm #55964Memberseaken64
::Or, if you just want it disabled all the time just add the command string to your startup file.
seaken64
March 18, 2021 at 2:50 pm #55967Moderator
caprea
::Or if you enjoy playing with even more options, like turning off the touchpad with simple commands like padoff, padon
or just turning it off automatically only while typing on the keyboardhttps://www.antixforum.com/forums/topic/easy-way-to-disable-touchpad/
March 18, 2021 at 5:11 pm #55975Member
dukester
April 1, 2021 at 1:00 pm #56799Memberok-ok
April 1, 2021 at 1:42 pm #56820Moderator
caprea
::synclient is part of the package xserver-xorg-input-synaptics, which should be installed by default.
It’s installed under /usr/bin/synclientApril 2, 2021 at 11:33 am #56945Memberok-ok
::Yes,but the bin files are binary and are un-editable.Obviously I want alter the settings can some tell me where they are and how
April 2, 2021 at 1:07 pm #56947Memberok-ok
::SOLVED!
Thanks for your help,I had overlooked the #55967 comment; furthermore I have given a .bash_aliases alternative
in #56946April 2, 2021 at 1:11 pm #56948Member
afghan
::Yes,but the bin files are binary and are un-editable.Obviously I want alter the settings can some tell me where they are and how
Perhaps if you elaborate more on what exactly it is you want to do, maybe then somebody can help you.
In addition to binding the synclient command to some key combo, I put in a set of udev rules to deactivate the touchpad automatically whenever I plug in a mouse, and activates it when I remove the mouse. I create a file /etc/udev/rules.d/20-touchpad-mouse.rules with the following contents:
# Deactivate Touchpad (when Mouse is connected) ACTION=="add", SUBSYSTEM=="input", KERNEL=="mouse[0-9]", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/afghan/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient TouchpadOff=1" # Activate Touchpad (when Mouse is removed) ACTION=="remove", SUBSYSTEM=="input", KERNEL=="mouse[0-9]", ENV{DISPLAY}=":0.0", ENV{XAUTHORITY}="/home/afghan/.Xauthority", ENV{ID_CLASS}="mouse", RUN+="/usr/bin/synclient TouchpadOff=0"`
Modify it to suit your environment, especially your home directory.I hope this helps.
- This reply was modified 2 years, 1 month ago by afghan.
Beware of people who knows nothing; they are the ones that won't know that they know nothing.
November 2, 2021 at 6:37 pm #70058Memberchuck
November 2, 2021 at 7:19 pm #70061ModeratorBobC
::Chuck, The command can be entered in a Terminal session to test it.
Then if you want it disabled all the time, add the line below to your session startup program. Go to Control Centre > Session > User Desktop-Session > startup and add the line, below, then save.
synclient TouchpadOff=1 -
AuthorPosts
- You must be logged in to reply to this topic.