How to activate / deactivate the touchpad from the terminal

There is an option to disable the touchpad from the terminal, when all applets and workarounds fail. This method was tested in Ubuntu but it should work on other distros as well.

César Bernardo Benavidez Silva is one of the Winners from our weekly competition: «Share what you know about Linux«. Congratulations! Anxious about take part and make your contribution to the community, as did César?

Hello friends, I bring you this dedicated post, for those who, like me, have difficulties with the touchpad of their laptop, with Ubuntu 12.04 LTS operating system.

The problem I have is that the touchpad of my laptop is very sensitive and when I write a document I always have problems touching the touchpad and disasters are generated in the text that I write.

I have tried some scripts, pressing the default key of my computer to activate / deactivate the touchpad, with programs like «touchpad-indicator» and I have had no results. However, looking for some information for that, I found two commands that allow you to activate or deactivate the touchpad.

The commands are as follows:

To deactivate the touchpad:

sudo modprobe -r psmouse

To activate the Touchpad:

sudo modprobe psmouse

That's all for now, I hope it will be useful for those who have the same problem as me, or failing that - as some people have told me - who after installing Ubuntu cannot use their touchpad.

Greetings and I hope this information is useful to you.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Mark Bravo said

    Great, I had that problem too. I have tested it on Kubuntu 12.04 LTS and it works the same.

  2.   Angel Demonic Violent Beauty said

    Wave when I put it I get in the terminal [sudo] password for THE NAME OF MY PC: BUT IT DOESN'T LET ME WRITE MY PASSWORD OR ANYTHING

  3.   oftight said

    Thanks if it works 😀

  4.   Let's use Linux said

    It's very strange. Does the window have the focus? Try Alt + tab.

  5.   gabriel de leon said

    Great !! I hated that that happened to me, I had to extend the normal space between one hand and the other so that this wouldn't happen, but now ... I'm writing without problems !! Thank you!!

  6.   Sergio said

    Type normal the password and press ENTER then and that's it

  7.   Let's use Linux said

    Excellent explanation!
    A hug! Paul.

    On November 7, 2012 21:57 pm, Disqus wrote:

  8.   Xurxo said

    What this command does is download the psmouse module from the kernel (which usually matches the touchpad on most laptops).

    With the command: modprobe psmouse, it is reloaded.

    The method is "drastic", but effective, without a doubt 🙂

    And it is certain that it will not load the system with another (or several) process of the program or script that is responsible for deactivating the touchpad while we use the keyboard.

    If we also have a mouse connected through a USB port; it will not be interrupted.

    Sometimes the simplest solutions are the best. In UNIX systems it has always been a preference for users: simple ...

    Very good for the contribution.

    WARNING: perhaps an "alias" should be enabled for these two commands ... because a mistake in the name of the module (in this case: psmouse) when downloading it, can end up downloading another module that affects other system functionality.

    EXAMPLE:

    alias nm = 'modprobe -r psmouse'
    alias mm = 'modprobe psmouse'

    These two lines are added to the file: /home/usuario/.bashrc and the terminal is rebooted (restarted) (if necessary, the graphical session) or the command: source .bashrc is launched so that the shell reads the new aliases.

    You can put any name you prefer. I have chosen "nm" and "mm" for two reasons:
    - They are keys that are close to the touchpad
    - In Spanish there are almost no words that contain these two letters in that order, it is difficult to make a mistake or for the shell to read those acronyms when executing another command.

    Greetings. -

    1.    silent said

      Thanks for your input too.
      two questions that occurred to me while reading are how I determine that psmouse is for mousepad
      Or how do I know it won't affect something else?

      I hope I have the answers for when you answer this message

      until next time and again thanks xurxo, let's use linux

  9.   Let's use Linux said

    Very interesting!
    Cheers! Paul.

    2012/11/7

  10.   Always Makinando said

    You can also use synclient, and as it says in this post, make a script: http://totaki.com/poesiabinaria/2012/09/script-para-activar-y-desactivar-el-touchpad-de-mi-portatil/

  11.   Carlos Alberto Sierra-Torres said

    excellent thanks for the contribution it is very good

  12.   Enrique said

    Great!
    Works perfect on Ubuntu 12.04
    It was very annoying that I was careful not to touch the mousepad when writing, so I have comfort using normal mouse.
    Thanks for the input!

  13.   Pedro said

    Simply great, just what I was looking for, the touchpad of my laptop is in such a way that when you write you touch it continuously and you had to write with your hands up ... with these two simple instructions the problem was solved.

    Thank you very much for sharing it 🙂

  14.   Magno said

    Thanks it works great in Ubuntu 14 LTS ...

  15.   Javier Ruiz said

    It has been a great help, thanks for the help 🙂

  16.   john wolf said

    Thank you very much for your help, I have been looking for how to do it for some time

  17.   Pablo Saia said

    Thank you very much, beast !!! I had that problem and had to manually disable the touchpad, which was a big hassle.
    Excellent contribution.

  18.   ivan tchakoff said

    Excellent!! It worked perfect, and it fixed the problem for me in WifiSlax 4.11. And how can I make the order execute automatically every time I boot? Thanks and hang on Linux !!

  19.   vicky said

    Many thanks. Works perfectly

  20.   jvega said

    Great! it works perfectly, I have a Toshiba NB305 (Mini) Netbook and it was a headache to write text with such a sensitive pad. Thanks community.

  21.   Ezekiel said

    Thanks a lot. Works perfect on q4OS. Cheers

  22.   Sarah said

    I do not understand

  23.   enyelbert said

    holle how do i simi canaima deactivates the keyboard and the mouse how i do

  24.   Samuel Carrero said

    Hello, greetings… I don't remember which password to enter when it asks for it?

  25.   Samuel Carrero said

    I also have a question, I don't know how to recover my ubuntu one password, I have tried the options that I have searched on the internet and I have had no luck

  26.   Anonymous said

    Thank you very much, I have tested it on lubuntu and it works perfectly.

  27.   Anonymous said

    Thanks, tested on Xubuntu 12.04 and it works.

  28.   Kidney said

    Excellent, just what you need….

  29.   Jose Luis said

    I just switched to version 18.04 and the mousepad is no longer working as it did with version 16.04.

  30.   aldobelus said

    Wonderful! I was already more than fed up!

  31.   Ruben Ernesto Rojas Alvarez said

    I found this option a minute before crashing the laptop against a wall. Thank you. I will be able to continue writing without cursing.

    A stubborn.

  32.   Juannie said

    Many thanks. It works perfectly on Ubuntu 20.04.

    I was really tired of writing something and fucking my cursor.

  33.   Mila said

    Finally a simple solution. Thank you.