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
(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
|
|||||||||||||||||||||
|
Xfce/Xubuntu solutionThis 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
The commands can be added into Xfce launchers.
The beauty is that:
(namely 'show last used item' and 'inside button'),
the launcher will always display the current status of the touchpad.
|
||||
|
|
|
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: if you run without arguments then it will simply invert the current state of he touchpad.
|
||||
|
|
|
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 |
|||||||||
|
|
First check if your laptop has enable/disable touchpad keyboard shortcut, by any chance! On my Lenovo Thinkpad T500 it's Fn+F8 |
|||||||||||||
|
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. |
||||
|
|
|
Just add a couple of bash functions to your .bashrc to give you a togggle...
|
|||
|
|
|
install the Jupiter app. You can disable the touchpad with it and it is remembered. This has worked effectively for me on both a Lenovo IdeaPad and ThinkPad on 11.04, 11.10, and 12.04. |
||||
|
|
|
It is actually very simple to disable touchpad in Ubuntu. Just remove the package
It is the only way to disable touchpad permanently that worked for me. The other ways were only temporary:
I am using LXDE and I was not able to automatically disable the touchpad by adding these lines to And I tried disabling touchpad with dconf-editor (org.gnome.desktop.peripherals.touchpad) and gconf-editor (desktop.gnome.peripherals.TOUCHPADNAME), but both did not work. The settings on dconf-editor have no effect at all and on gconf-editor it keeps showing the error message "This key has no schema". |
|||
|
|
|
I tried using the laptop function key (fn) to disable the pointer and it works. It did not work during my 11.04 days though, so give that a try. |
|||||||||
|
|
In my case, fn+F9 is mapped into Touchpad toggle. But the key does nothing just showing touch pad icon on the right-top of the screen like this. Here is a solution for toggling touchpad just by pressing a shortcut. 1. Getting id of your touchpad
2. Writing a script for toggling touchpadSo I got a bash script file for toggling touchpad with 'xinput' command(original script can be found here). In my case, the id of touch pad was 12.
Save the above script file as 3. Keyboard shortcut for running the scriptAnd last step is adding keyboard shortcut to run the script file. So just write 4. Try the shortcutPress the shortcut and check if touchpad is toggled. It worked at ASUS A556UA Laptop and Ubuntu14.04 x64 installed. Thing to be improved.
please suggest a way to assign Touchpad toggle key to a custom shortcut for complete solution |
||||
|
|
|
For Ubuntu 16.04 For disable touchpad:
and for enable touchpad:
|
||||
|
|
|
https://bitbucket.org/barseghyanartur/xinput It's a very tiny code which allows you to disable/enable the touchpad from terminal. Simply follow the Instructions below: Install:
Disable touchpad:
Enable touchpad:
|
||||
|
|
|
If your laptop keyboard doesn't have a touchpad on/off special-function key, maybe you can find an on-screen virtual keyboard that simulates it (although I haven't found one). Short of that, this works well:
|
|||
|
|
|
What worked for me on Ubuntu 12.04 LTS with Dell Laptop I wanted disable the pointer which is in the middle of the keyboard and creates a lot of issues while typing. So:
This has disabled the Dualpoint stick. But none of the other answers worked for me. I did Install
Then go to org -> gnome -> settings-daemon -> peripherals -> touchpad and uncheck touchpad-enabled field |
|||||
|
|
I have a Medion Akoya notebook model P7812 using Ubuntu 11.10 (64 bit) and the Fn & F6 key combination disables the touchpad. |
||||
|
|
|
Alternative solution which works for all touchpads, no id needed. open a terminal and write "gedit toggle_touchpad.sh"
Save the file and exit. Now you have a file with the name "toggle_touchpad.sh" Run the command Place the file in any folder you like. Let us assume that you have it in the folder /home/username/myscripts/. From the menu on the top-right go to Create a new shortcut and put as name whatever you want. Put as command Assign whatever keyboard shortcut you want. Ready :) P.S. Personally I put the file in the
where "username" is your username Then when you will create the shortcut you will use the path "/opt/myscripts/toggle_touchpad.sh" instead of the one mentioned above |
|||
|
|
|
first use xinput list to get the base device name of your touchpad... than add the xinput disable command with the full device name (in double qoutes to accept the whitespace) to the ~/.bashrc file (ie xinput disable "SynPS/2 Synaptics TouchPad") the scripts above proved very hit or miss. |
|||
|
|
|
This method works, but I can't seem to use the "win" button. So I used the CtrlF1 & F2 for it. Currently my laptop OS is ubuntu 14.04LTS. Oh, need to find out the
|
||||
|
|
|
I tried all the previous answers here without success.
You may want to change the value 1 to 0.5. |
||||
|
|
|
I found a nice solution of creating a key binding that will invoke the command:
where 199 is a keycode recognized as XF86TouchpadToggle. This way one can make a key combination of his/her choice to behave like a special key some laptops have to toggle the touchpad as desktop environments like Mate or Cinnamon handle it great. You can check keycodes by this command:
I have created a how-to on my blog: https://artofcode.wordpress.com/2017/10/01/how-to-add-a-key-binding-to-toggle-a-touchpad-under-linux/ |
|||
|
|








