I want my touchpad to be disabled when I use my mouse. How can I do that?
touchpad-indicator
has stopped working on 11.10. It used to work on 11.04. Gnome3 is not a solution as I don't like it and find it buggy.
I want my touchpad to be disabled when I use my mouse. How can I do that?
touchpad-indicator
has stopped working on 11.10. It used to work on 11.04. Gnome3 is not a solution as I don't like it and find it buggy.
Run the following command in a terminal:
You will get an output that looks like this:
It displays all the input devices connected. Note that they all have an id. Since 12 is the id for my touchpad, running the following command will disable it.
In Ubuntu versions
>12.04
you can also directly disable via(and enable via a similar command)
check this link out: How to disable-enable touchpad in ubuntu 11.10
The answer found there is really neat:
After this you will get a switch in your notification area.
The only thing I would wish is to be able to set the switch key to Fn+F8 (which is a touchpad key switch on my keyboard...
Based on answer given by @Peng Wu I created a bash script that can be used...
You can manually run it or run it on start. Then you can make the script run at boot.
Another bash script to toggle touchpad:
Simply, in a terminal:
However, the above seems to not work anymore in Ubuntu 16.04. In this case, then
xinput
still works:UPDATED SOLUTION:
Instead of
xinput
, with id variables that can change, better usesynclient
as indicated in other answers, like this.To turn off touchpad:
To turn on:
To be used with launchers or shortcuts as said below.
This is just the application of the commands in this answer under the present question. The solution below is limited to Xfce/Xubuntu, but although I made it by chance, I find it too elegant not too share it here. So, I created a separate question initially, just for Xubuntu. That question cannot but be a duplicate of this one and may be closed for this reason, that's why I dare to re-post that answer here.
It is about these two commands:
Disable:
Enable:
The id number will be found by running
This is how to disable your touchpad automatically on startup This method will disable the pad more safely by name rather than by id. Here is how to get the name of your touchpad:
Create a bash script file. I added the file to ubuntu Startup Applications so it runs on every restart. Remember to make the file executable. Here are the contents:
I use the following script to enable/disable touchpad. I also assigned it to the keyboard shortcut.
Usage:
toggle_touchpad.sh [on|off
]if you run without arguments then it will simply invert the current state of he touchpad.
Define keyboard shortcuts
(this answer was copied from an invalid edit)
Instead of remembering that command every time you wish to enable/disable the touchpad, you can instead add it as a keyboard combination shortcut.
Under preferences in Keyboard Shortcuts click add. Give a name to the shortcut like "Disable Touchpad" or something and add the command you discovered above
and click apply. Then add another shortcut called "Enable Touchpad" or something similar to the first and change the previous command to a 1 at the end
those are the off/on respectivly.
Now that those are added, click on Enable Touchpad's Shortcut column (should say 'disabled') and type the keyboard shortcut you want it to be, I chose Win+1 (Hold Windows Key and press the number 1). Do the same for Disable Touchpad, I chose Win+2.
Now Win+1 enables my touchpad and Win+2 disables it.
This worked for me in 11.10 :
It displays all the input devices connected. Note that they all have an id. Since 12 is the id for my touchpad, running the following command will disable it.
and I would put it in .bashrc or whatever except that I'm not sure that device 12 (actually 11 for me) is always the touchpad.
Now if I could just get the up-arrow in nautilius to work and see the .dirs