How to disable the touchpad?











up vote
205
down vote

favorite
123












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.










share|improve this question




















  • 1




    Ok, I think touchpad-indicator dev team is going to fix this issue.
    – Peng Wu
    Oct 16 '11 at 1:35










  • possible duplicate of Touchpad not working on Dell XPS L501x
    – Panther
    Jun 21 '14 at 1:49










  • The most simple solution is not the first answer. Scroll down to the screen shot :-)
    – guettli
    Sep 19 '15 at 19:01















up vote
205
down vote

favorite
123












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.










share|improve this question




















  • 1




    Ok, I think touchpad-indicator dev team is going to fix this issue.
    – Peng Wu
    Oct 16 '11 at 1:35










  • possible duplicate of Touchpad not working on Dell XPS L501x
    – Panther
    Jun 21 '14 at 1:49










  • The most simple solution is not the first answer. Scroll down to the screen shot :-)
    – guettli
    Sep 19 '15 at 19:01













up vote
205
down vote

favorite
123









up vote
205
down vote

favorite
123






123





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.










share|improve this question















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.







touchpad






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 13 '13 at 22:39









kiri

18.8k1258104




18.8k1258104










asked Oct 14 '11 at 3:38









Peng Wu

4,18371616




4,18371616








  • 1




    Ok, I think touchpad-indicator dev team is going to fix this issue.
    – Peng Wu
    Oct 16 '11 at 1:35










  • possible duplicate of Touchpad not working on Dell XPS L501x
    – Panther
    Jun 21 '14 at 1:49










  • The most simple solution is not the first answer. Scroll down to the screen shot :-)
    – guettli
    Sep 19 '15 at 19:01














  • 1




    Ok, I think touchpad-indicator dev team is going to fix this issue.
    – Peng Wu
    Oct 16 '11 at 1:35










  • possible duplicate of Touchpad not working on Dell XPS L501x
    – Panther
    Jun 21 '14 at 1:49










  • The most simple solution is not the first answer. Scroll down to the screen shot :-)
    – guettli
    Sep 19 '15 at 19:01








1




1




Ok, I think touchpad-indicator dev team is going to fix this issue.
– Peng Wu
Oct 16 '11 at 1:35




Ok, I think touchpad-indicator dev team is going to fix this issue.
– Peng Wu
Oct 16 '11 at 1:35












possible duplicate of Touchpad not working on Dell XPS L501x
– Panther
Jun 21 '14 at 1:49




possible duplicate of Touchpad not working on Dell XPS L501x
– Panther
Jun 21 '14 at 1:49












The most simple solution is not the first answer. Scroll down to the screen shot :-)
– guettli
Sep 19 '15 at 19:01




The most simple solution is not the first answer. Scroll down to the screen shot :-)
– guettli
Sep 19 '15 at 19:01










29 Answers
29






active

oldest

votes

















up vote
278
down vote



accepted
+50










Run the following command in a terminal:



xinput list


You will get an output that looks like this:



⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


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.



xinput set-prop 12 "Device Enabled" 0


In Ubuntu versions >12.04 you can also directly disable via



xinput --disable 12


(and enable via a similar command)






share|improve this answer



















  • 29




    turn off touch pad synclient TouchpadOff=1 turn it back on synclient TouchpadOff=0 This way even better.
    – Peng Wu
    Oct 17 '11 at 10:40








  • 1




    sudo apt-get install touchpad-indicator the good new is that touchpad-indicator is worked again in 11.10.
    – Peng Wu
    Nov 10 '11 at 23:47








  • 3




    "synclient -l | less" to see all available options
    – sam.is
    Jul 16 '13 at 2:39






  • 8




    In 12.10 and later, you can also use xinput -disable 12 to disable input device 12 (or xinput -enable 12 to enable it). See manual page xinput(1).
    – Lekensteyn
    Aug 25 '13 at 22:55






  • 1




    @smartmouse, try putting Geremy's command in a script and then use the "Start Applications" program to run the script on login.
    – b_laoshi
    Apr 11 '17 at 2:05


















up vote
78
down vote














  1. Search for mouse

  2. Click on Mouse and Touchpad

  3. Click off/on button to the right of touchpad settings.


step one



enter image description here






share|improve this answer

















  • 3




    the big ON|OFF widget there is not available in 12.04, that's one one has to resort to the command line...
    – knocte
    Jan 29 '14 at 10:44






  • 1




    I've accidentally disabled the touchpad using this method,how do I enable it again without connecting a mouse to my computer?
    – Ziv
    May 19 '17 at 15:26






  • 1




    @Ziv You go to this Mouse & Touchpad window, keep clicking tab until the on/off toggler is focused, then press Enter.
    – paibamboo
    Oct 7 '17 at 9:57










  • this is a good way to do it. My touchpad keep re-enabling itself after I disable it through commandline
    – Hoàng Long
    Jul 26 at 7:14




















up vote
37
down vote













check this link out: How to disable-enable touchpad in ubuntu 11.10



The answer found there is really neat:



sudo add-apt-repository ppa:atareao/atareao
sudo apt-get update
sudo apt-get install touchpad-indicator


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...






share|improve this answer























  • orsome! It once was broken in 11.10. but now it is worked
    – Peng Wu
    Nov 10 '11 at 23:47






  • 1




    Does work in 12.04.
    – viking
    Feb 20 '13 at 20:06






  • 1




    works fine in 14.04
    – voiger
    Sep 4 '14 at 13:28






  • 2




    WARNING: this requires trusting user atareao, he could be hosting malware in his PPA
    – knocte
    Oct 16 '16 at 10:30






  • 1




    Does not work properly in Xubuntu 16.04.1. Registers certain clicks as key presses and then prevents further usage of the touchpad, although you clicked and did not press a key, while on the other hand it did nothing when I pressed keys and kept moving around the cursor using the touchpad. Something must be buggy with it or not general enough over distributions or machines, so that it causes this kind of behavior.
    – Zelphir
    Feb 10 '17 at 10:38




















up vote
29
down vote













Based on answer given by @Peng Wu I created a bash script that can be used...





#!/bin/bash

declare -i ID
ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`

xinput set-prop $ID "Device Enabled" 0

echo 'Touchpad has been disabled.'


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:



#!/bin/bash

declare -i ID
ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
declare -i STATE
STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
if [ $STATE -eq 1 ]
then
xinput disable $ID
echo "Touchpad disabled."
else
xinput enable $ID
echo "Touchpad enabled."
fi





share|improve this answer























  • Would be cool to check the status code for the first script. I had to change the grep pattern to 'Touchpad in mouse emulation modes*id=[0-9]{1,2}'
    – galath
    Sep 18 '15 at 21:53












  • On my system, it was Touchpad instead of TouchPad. To make it case-insensitive, just add an i to your grep options.
    – zondo
    Nov 5 '16 at 1:11










  • ruby touchpad toggle oneliner synclient TouchpadOff=$(synclient | ruby -ne 'puts ($_.match(/\d+/)[0].to_i ^ 1) if /TouchpadOff/ =~ $_')
    – galva
    May 21 at 8:23










  • for a one-line equivalent of this, see my answer
    – knocte
    Nov 26 at 6:40


















up vote
25
down vote













Simply, in a terminal:



synclient TouchpadOff=1


However, the above seems to not work anymore in Ubuntu 16.04. In this case, then xinput still works:



xinput set-prop `xinput --list | awk '/TouchPad.*pointer/ {print $7}' | sed 's/id=(.*)/1/'` "Device Enabled" 0





share|improve this answer























  • Easiest solution, thanks. Accidentally touching the touchpad despite "Disable touchpad while typing" was on - was driving me a little crazy. This way I can just use a USB mouse instead and keep the keyboard behaving nicely.
    – David Thomas
    Sep 22 '14 at 23:37










  • Does this need sudo? It has no effect on my HP 6460b + Ubuntu 14.04
    – itsols
    Dec 23 '15 at 3:22










  • it doesn't, and it works on my 14.04
    – knocte
    Dec 23 '15 at 3:45










  • Works on Ubuntu 16.04, does not need sudo, one can easily create a keyboard shortcut with it: +1 :-)
    – Martin Thoma
    May 4 '16 at 16:34










  • The xinput works on Fedora 25, thanks!
    – Alois Mahdal
    Mar 31 '17 at 16:42


















up vote
10
down vote













UPDATED SOLUTION:



Instead of xinput, with id variables that can change, better use synclient as indicated in other answers, like this.



sudo apt install xserver-xorg-input-synaptics


To turn off touchpad:



synclient TouchpadOff=1


To turn on:



synclient TouchpadOff=0


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:



xinput set-prop 15 "Device Enabled" 0


Enable:



xinput set-prop 15 "Device Enabled" 1


The id number will be found by running



xinput list





share|improve this answer























  • @galileopy - a simple shortcut is even more useful as far as I ca tell now
    – cipricus
    Mar 6 at 21:35


















up vote
7
down vote













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:



$ xinput list --name-only | grep -i Touchpad
ETPS/2 Elantech 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:



#!/bin/bash
$ xinput disable 'ETPS/2 Elantech Touchpad'





share|improve this answer




























    up vote
    5
    down vote













    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.



    #!/bin/bash
    # toggle_touchpad.sh

    is_off=`synclient | grep -Pio "TouchpadOff.*?(d)" | grep -Eo "[01]"`

    if [ -z "$1" ]; then
    echo "Inverting touchpad state"

    if [ "$is_off" -eq '0' ];then
    synclient TouchpadOff=1
    notify-send "Touchpad Disabled"
    else
    synclient TouchpadOff=0
    notify-send "Touchpad Enabled"
    fi

    else

    if [ "$1" == "on" ]; then
    echo "Turning on touchpad"
    synclient TouchpadOff=0
    notify-send "Touchpad Enabled"
    elif [ "$1" == "off" ]; then
    echo "Turning off touchpad"
    synclient TouchpadOff=1
    notify-send "Touchpad Disabled"
    else
    echo "Unknown arg! Pass no args or on/off !"
    fi

    fi





    share|improve this answer






























      up vote
      4
      down vote













      This worked for me in 11.10 :



      ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
      ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
      ↳ Power Button id=6 [slave keyboard (3)]
      ↳ Video Bus id=7 [slave keyboard (3)]
      ↳ Power Button id=8 [slave keyboard (3)]
      ↳ Sleep Button id=9 [slave keyboard (3)]
      ↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
      ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
      ↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


      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.



      xinput set-prop 12 "Device Enabled" 0


      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






      share|improve this answer























      • no the touchpad utiity won't disable the tp in 11.10 so back to the commandline
        – touristguy87
        Apr 20 '12 at 17:32










      • run xinput list, get the id of the touchpad then run xinput set-prop (id) "Device Enabled" 0 works like a charm
        – touristguy87
        Apr 20 '12 at 17:33




















      up vote
      4
      down vote













      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



      xinput set-prop <id> "Device Enabled" 0


      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



      xinput set-prop <id> "Device Enabled" 1


      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.






      share|improve this answer






























        up vote
        3
        down vote













        First check if your laptop has enable/disable touchpad keyboard shortcut, by any chance! On my Lenovo Thinkpad T500 it's Fn+F8






        share|improve this answer























        • Great solution! And its KISS: Keep it super simple.
          – Esteve
          Feb 5 '14 at 9:49






        • 1




          It seems too specific. Not working with my n550jv. Peng Wu comments did the trick.
          – louiscoquio
          Mar 3 '14 at 14:23






        • 1




          Most laptops with touchpads will have such a key, but there's no guarantee it will work. If I use xev or xinput and attempt to use the button on my G700 it doesn't register a darn thing. Even evemu-record doesn't register anything, and that's at the kernel level. If the kernel can't see it, there's nothing much to be done about it except fix device drivers. That being said, this is a great solution, but not a reliable one for all use cases.
          – wxl
          Jan 18 '15 at 15:38


















        up vote
        3
        down vote













        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.



        enter image description here





        Here is a solution for toggling touchpad just by pressing a shortcut.



        1. Getting id of your touchpad



        $ xinput list


        2. Writing a script for toggling touchpad



        So 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.



        #!/bin/bash

        device=12
        state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`

        if [ "$state" -eq '1' ];then
        xinput --disable "$device"
        else
        xinput --enable "$device"
        fi


        Save the above script file as .toggleTouchPad.sh at where you want.



        3. Keyboard shortcut for running the script



        And last step is adding keyboard shortcut to run the script file.



        So just write sh /PATH/TO/SCRIPT in the Command of your shortcut window .



        enter image description here



        4. Try the shortcut



        Press the shortcut and check if touchpad is toggled.



        It worked at ASUS A556UA Laptop and Ubuntu14.04 x64 installed.





        Thing to be improved.




        • assigning Touchpad toggle key to the above custom shortcut would not work

        • it just shows touch pad icon on the right-top of the screen

        • so I had to assign another key(super+F9) rather than Touchpad toggle(fn+F9) key.


        enter image description here



        please suggest a way to assign Touchpad toggle key to a custom shortcut for complete solution






        share|improve this answer






























          up vote
          3
          down vote













          For Ubuntu 16.04



          For disable touchpad:



          xinput --disable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//') 


          and for enable touchpad:



          xinput --enable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//')





          share|improve this answer






























            up vote
            2
            down vote













            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:



            $ pip install xinput


            Disable touchpad:



            $ disable-touchpad


            Enable touchpad:



            $ enable-touchpad





            share|improve this answer























            • brilliant, probably the easiest solution
              – Exeleration-G
              Feb 17 at 21:24


















            up vote
            2
            down vote













            Just add a couple of bash functions to your .bashrc to give you a togggle...



            #toggle-touchpad on|off
            function touchpadon { /usr/bin/xinput --enable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad enabled";}
            function touchpadoff { /usr/bin/xinput --disable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad disabled";}





            share|improve this answer




























              up vote
              2
              down vote













              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.






              share|improve this answer






























                up vote
                2
                down vote













                It is actually very simple to disable touchpad in Ubuntu. Just remove the package xserver-xorg-input-synaptics that is required for using touchpads in Ubuntu!



                sudo apt-get remove xserver-xorg-input-synaptics



                It is the only way to disable touchpad permanently that worked for me. The other ways were only temporary:



                xinput list
                xinput set-prop IDOFTOUCHPAD "Device Enabled" 0
                synclient TouchpadOff=1


                I am using LXDE and I was not able to automatically disable the touchpad by adding these lines to ~/.config/lxsession/LXDE/autostart or /etc/xdg/lxsession/LXDE/autostart with a @-prefix. It was just ignored.



                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".






                share|improve this answer




























                  up vote
                  2
                  down vote













                  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.






                  share|improve this answer























                  • I do not have that button bro. It is a HP probook 4520s
                    – Peng Wu
                    Oct 16 '11 at 8:51










                  • oh ok. I just found out that the solution I posted is not permanent either, I have to do it every time I restart my machine.
                    – Fayaz
                    Oct 18 '11 at 12:19


















                  up vote
                  1
                  down vote













                  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:



                  sudo apt-get install gpointing-device-settings


                  enter image description here






                  share|improve this answer




























                    up vote
                    1
                    down vote













                    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:



                    $ xinput list
                    ⎡ Virtual core pointer id=2
                    ⎜ ↳ Virtual core XTEST pointer id=4
                    ⎜ ↳ Wacom Graphire2 4x5 eraser id=9
                    ⎜ ↳ Wacom Graphire2 4x5 cursor id=10
                    ⎜ ↳ Wacom Graphire2 4x5 id=11
                    ⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=14
                    ⎜ ↳ Macintosh mouse button emulation id=15
                    ⎜ ↳ DualPoint Stick id=13
                    ⎣ Virtual core keyboard id=3
                    ↳ Virtual core XTEST keyboard id=5
                    ↳ Video Bus id=6
                    ↳ Power Button id=7
                    ↳ Sleep Button id=8
                    ↳ AT Translated Set 2 keyboard id=12

                    The device I want to disable has id 13. Use xinput to list its properties:

                    $ xinput -list-props 13
                    Device 'DualPoint Stick':
                    Device Enabled (115): 0
                    [...several lines removed...]
                    $ xinput -set-prop 13 115 0


                    This has disabled the Dualpoint stick. But none of the other answers worked for me. I did



                    Install dconf-tools:



                    sudo apt-get install  dconf-tools
                    dconf-editor


                    Then go to org -> gnome -> settings-daemon -> peripherals -> touchpad and uncheck touchpad-enabled field






                    share|improve this answer























                    • The small Nob! between G H and B keys is actually mounted on a small square peg, pull it out with a pair of tweezers! This will prevent you from hitting it when typing - and if needed later just put it back (so do not throw it away) Trying to disable it through software might impede the functionality of your mouse or touch-pad!
                      – Ken Mollerup
                      Apr 21 '16 at 8:40


















                    up vote
                    1
                    down vote













                    I found a nice solution of creating a key binding that will invoke the command:



                    xdotool key 199


                    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:



                    xmodmap -pke


                    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/






                    share|improve this answer




























                      up vote
                      0
                      down vote













                      I have a Medion Akoya notebook model P7812 using Ubuntu 11.10 (64 bit) and the Fn & F6 key combination disables the touchpad.






                      share|improve this answer






























                        up vote
                        0
                        down vote













                        Alternative solution which works for all touchpads, no id needed.



                        open a terminal and write "gedit toggle_touchpad.sh"



                        #!/bin/bash
                        condition="$(gsettings get org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled)"

                        if [ "$condition" == "false" ]; then
                        gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled true
                        elif [ "$condition" == "true" ]; then
                        gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled false
                        fi


                        Save the file and exit. Now you have a file with the name "toggle_touchpad.sh"



                        Run the command chmod +x toggle_touchpad.sh to make the file executable.



                        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 system-settings->keyboard->shortcuts->custom-shortcuts.



                        Create a new shortcut and put as name whatever you want. Put as command /home<username>;/myscripts/toggle_touchpad.sh where "username" is your username



                        Assign whatever keyboard shortcut you want.



                        Ready :)



                        P.S. Personally I put the file in the /opt/myscripts/ folder but in order to put it there you should run the following commands after creating the file:



                        sudo mkdir /opt/myscripts/

                        sudo mv toggle_touchpad.sh /opt/myscripts/

                        sudo chown <username>:<username> /opt/myscripts/toggle_touchpad.sh

                        chmod +x /opt/myscripts/toggle_touchpad.sh


                        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






                        share|improve this answer




























                          up vote
                          0
                          down vote













                          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.






                          share|improve this answer




























                            up vote
                            0
                            down vote













                            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 xinput < id > with the command below. For Ubuntu 14.04, it is the "SynPS/2 Synaptics TouchPad"



                            xinput list
                            SynPS/2 Synaptics TouchPad id=###





                            share|improve this answer






























                              up vote
                              0
                              down vote













                              I tried all the previous answers here without success.

                              What worked for me on Ubuntu 16.10 was



                              killall syndaemon 
                              syndaemon -i 1 -KRd


                              You may want to change the value 1 to 0.5.






                              share|improve this answer






























                                up vote
                                0
                                down vote













                                So, by combining Krzysztof Tomaszewski and JaeJun LEE's answers I came to this solution.



                                Create the following toggleTouchPad.sh script and save it wherever you want:



                                #!/bin/bash
                                device=14
                                state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`
                                if [ "$state" -eq '1' ];then
                                xinput --disable "$device" && sleep 1 && xdotool key 201
                                else
                                xinput --enable "$device" && sleep 1 && xdotool key 200
                                fi


                                where 14 is your TouchDevice Id (refer to JaeJun LEE's answer)




                                1. Go to Ubuntu Settings -> Devices -> Keyboard


                                2. At the end of the list, click on + to add a new custom shortcut


                                3. Name it Toggle Touchpad, with Command /path/to/.toggleTouchPad.sh and whatever key combination you'd want (I've just chosen Super + F7).



                                Now, whenever you hit your chosen key combination, it not only toggle the Touchpad but it also shows a notification icon thanks to xdotool






                                share|improve this answer






























                                  up vote
                                  0
                                  down vote













                                  To disable my dell latitude's middle stick, I put this on .profile of Ubuntu so every-time I start/reboot my laptop, it will disable that input.



                                  I used the --id-only to avoid mismatch in grep



                                  declare -i ID
                                  ID=`xinput list --id-only 'AlpsPS/2 ALPS DualPoint Stick' | grep -Eo '[0-9]{1,2$
                                  declare -i STATE
                                  STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
                                  if [ $STATE -eq 1 ]
                                  then
                                  echo "id" $ID
                                  xinput disable $ID
                                  echo "Touchpad disabled."
                                  else
                                  echo "id" $ID
                                  xinput enable $ID
                                  echo "Touchpad enabled."
                                  fi





                                  share|improve this answer






























                                    up vote
                                    0
                                    down vote













                                    In my case, with a Slimbook and Kubuntu, I just used the combination: Fn+Z.

                                    This disables or enables the touchpad.






                                    share|improve this answer























                                      Your Answer








                                      StackExchange.ready(function() {
                                      var channelOptions = {
                                      tags: "".split(" "),
                                      id: "89"
                                      };
                                      initTagRenderer("".split(" "), "".split(" "), channelOptions);

                                      StackExchange.using("externalEditor", function() {
                                      // Have to fire editor after snippets, if snippets enabled
                                      if (StackExchange.settings.snippets.snippetsEnabled) {
                                      StackExchange.using("snippets", function() {
                                      createEditor();
                                      });
                                      }
                                      else {
                                      createEditor();
                                      }
                                      });

                                      function createEditor() {
                                      StackExchange.prepareEditor({
                                      heartbeatType: 'answer',
                                      autoActivateHeartbeat: false,
                                      convertImagesToLinks: true,
                                      noModals: true,
                                      showLowRepImageUploadWarning: true,
                                      reputationToPostImages: 10,
                                      bindNavPrevention: true,
                                      postfix: "",
                                      imageUploader: {
                                      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                                      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                                      allowUrls: true
                                      },
                                      onDemand: true,
                                      discardSelector: ".discard-answer"
                                      ,immediatelyShowMarkdownHelp:true
                                      });


                                      }
                                      });














                                      draft saved

                                      draft discarded


















                                      StackExchange.ready(
                                      function () {
                                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f65951%2fhow-to-disable-the-touchpad%23new-answer', 'question_page');
                                      }
                                      );

                                      Post as a guest















                                      Required, but never shown

























                                      29 Answers
                                      29






                                      active

                                      oldest

                                      votes








                                      29 Answers
                                      29






                                      active

                                      oldest

                                      votes









                                      active

                                      oldest

                                      votes






                                      active

                                      oldest

                                      votes








                                      up vote
                                      278
                                      down vote



                                      accepted
                                      +50










                                      Run the following command in a terminal:



                                      xinput list


                                      You will get an output that looks like this:



                                      ⎡ Virtual core pointer                          id=2    [master pointer  (3)]
                                      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
                                      ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
                                      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
                                      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
                                      ↳ Power Button id=6 [slave keyboard (3)]
                                      ↳ Video Bus id=7 [slave keyboard (3)]
                                      ↳ Power Button id=8 [slave keyboard (3)]
                                      ↳ Sleep Button id=9 [slave keyboard (3)]
                                      ↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
                                      ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
                                      ↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


                                      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.



                                      xinput set-prop 12 "Device Enabled" 0


                                      In Ubuntu versions >12.04 you can also directly disable via



                                      xinput --disable 12


                                      (and enable via a similar command)






                                      share|improve this answer



















                                      • 29




                                        turn off touch pad synclient TouchpadOff=1 turn it back on synclient TouchpadOff=0 This way even better.
                                        – Peng Wu
                                        Oct 17 '11 at 10:40








                                      • 1




                                        sudo apt-get install touchpad-indicator the good new is that touchpad-indicator is worked again in 11.10.
                                        – Peng Wu
                                        Nov 10 '11 at 23:47








                                      • 3




                                        "synclient -l | less" to see all available options
                                        – sam.is
                                        Jul 16 '13 at 2:39






                                      • 8




                                        In 12.10 and later, you can also use xinput -disable 12 to disable input device 12 (or xinput -enable 12 to enable it). See manual page xinput(1).
                                        – Lekensteyn
                                        Aug 25 '13 at 22:55






                                      • 1




                                        @smartmouse, try putting Geremy's command in a script and then use the "Start Applications" program to run the script on login.
                                        – b_laoshi
                                        Apr 11 '17 at 2:05















                                      up vote
                                      278
                                      down vote



                                      accepted
                                      +50










                                      Run the following command in a terminal:



                                      xinput list


                                      You will get an output that looks like this:



                                      ⎡ Virtual core pointer                          id=2    [master pointer  (3)]
                                      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
                                      ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
                                      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
                                      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
                                      ↳ Power Button id=6 [slave keyboard (3)]
                                      ↳ Video Bus id=7 [slave keyboard (3)]
                                      ↳ Power Button id=8 [slave keyboard (3)]
                                      ↳ Sleep Button id=9 [slave keyboard (3)]
                                      ↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
                                      ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
                                      ↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


                                      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.



                                      xinput set-prop 12 "Device Enabled" 0


                                      In Ubuntu versions >12.04 you can also directly disable via



                                      xinput --disable 12


                                      (and enable via a similar command)






                                      share|improve this answer



















                                      • 29




                                        turn off touch pad synclient TouchpadOff=1 turn it back on synclient TouchpadOff=0 This way even better.
                                        – Peng Wu
                                        Oct 17 '11 at 10:40








                                      • 1




                                        sudo apt-get install touchpad-indicator the good new is that touchpad-indicator is worked again in 11.10.
                                        – Peng Wu
                                        Nov 10 '11 at 23:47








                                      • 3




                                        "synclient -l | less" to see all available options
                                        – sam.is
                                        Jul 16 '13 at 2:39






                                      • 8




                                        In 12.10 and later, you can also use xinput -disable 12 to disable input device 12 (or xinput -enable 12 to enable it). See manual page xinput(1).
                                        – Lekensteyn
                                        Aug 25 '13 at 22:55






                                      • 1




                                        @smartmouse, try putting Geremy's command in a script and then use the "Start Applications" program to run the script on login.
                                        – b_laoshi
                                        Apr 11 '17 at 2:05













                                      up vote
                                      278
                                      down vote



                                      accepted
                                      +50







                                      up vote
                                      278
                                      down vote



                                      accepted
                                      +50




                                      +50




                                      Run the following command in a terminal:



                                      xinput list


                                      You will get an output that looks like this:



                                      ⎡ Virtual core pointer                          id=2    [master pointer  (3)]
                                      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
                                      ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
                                      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
                                      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
                                      ↳ Power Button id=6 [slave keyboard (3)]
                                      ↳ Video Bus id=7 [slave keyboard (3)]
                                      ↳ Power Button id=8 [slave keyboard (3)]
                                      ↳ Sleep Button id=9 [slave keyboard (3)]
                                      ↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
                                      ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
                                      ↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


                                      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.



                                      xinput set-prop 12 "Device Enabled" 0


                                      In Ubuntu versions >12.04 you can also directly disable via



                                      xinput --disable 12


                                      (and enable via a similar command)






                                      share|improve this answer














                                      Run the following command in a terminal:



                                      xinput list


                                      You will get an output that looks like this:



                                      ⎡ Virtual core pointer                          id=2    [master pointer  (3)]
                                      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
                                      ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
                                      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
                                      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
                                      ↳ Power Button id=6 [slave keyboard (3)]
                                      ↳ Video Bus id=7 [slave keyboard (3)]
                                      ↳ Power Button id=8 [slave keyboard (3)]
                                      ↳ Sleep Button id=9 [slave keyboard (3)]
                                      ↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
                                      ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
                                      ↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


                                      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.



                                      xinput set-prop 12 "Device Enabled" 0


                                      In Ubuntu versions >12.04 you can also directly disable via



                                      xinput --disable 12


                                      (and enable via a similar command)







                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Oct 22 '16 at 16:20









                                      Dave

                                      161110




                                      161110










                                      answered Oct 16 '11 at 19:44









                                      Peng Wu

                                      4,18371616




                                      4,18371616








                                      • 29




                                        turn off touch pad synclient TouchpadOff=1 turn it back on synclient TouchpadOff=0 This way even better.
                                        – Peng Wu
                                        Oct 17 '11 at 10:40








                                      • 1




                                        sudo apt-get install touchpad-indicator the good new is that touchpad-indicator is worked again in 11.10.
                                        – Peng Wu
                                        Nov 10 '11 at 23:47








                                      • 3




                                        "synclient -l | less" to see all available options
                                        – sam.is
                                        Jul 16 '13 at 2:39






                                      • 8




                                        In 12.10 and later, you can also use xinput -disable 12 to disable input device 12 (or xinput -enable 12 to enable it). See manual page xinput(1).
                                        – Lekensteyn
                                        Aug 25 '13 at 22:55






                                      • 1




                                        @smartmouse, try putting Geremy's command in a script and then use the "Start Applications" program to run the script on login.
                                        – b_laoshi
                                        Apr 11 '17 at 2:05














                                      • 29




                                        turn off touch pad synclient TouchpadOff=1 turn it back on synclient TouchpadOff=0 This way even better.
                                        – Peng Wu
                                        Oct 17 '11 at 10:40








                                      • 1




                                        sudo apt-get install touchpad-indicator the good new is that touchpad-indicator is worked again in 11.10.
                                        – Peng Wu
                                        Nov 10 '11 at 23:47








                                      • 3




                                        "synclient -l | less" to see all available options
                                        – sam.is
                                        Jul 16 '13 at 2:39






                                      • 8




                                        In 12.10 and later, you can also use xinput -disable 12 to disable input device 12 (or xinput -enable 12 to enable it). See manual page xinput(1).
                                        – Lekensteyn
                                        Aug 25 '13 at 22:55






                                      • 1




                                        @smartmouse, try putting Geremy's command in a script and then use the "Start Applications" program to run the script on login.
                                        – b_laoshi
                                        Apr 11 '17 at 2:05








                                      29




                                      29




                                      turn off touch pad synclient TouchpadOff=1 turn it back on synclient TouchpadOff=0 This way even better.
                                      – Peng Wu
                                      Oct 17 '11 at 10:40






                                      turn off touch pad synclient TouchpadOff=1 turn it back on synclient TouchpadOff=0 This way even better.
                                      – Peng Wu
                                      Oct 17 '11 at 10:40






                                      1




                                      1




                                      sudo apt-get install touchpad-indicator the good new is that touchpad-indicator is worked again in 11.10.
                                      – Peng Wu
                                      Nov 10 '11 at 23:47






                                      sudo apt-get install touchpad-indicator the good new is that touchpad-indicator is worked again in 11.10.
                                      – Peng Wu
                                      Nov 10 '11 at 23:47






                                      3




                                      3




                                      "synclient -l | less" to see all available options
                                      – sam.is
                                      Jul 16 '13 at 2:39




                                      "synclient -l | less" to see all available options
                                      – sam.is
                                      Jul 16 '13 at 2:39




                                      8




                                      8




                                      In 12.10 and later, you can also use xinput -disable 12 to disable input device 12 (or xinput -enable 12 to enable it). See manual page xinput(1).
                                      – Lekensteyn
                                      Aug 25 '13 at 22:55




                                      In 12.10 and later, you can also use xinput -disable 12 to disable input device 12 (or xinput -enable 12 to enable it). See manual page xinput(1).
                                      – Lekensteyn
                                      Aug 25 '13 at 22:55




                                      1




                                      1




                                      @smartmouse, try putting Geremy's command in a script and then use the "Start Applications" program to run the script on login.
                                      – b_laoshi
                                      Apr 11 '17 at 2:05




                                      @smartmouse, try putting Geremy's command in a script and then use the "Start Applications" program to run the script on login.
                                      – b_laoshi
                                      Apr 11 '17 at 2:05












                                      up vote
                                      78
                                      down vote














                                      1. Search for mouse

                                      2. Click on Mouse and Touchpad

                                      3. Click off/on button to the right of touchpad settings.


                                      step one



                                      enter image description here






                                      share|improve this answer

















                                      • 3




                                        the big ON|OFF widget there is not available in 12.04, that's one one has to resort to the command line...
                                        – knocte
                                        Jan 29 '14 at 10:44






                                      • 1




                                        I've accidentally disabled the touchpad using this method,how do I enable it again without connecting a mouse to my computer?
                                        – Ziv
                                        May 19 '17 at 15:26






                                      • 1




                                        @Ziv You go to this Mouse & Touchpad window, keep clicking tab until the on/off toggler is focused, then press Enter.
                                        – paibamboo
                                        Oct 7 '17 at 9:57










                                      • this is a good way to do it. My touchpad keep re-enabling itself after I disable it through commandline
                                        – Hoàng Long
                                        Jul 26 at 7:14

















                                      up vote
                                      78
                                      down vote














                                      1. Search for mouse

                                      2. Click on Mouse and Touchpad

                                      3. Click off/on button to the right of touchpad settings.


                                      step one



                                      enter image description here






                                      share|improve this answer

















                                      • 3




                                        the big ON|OFF widget there is not available in 12.04, that's one one has to resort to the command line...
                                        – knocte
                                        Jan 29 '14 at 10:44






                                      • 1




                                        I've accidentally disabled the touchpad using this method,how do I enable it again without connecting a mouse to my computer?
                                        – Ziv
                                        May 19 '17 at 15:26






                                      • 1




                                        @Ziv You go to this Mouse & Touchpad window, keep clicking tab until the on/off toggler is focused, then press Enter.
                                        – paibamboo
                                        Oct 7 '17 at 9:57










                                      • this is a good way to do it. My touchpad keep re-enabling itself after I disable it through commandline
                                        – Hoàng Long
                                        Jul 26 at 7:14















                                      up vote
                                      78
                                      down vote










                                      up vote
                                      78
                                      down vote










                                      1. Search for mouse

                                      2. Click on Mouse and Touchpad

                                      3. Click off/on button to the right of touchpad settings.


                                      step one



                                      enter image description here






                                      share|improve this answer













                                      1. Search for mouse

                                      2. Click on Mouse and Touchpad

                                      3. Click off/on button to the right of touchpad settings.


                                      step one



                                      enter image description here







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered May 29 '13 at 15:30









                                      James

                                      1,65341521




                                      1,65341521








                                      • 3




                                        the big ON|OFF widget there is not available in 12.04, that's one one has to resort to the command line...
                                        – knocte
                                        Jan 29 '14 at 10:44






                                      • 1




                                        I've accidentally disabled the touchpad using this method,how do I enable it again without connecting a mouse to my computer?
                                        – Ziv
                                        May 19 '17 at 15:26






                                      • 1




                                        @Ziv You go to this Mouse & Touchpad window, keep clicking tab until the on/off toggler is focused, then press Enter.
                                        – paibamboo
                                        Oct 7 '17 at 9:57










                                      • this is a good way to do it. My touchpad keep re-enabling itself after I disable it through commandline
                                        – Hoàng Long
                                        Jul 26 at 7:14
















                                      • 3




                                        the big ON|OFF widget there is not available in 12.04, that's one one has to resort to the command line...
                                        – knocte
                                        Jan 29 '14 at 10:44






                                      • 1




                                        I've accidentally disabled the touchpad using this method,how do I enable it again without connecting a mouse to my computer?
                                        – Ziv
                                        May 19 '17 at 15:26






                                      • 1




                                        @Ziv You go to this Mouse & Touchpad window, keep clicking tab until the on/off toggler is focused, then press Enter.
                                        – paibamboo
                                        Oct 7 '17 at 9:57










                                      • this is a good way to do it. My touchpad keep re-enabling itself after I disable it through commandline
                                        – Hoàng Long
                                        Jul 26 at 7:14










                                      3




                                      3




                                      the big ON|OFF widget there is not available in 12.04, that's one one has to resort to the command line...
                                      – knocte
                                      Jan 29 '14 at 10:44




                                      the big ON|OFF widget there is not available in 12.04, that's one one has to resort to the command line...
                                      – knocte
                                      Jan 29 '14 at 10:44




                                      1




                                      1




                                      I've accidentally disabled the touchpad using this method,how do I enable it again without connecting a mouse to my computer?
                                      – Ziv
                                      May 19 '17 at 15:26




                                      I've accidentally disabled the touchpad using this method,how do I enable it again without connecting a mouse to my computer?
                                      – Ziv
                                      May 19 '17 at 15:26




                                      1




                                      1




                                      @Ziv You go to this Mouse & Touchpad window, keep clicking tab until the on/off toggler is focused, then press Enter.
                                      – paibamboo
                                      Oct 7 '17 at 9:57




                                      @Ziv You go to this Mouse & Touchpad window, keep clicking tab until the on/off toggler is focused, then press Enter.
                                      – paibamboo
                                      Oct 7 '17 at 9:57












                                      this is a good way to do it. My touchpad keep re-enabling itself after I disable it through commandline
                                      – Hoàng Long
                                      Jul 26 at 7:14






                                      this is a good way to do it. My touchpad keep re-enabling itself after I disable it through commandline
                                      – Hoàng Long
                                      Jul 26 at 7:14












                                      up vote
                                      37
                                      down vote













                                      check this link out: How to disable-enable touchpad in ubuntu 11.10



                                      The answer found there is really neat:



                                      sudo add-apt-repository ppa:atareao/atareao
                                      sudo apt-get update
                                      sudo apt-get install touchpad-indicator


                                      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...






                                      share|improve this answer























                                      • orsome! It once was broken in 11.10. but now it is worked
                                        – Peng Wu
                                        Nov 10 '11 at 23:47






                                      • 1




                                        Does work in 12.04.
                                        – viking
                                        Feb 20 '13 at 20:06






                                      • 1




                                        works fine in 14.04
                                        – voiger
                                        Sep 4 '14 at 13:28






                                      • 2




                                        WARNING: this requires trusting user atareao, he could be hosting malware in his PPA
                                        – knocte
                                        Oct 16 '16 at 10:30






                                      • 1




                                        Does not work properly in Xubuntu 16.04.1. Registers certain clicks as key presses and then prevents further usage of the touchpad, although you clicked and did not press a key, while on the other hand it did nothing when I pressed keys and kept moving around the cursor using the touchpad. Something must be buggy with it or not general enough over distributions or machines, so that it causes this kind of behavior.
                                        – Zelphir
                                        Feb 10 '17 at 10:38

















                                      up vote
                                      37
                                      down vote













                                      check this link out: How to disable-enable touchpad in ubuntu 11.10



                                      The answer found there is really neat:



                                      sudo add-apt-repository ppa:atareao/atareao
                                      sudo apt-get update
                                      sudo apt-get install touchpad-indicator


                                      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...






                                      share|improve this answer























                                      • orsome! It once was broken in 11.10. but now it is worked
                                        – Peng Wu
                                        Nov 10 '11 at 23:47






                                      • 1




                                        Does work in 12.04.
                                        – viking
                                        Feb 20 '13 at 20:06






                                      • 1




                                        works fine in 14.04
                                        – voiger
                                        Sep 4 '14 at 13:28






                                      • 2




                                        WARNING: this requires trusting user atareao, he could be hosting malware in his PPA
                                        – knocte
                                        Oct 16 '16 at 10:30






                                      • 1




                                        Does not work properly in Xubuntu 16.04.1. Registers certain clicks as key presses and then prevents further usage of the touchpad, although you clicked and did not press a key, while on the other hand it did nothing when I pressed keys and kept moving around the cursor using the touchpad. Something must be buggy with it or not general enough over distributions or machines, so that it causes this kind of behavior.
                                        – Zelphir
                                        Feb 10 '17 at 10:38















                                      up vote
                                      37
                                      down vote










                                      up vote
                                      37
                                      down vote









                                      check this link out: How to disable-enable touchpad in ubuntu 11.10



                                      The answer found there is really neat:



                                      sudo add-apt-repository ppa:atareao/atareao
                                      sudo apt-get update
                                      sudo apt-get install touchpad-indicator


                                      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...






                                      share|improve this answer














                                      check this link out: How to disable-enable touchpad in ubuntu 11.10



                                      The answer found there is really neat:



                                      sudo add-apt-repository ppa:atareao/atareao
                                      sudo apt-get update
                                      sudo apt-get install touchpad-indicator


                                      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...







                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Jul 8 '16 at 8:05









                                      anand mbs

                                      377316




                                      377316










                                      answered Oct 23 '11 at 10:59









                                      user27825

                                      56944




                                      56944












                                      • orsome! It once was broken in 11.10. but now it is worked
                                        – Peng Wu
                                        Nov 10 '11 at 23:47






                                      • 1




                                        Does work in 12.04.
                                        – viking
                                        Feb 20 '13 at 20:06






                                      • 1




                                        works fine in 14.04
                                        – voiger
                                        Sep 4 '14 at 13:28






                                      • 2




                                        WARNING: this requires trusting user atareao, he could be hosting malware in his PPA
                                        – knocte
                                        Oct 16 '16 at 10:30






                                      • 1




                                        Does not work properly in Xubuntu 16.04.1. Registers certain clicks as key presses and then prevents further usage of the touchpad, although you clicked and did not press a key, while on the other hand it did nothing when I pressed keys and kept moving around the cursor using the touchpad. Something must be buggy with it or not general enough over distributions or machines, so that it causes this kind of behavior.
                                        – Zelphir
                                        Feb 10 '17 at 10:38




















                                      • orsome! It once was broken in 11.10. but now it is worked
                                        – Peng Wu
                                        Nov 10 '11 at 23:47






                                      • 1




                                        Does work in 12.04.
                                        – viking
                                        Feb 20 '13 at 20:06






                                      • 1




                                        works fine in 14.04
                                        – voiger
                                        Sep 4 '14 at 13:28






                                      • 2




                                        WARNING: this requires trusting user atareao, he could be hosting malware in his PPA
                                        – knocte
                                        Oct 16 '16 at 10:30






                                      • 1




                                        Does not work properly in Xubuntu 16.04.1. Registers certain clicks as key presses and then prevents further usage of the touchpad, although you clicked and did not press a key, while on the other hand it did nothing when I pressed keys and kept moving around the cursor using the touchpad. Something must be buggy with it or not general enough over distributions or machines, so that it causes this kind of behavior.
                                        – Zelphir
                                        Feb 10 '17 at 10:38


















                                      orsome! It once was broken in 11.10. but now it is worked
                                      – Peng Wu
                                      Nov 10 '11 at 23:47




                                      orsome! It once was broken in 11.10. but now it is worked
                                      – Peng Wu
                                      Nov 10 '11 at 23:47




                                      1




                                      1




                                      Does work in 12.04.
                                      – viking
                                      Feb 20 '13 at 20:06




                                      Does work in 12.04.
                                      – viking
                                      Feb 20 '13 at 20:06




                                      1




                                      1




                                      works fine in 14.04
                                      – voiger
                                      Sep 4 '14 at 13:28




                                      works fine in 14.04
                                      – voiger
                                      Sep 4 '14 at 13:28




                                      2




                                      2




                                      WARNING: this requires trusting user atareao, he could be hosting malware in his PPA
                                      – knocte
                                      Oct 16 '16 at 10:30




                                      WARNING: this requires trusting user atareao, he could be hosting malware in his PPA
                                      – knocte
                                      Oct 16 '16 at 10:30




                                      1




                                      1




                                      Does not work properly in Xubuntu 16.04.1. Registers certain clicks as key presses and then prevents further usage of the touchpad, although you clicked and did not press a key, while on the other hand it did nothing when I pressed keys and kept moving around the cursor using the touchpad. Something must be buggy with it or not general enough over distributions or machines, so that it causes this kind of behavior.
                                      – Zelphir
                                      Feb 10 '17 at 10:38






                                      Does not work properly in Xubuntu 16.04.1. Registers certain clicks as key presses and then prevents further usage of the touchpad, although you clicked and did not press a key, while on the other hand it did nothing when I pressed keys and kept moving around the cursor using the touchpad. Something must be buggy with it or not general enough over distributions or machines, so that it causes this kind of behavior.
                                      – Zelphir
                                      Feb 10 '17 at 10:38












                                      up vote
                                      29
                                      down vote













                                      Based on answer given by @Peng Wu I created a bash script that can be used...





                                      #!/bin/bash

                                      declare -i ID
                                      ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`

                                      xinput set-prop $ID "Device Enabled" 0

                                      echo 'Touchpad has been disabled.'


                                      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:



                                      #!/bin/bash

                                      declare -i ID
                                      ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
                                      declare -i STATE
                                      STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
                                      if [ $STATE -eq 1 ]
                                      then
                                      xinput disable $ID
                                      echo "Touchpad disabled."
                                      else
                                      xinput enable $ID
                                      echo "Touchpad enabled."
                                      fi





                                      share|improve this answer























                                      • Would be cool to check the status code for the first script. I had to change the grep pattern to 'Touchpad in mouse emulation modes*id=[0-9]{1,2}'
                                        – galath
                                        Sep 18 '15 at 21:53












                                      • On my system, it was Touchpad instead of TouchPad. To make it case-insensitive, just add an i to your grep options.
                                        – zondo
                                        Nov 5 '16 at 1:11










                                      • ruby touchpad toggle oneliner synclient TouchpadOff=$(synclient | ruby -ne 'puts ($_.match(/\d+/)[0].to_i ^ 1) if /TouchpadOff/ =~ $_')
                                        – galva
                                        May 21 at 8:23










                                      • for a one-line equivalent of this, see my answer
                                        – knocte
                                        Nov 26 at 6:40















                                      up vote
                                      29
                                      down vote













                                      Based on answer given by @Peng Wu I created a bash script that can be used...





                                      #!/bin/bash

                                      declare -i ID
                                      ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`

                                      xinput set-prop $ID "Device Enabled" 0

                                      echo 'Touchpad has been disabled.'


                                      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:



                                      #!/bin/bash

                                      declare -i ID
                                      ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
                                      declare -i STATE
                                      STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
                                      if [ $STATE -eq 1 ]
                                      then
                                      xinput disable $ID
                                      echo "Touchpad disabled."
                                      else
                                      xinput enable $ID
                                      echo "Touchpad enabled."
                                      fi





                                      share|improve this answer























                                      • Would be cool to check the status code for the first script. I had to change the grep pattern to 'Touchpad in mouse emulation modes*id=[0-9]{1,2}'
                                        – galath
                                        Sep 18 '15 at 21:53












                                      • On my system, it was Touchpad instead of TouchPad. To make it case-insensitive, just add an i to your grep options.
                                        – zondo
                                        Nov 5 '16 at 1:11










                                      • ruby touchpad toggle oneliner synclient TouchpadOff=$(synclient | ruby -ne 'puts ($_.match(/\d+/)[0].to_i ^ 1) if /TouchpadOff/ =~ $_')
                                        – galva
                                        May 21 at 8:23










                                      • for a one-line equivalent of this, see my answer
                                        – knocte
                                        Nov 26 at 6:40













                                      up vote
                                      29
                                      down vote










                                      up vote
                                      29
                                      down vote









                                      Based on answer given by @Peng Wu I created a bash script that can be used...





                                      #!/bin/bash

                                      declare -i ID
                                      ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`

                                      xinput set-prop $ID "Device Enabled" 0

                                      echo 'Touchpad has been disabled.'


                                      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:



                                      #!/bin/bash

                                      declare -i ID
                                      ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
                                      declare -i STATE
                                      STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
                                      if [ $STATE -eq 1 ]
                                      then
                                      xinput disable $ID
                                      echo "Touchpad disabled."
                                      else
                                      xinput enable $ID
                                      echo "Touchpad enabled."
                                      fi





                                      share|improve this answer














                                      Based on answer given by @Peng Wu I created a bash script that can be used...





                                      #!/bin/bash

                                      declare -i ID
                                      ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`

                                      xinput set-prop $ID "Device Enabled" 0

                                      echo 'Touchpad has been disabled.'


                                      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:



                                      #!/bin/bash

                                      declare -i ID
                                      ID=`xinput list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
                                      declare -i STATE
                                      STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
                                      if [ $STATE -eq 1 ]
                                      then
                                      xinput disable $ID
                                      echo "Touchpad disabled."
                                      else
                                      xinput enable $ID
                                      echo "Touchpad enabled."
                                      fi






                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Dec 13 '13 at 22:36









                                      kiri

                                      18.8k1258104




                                      18.8k1258104










                                      answered Jul 6 '12 at 17:29









                                      bytebender

                                      42748




                                      42748












                                      • Would be cool to check the status code for the first script. I had to change the grep pattern to 'Touchpad in mouse emulation modes*id=[0-9]{1,2}'
                                        – galath
                                        Sep 18 '15 at 21:53












                                      • On my system, it was Touchpad instead of TouchPad. To make it case-insensitive, just add an i to your grep options.
                                        – zondo
                                        Nov 5 '16 at 1:11










                                      • ruby touchpad toggle oneliner synclient TouchpadOff=$(synclient | ruby -ne 'puts ($_.match(/\d+/)[0].to_i ^ 1) if /TouchpadOff/ =~ $_')
                                        – galva
                                        May 21 at 8:23










                                      • for a one-line equivalent of this, see my answer
                                        – knocte
                                        Nov 26 at 6:40


















                                      • Would be cool to check the status code for the first script. I had to change the grep pattern to 'Touchpad in mouse emulation modes*id=[0-9]{1,2}'
                                        – galath
                                        Sep 18 '15 at 21:53












                                      • On my system, it was Touchpad instead of TouchPad. To make it case-insensitive, just add an i to your grep options.
                                        – zondo
                                        Nov 5 '16 at 1:11










                                      • ruby touchpad toggle oneliner synclient TouchpadOff=$(synclient | ruby -ne 'puts ($_.match(/\d+/)[0].to_i ^ 1) if /TouchpadOff/ =~ $_')
                                        – galva
                                        May 21 at 8:23










                                      • for a one-line equivalent of this, see my answer
                                        – knocte
                                        Nov 26 at 6:40
















                                      Would be cool to check the status code for the first script. I had to change the grep pattern to 'Touchpad in mouse emulation modes*id=[0-9]{1,2}'
                                      – galath
                                      Sep 18 '15 at 21:53






                                      Would be cool to check the status code for the first script. I had to change the grep pattern to 'Touchpad in mouse emulation modes*id=[0-9]{1,2}'
                                      – galath
                                      Sep 18 '15 at 21:53














                                      On my system, it was Touchpad instead of TouchPad. To make it case-insensitive, just add an i to your grep options.
                                      – zondo
                                      Nov 5 '16 at 1:11




                                      On my system, it was Touchpad instead of TouchPad. To make it case-insensitive, just add an i to your grep options.
                                      – zondo
                                      Nov 5 '16 at 1:11












                                      ruby touchpad toggle oneliner synclient TouchpadOff=$(synclient | ruby -ne 'puts ($_.match(/\d+/)[0].to_i ^ 1) if /TouchpadOff/ =~ $_')
                                      – galva
                                      May 21 at 8:23




                                      ruby touchpad toggle oneliner synclient TouchpadOff=$(synclient | ruby -ne 'puts ($_.match(/\d+/)[0].to_i ^ 1) if /TouchpadOff/ =~ $_')
                                      – galva
                                      May 21 at 8:23












                                      for a one-line equivalent of this, see my answer
                                      – knocte
                                      Nov 26 at 6:40




                                      for a one-line equivalent of this, see my answer
                                      – knocte
                                      Nov 26 at 6:40










                                      up vote
                                      25
                                      down vote













                                      Simply, in a terminal:



                                      synclient TouchpadOff=1


                                      However, the above seems to not work anymore in Ubuntu 16.04. In this case, then xinput still works:



                                      xinput set-prop `xinput --list | awk '/TouchPad.*pointer/ {print $7}' | sed 's/id=(.*)/1/'` "Device Enabled" 0





                                      share|improve this answer























                                      • Easiest solution, thanks. Accidentally touching the touchpad despite "Disable touchpad while typing" was on - was driving me a little crazy. This way I can just use a USB mouse instead and keep the keyboard behaving nicely.
                                        – David Thomas
                                        Sep 22 '14 at 23:37










                                      • Does this need sudo? It has no effect on my HP 6460b + Ubuntu 14.04
                                        – itsols
                                        Dec 23 '15 at 3:22










                                      • it doesn't, and it works on my 14.04
                                        – knocte
                                        Dec 23 '15 at 3:45










                                      • Works on Ubuntu 16.04, does not need sudo, one can easily create a keyboard shortcut with it: +1 :-)
                                        – Martin Thoma
                                        May 4 '16 at 16:34










                                      • The xinput works on Fedora 25, thanks!
                                        – Alois Mahdal
                                        Mar 31 '17 at 16:42















                                      up vote
                                      25
                                      down vote













                                      Simply, in a terminal:



                                      synclient TouchpadOff=1


                                      However, the above seems to not work anymore in Ubuntu 16.04. In this case, then xinput still works:



                                      xinput set-prop `xinput --list | awk '/TouchPad.*pointer/ {print $7}' | sed 's/id=(.*)/1/'` "Device Enabled" 0





                                      share|improve this answer























                                      • Easiest solution, thanks. Accidentally touching the touchpad despite "Disable touchpad while typing" was on - was driving me a little crazy. This way I can just use a USB mouse instead and keep the keyboard behaving nicely.
                                        – David Thomas
                                        Sep 22 '14 at 23:37










                                      • Does this need sudo? It has no effect on my HP 6460b + Ubuntu 14.04
                                        – itsols
                                        Dec 23 '15 at 3:22










                                      • it doesn't, and it works on my 14.04
                                        – knocte
                                        Dec 23 '15 at 3:45










                                      • Works on Ubuntu 16.04, does not need sudo, one can easily create a keyboard shortcut with it: +1 :-)
                                        – Martin Thoma
                                        May 4 '16 at 16:34










                                      • The xinput works on Fedora 25, thanks!
                                        – Alois Mahdal
                                        Mar 31 '17 at 16:42













                                      up vote
                                      25
                                      down vote










                                      up vote
                                      25
                                      down vote









                                      Simply, in a terminal:



                                      synclient TouchpadOff=1


                                      However, the above seems to not work anymore in Ubuntu 16.04. In this case, then xinput still works:



                                      xinput set-prop `xinput --list | awk '/TouchPad.*pointer/ {print $7}' | sed 's/id=(.*)/1/'` "Device Enabled" 0





                                      share|improve this answer














                                      Simply, in a terminal:



                                      synclient TouchpadOff=1


                                      However, the above seems to not work anymore in Ubuntu 16.04. In this case, then xinput still works:



                                      xinput set-prop `xinput --list | awk '/TouchPad.*pointer/ {print $7}' | sed 's/id=(.*)/1/'` "Device Enabled" 0






                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Jun 15 '17 at 4:26

























                                      answered Jan 29 '14 at 10:46









                                      knocte

                                      677820




                                      677820












                                      • Easiest solution, thanks. Accidentally touching the touchpad despite "Disable touchpad while typing" was on - was driving me a little crazy. This way I can just use a USB mouse instead and keep the keyboard behaving nicely.
                                        – David Thomas
                                        Sep 22 '14 at 23:37










                                      • Does this need sudo? It has no effect on my HP 6460b + Ubuntu 14.04
                                        – itsols
                                        Dec 23 '15 at 3:22










                                      • it doesn't, and it works on my 14.04
                                        – knocte
                                        Dec 23 '15 at 3:45










                                      • Works on Ubuntu 16.04, does not need sudo, one can easily create a keyboard shortcut with it: +1 :-)
                                        – Martin Thoma
                                        May 4 '16 at 16:34










                                      • The xinput works on Fedora 25, thanks!
                                        – Alois Mahdal
                                        Mar 31 '17 at 16:42


















                                      • Easiest solution, thanks. Accidentally touching the touchpad despite "Disable touchpad while typing" was on - was driving me a little crazy. This way I can just use a USB mouse instead and keep the keyboard behaving nicely.
                                        – David Thomas
                                        Sep 22 '14 at 23:37










                                      • Does this need sudo? It has no effect on my HP 6460b + Ubuntu 14.04
                                        – itsols
                                        Dec 23 '15 at 3:22










                                      • it doesn't, and it works on my 14.04
                                        – knocte
                                        Dec 23 '15 at 3:45










                                      • Works on Ubuntu 16.04, does not need sudo, one can easily create a keyboard shortcut with it: +1 :-)
                                        – Martin Thoma
                                        May 4 '16 at 16:34










                                      • The xinput works on Fedora 25, thanks!
                                        – Alois Mahdal
                                        Mar 31 '17 at 16:42
















                                      Easiest solution, thanks. Accidentally touching the touchpad despite "Disable touchpad while typing" was on - was driving me a little crazy. This way I can just use a USB mouse instead and keep the keyboard behaving nicely.
                                      – David Thomas
                                      Sep 22 '14 at 23:37




                                      Easiest solution, thanks. Accidentally touching the touchpad despite "Disable touchpad while typing" was on - was driving me a little crazy. This way I can just use a USB mouse instead and keep the keyboard behaving nicely.
                                      – David Thomas
                                      Sep 22 '14 at 23:37












                                      Does this need sudo? It has no effect on my HP 6460b + Ubuntu 14.04
                                      – itsols
                                      Dec 23 '15 at 3:22




                                      Does this need sudo? It has no effect on my HP 6460b + Ubuntu 14.04
                                      – itsols
                                      Dec 23 '15 at 3:22












                                      it doesn't, and it works on my 14.04
                                      – knocte
                                      Dec 23 '15 at 3:45




                                      it doesn't, and it works on my 14.04
                                      – knocte
                                      Dec 23 '15 at 3:45












                                      Works on Ubuntu 16.04, does not need sudo, one can easily create a keyboard shortcut with it: +1 :-)
                                      – Martin Thoma
                                      May 4 '16 at 16:34




                                      Works on Ubuntu 16.04, does not need sudo, one can easily create a keyboard shortcut with it: +1 :-)
                                      – Martin Thoma
                                      May 4 '16 at 16:34












                                      The xinput works on Fedora 25, thanks!
                                      – Alois Mahdal
                                      Mar 31 '17 at 16:42




                                      The xinput works on Fedora 25, thanks!
                                      – Alois Mahdal
                                      Mar 31 '17 at 16:42










                                      up vote
                                      10
                                      down vote













                                      UPDATED SOLUTION:



                                      Instead of xinput, with id variables that can change, better use synclient as indicated in other answers, like this.



                                      sudo apt install xserver-xorg-input-synaptics


                                      To turn off touchpad:



                                      synclient TouchpadOff=1


                                      To turn on:



                                      synclient TouchpadOff=0


                                      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:



                                      xinput set-prop 15 "Device Enabled" 0


                                      Enable:



                                      xinput set-prop 15 "Device Enabled" 1


                                      The id number will be found by running



                                      xinput list





                                      share|improve this answer























                                      • @galileopy - a simple shortcut is even more useful as far as I ca tell now
                                        – cipricus
                                        Mar 6 at 21:35















                                      up vote
                                      10
                                      down vote













                                      UPDATED SOLUTION:



                                      Instead of xinput, with id variables that can change, better use synclient as indicated in other answers, like this.



                                      sudo apt install xserver-xorg-input-synaptics


                                      To turn off touchpad:



                                      synclient TouchpadOff=1


                                      To turn on:



                                      synclient TouchpadOff=0


                                      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:



                                      xinput set-prop 15 "Device Enabled" 0


                                      Enable:



                                      xinput set-prop 15 "Device Enabled" 1


                                      The id number will be found by running



                                      xinput list





                                      share|improve this answer























                                      • @galileopy - a simple shortcut is even more useful as far as I ca tell now
                                        – cipricus
                                        Mar 6 at 21:35













                                      up vote
                                      10
                                      down vote










                                      up vote
                                      10
                                      down vote









                                      UPDATED SOLUTION:



                                      Instead of xinput, with id variables that can change, better use synclient as indicated in other answers, like this.



                                      sudo apt install xserver-xorg-input-synaptics


                                      To turn off touchpad:



                                      synclient TouchpadOff=1


                                      To turn on:



                                      synclient TouchpadOff=0


                                      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:



                                      xinput set-prop 15 "Device Enabled" 0


                                      Enable:



                                      xinput set-prop 15 "Device Enabled" 1


                                      The id number will be found by running



                                      xinput list





                                      share|improve this answer














                                      UPDATED SOLUTION:



                                      Instead of xinput, with id variables that can change, better use synclient as indicated in other answers, like this.



                                      sudo apt install xserver-xorg-input-synaptics


                                      To turn off touchpad:



                                      synclient TouchpadOff=1


                                      To turn on:



                                      synclient TouchpadOff=0


                                      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:



                                      xinput set-prop 15 "Device Enabled" 0


                                      Enable:



                                      xinput set-prop 15 "Device Enabled" 1


                                      The id number will be found by running



                                      xinput list






                                      share|improve this answer














                                      share|improve this answer



                                      share|improve this answer








                                      edited Dec 12 at 20:07

























                                      answered Oct 14 '14 at 16:25









                                      cipricus

                                      9,95046170338




                                      9,95046170338












                                      • @galileopy - a simple shortcut is even more useful as far as I ca tell now
                                        – cipricus
                                        Mar 6 at 21:35


















                                      • @galileopy - a simple shortcut is even more useful as far as I ca tell now
                                        – cipricus
                                        Mar 6 at 21:35
















                                      @galileopy - a simple shortcut is even more useful as far as I ca tell now
                                      – cipricus
                                      Mar 6 at 21:35




                                      @galileopy - a simple shortcut is even more useful as far as I ca tell now
                                      – cipricus
                                      Mar 6 at 21:35










                                      up vote
                                      7
                                      down vote













                                      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:



                                      $ xinput list --name-only | grep -i Touchpad
                                      ETPS/2 Elantech 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:



                                      #!/bin/bash
                                      $ xinput disable 'ETPS/2 Elantech Touchpad'





                                      share|improve this answer

























                                        up vote
                                        7
                                        down vote













                                        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:



                                        $ xinput list --name-only | grep -i Touchpad
                                        ETPS/2 Elantech 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:



                                        #!/bin/bash
                                        $ xinput disable 'ETPS/2 Elantech Touchpad'





                                        share|improve this answer























                                          up vote
                                          7
                                          down vote










                                          up vote
                                          7
                                          down vote









                                          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:



                                          $ xinput list --name-only | grep -i Touchpad
                                          ETPS/2 Elantech 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:



                                          #!/bin/bash
                                          $ xinput disable 'ETPS/2 Elantech Touchpad'





                                          share|improve this answer












                                          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:



                                          $ xinput list --name-only | grep -i Touchpad
                                          ETPS/2 Elantech 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:



                                          #!/bin/bash
                                          $ xinput disable 'ETPS/2 Elantech Touchpad'






                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered Nov 16 '13 at 19:43









                                          Randy Skretka

                                          33138




                                          33138






















                                              up vote
                                              5
                                              down vote













                                              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.



                                              #!/bin/bash
                                              # toggle_touchpad.sh

                                              is_off=`synclient | grep -Pio "TouchpadOff.*?(d)" | grep -Eo "[01]"`

                                              if [ -z "$1" ]; then
                                              echo "Inverting touchpad state"

                                              if [ "$is_off" -eq '0' ];then
                                              synclient TouchpadOff=1
                                              notify-send "Touchpad Disabled"
                                              else
                                              synclient TouchpadOff=0
                                              notify-send "Touchpad Enabled"
                                              fi

                                              else

                                              if [ "$1" == "on" ]; then
                                              echo "Turning on touchpad"
                                              synclient TouchpadOff=0
                                              notify-send "Touchpad Enabled"
                                              elif [ "$1" == "off" ]; then
                                              echo "Turning off touchpad"
                                              synclient TouchpadOff=1
                                              notify-send "Touchpad Disabled"
                                              else
                                              echo "Unknown arg! Pass no args or on/off !"
                                              fi

                                              fi





                                              share|improve this answer



























                                                up vote
                                                5
                                                down vote













                                                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.



                                                #!/bin/bash
                                                # toggle_touchpad.sh

                                                is_off=`synclient | grep -Pio "TouchpadOff.*?(d)" | grep -Eo "[01]"`

                                                if [ -z "$1" ]; then
                                                echo "Inverting touchpad state"

                                                if [ "$is_off" -eq '0' ];then
                                                synclient TouchpadOff=1
                                                notify-send "Touchpad Disabled"
                                                else
                                                synclient TouchpadOff=0
                                                notify-send "Touchpad Enabled"
                                                fi

                                                else

                                                if [ "$1" == "on" ]; then
                                                echo "Turning on touchpad"
                                                synclient TouchpadOff=0
                                                notify-send "Touchpad Enabled"
                                                elif [ "$1" == "off" ]; then
                                                echo "Turning off touchpad"
                                                synclient TouchpadOff=1
                                                notify-send "Touchpad Disabled"
                                                else
                                                echo "Unknown arg! Pass no args or on/off !"
                                                fi

                                                fi





                                                share|improve this answer

























                                                  up vote
                                                  5
                                                  down vote










                                                  up vote
                                                  5
                                                  down vote









                                                  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.



                                                  #!/bin/bash
                                                  # toggle_touchpad.sh

                                                  is_off=`synclient | grep -Pio "TouchpadOff.*?(d)" | grep -Eo "[01]"`

                                                  if [ -z "$1" ]; then
                                                  echo "Inverting touchpad state"

                                                  if [ "$is_off" -eq '0' ];then
                                                  synclient TouchpadOff=1
                                                  notify-send "Touchpad Disabled"
                                                  else
                                                  synclient TouchpadOff=0
                                                  notify-send "Touchpad Enabled"
                                                  fi

                                                  else

                                                  if [ "$1" == "on" ]; then
                                                  echo "Turning on touchpad"
                                                  synclient TouchpadOff=0
                                                  notify-send "Touchpad Enabled"
                                                  elif [ "$1" == "off" ]; then
                                                  echo "Turning off touchpad"
                                                  synclient TouchpadOff=1
                                                  notify-send "Touchpad Disabled"
                                                  else
                                                  echo "Unknown arg! Pass no args or on/off !"
                                                  fi

                                                  fi





                                                  share|improve this answer














                                                  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.



                                                  #!/bin/bash
                                                  # toggle_touchpad.sh

                                                  is_off=`synclient | grep -Pio "TouchpadOff.*?(d)" | grep -Eo "[01]"`

                                                  if [ -z "$1" ]; then
                                                  echo "Inverting touchpad state"

                                                  if [ "$is_off" -eq '0' ];then
                                                  synclient TouchpadOff=1
                                                  notify-send "Touchpad Disabled"
                                                  else
                                                  synclient TouchpadOff=0
                                                  notify-send "Touchpad Enabled"
                                                  fi

                                                  else

                                                  if [ "$1" == "on" ]; then
                                                  echo "Turning on touchpad"
                                                  synclient TouchpadOff=0
                                                  notify-send "Touchpad Enabled"
                                                  elif [ "$1" == "off" ]; then
                                                  echo "Turning off touchpad"
                                                  synclient TouchpadOff=1
                                                  notify-send "Touchpad Disabled"
                                                  else
                                                  echo "Unknown arg! Pass no args or on/off !"
                                                  fi

                                                  fi






                                                  share|improve this answer














                                                  share|improve this answer



                                                  share|improve this answer








                                                  edited Aug 15 '16 at 21:10

























                                                  answered Aug 14 '16 at 23:18









                                                  afternoon_sister

                                                  6113




                                                  6113






















                                                      up vote
                                                      4
                                                      down vote













                                                      This worked for me in 11.10 :



                                                      ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
                                                      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
                                                      ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
                                                      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
                                                      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
                                                      ↳ Power Button id=6 [slave keyboard (3)]
                                                      ↳ Video Bus id=7 [slave keyboard (3)]
                                                      ↳ Power Button id=8 [slave keyboard (3)]
                                                      ↳ Sleep Button id=9 [slave keyboard (3)]
                                                      ↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
                                                      ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
                                                      ↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


                                                      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.



                                                      xinput set-prop 12 "Device Enabled" 0


                                                      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






                                                      share|improve this answer























                                                      • no the touchpad utiity won't disable the tp in 11.10 so back to the commandline
                                                        – touristguy87
                                                        Apr 20 '12 at 17:32










                                                      • run xinput list, get the id of the touchpad then run xinput set-prop (id) "Device Enabled" 0 works like a charm
                                                        – touristguy87
                                                        Apr 20 '12 at 17:33

















                                                      up vote
                                                      4
                                                      down vote













                                                      This worked for me in 11.10 :



                                                      ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
                                                      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
                                                      ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
                                                      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
                                                      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
                                                      ↳ Power Button id=6 [slave keyboard (3)]
                                                      ↳ Video Bus id=7 [slave keyboard (3)]
                                                      ↳ Power Button id=8 [slave keyboard (3)]
                                                      ↳ Sleep Button id=9 [slave keyboard (3)]
                                                      ↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
                                                      ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
                                                      ↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


                                                      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.



                                                      xinput set-prop 12 "Device Enabled" 0


                                                      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






                                                      share|improve this answer























                                                      • no the touchpad utiity won't disable the tp in 11.10 so back to the commandline
                                                        – touristguy87
                                                        Apr 20 '12 at 17:32










                                                      • run xinput list, get the id of the touchpad then run xinput set-prop (id) "Device Enabled" 0 works like a charm
                                                        – touristguy87
                                                        Apr 20 '12 at 17:33















                                                      up vote
                                                      4
                                                      down vote










                                                      up vote
                                                      4
                                                      down vote









                                                      This worked for me in 11.10 :



                                                      ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
                                                      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
                                                      ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
                                                      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
                                                      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
                                                      ↳ Power Button id=6 [slave keyboard (3)]
                                                      ↳ Video Bus id=7 [slave keyboard (3)]
                                                      ↳ Power Button id=8 [slave keyboard (3)]
                                                      ↳ Sleep Button id=9 [slave keyboard (3)]
                                                      ↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
                                                      ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
                                                      ↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


                                                      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.



                                                      xinput set-prop 12 "Device Enabled" 0


                                                      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






                                                      share|improve this answer














                                                      This worked for me in 11.10 :



                                                      ⎡ Virtual core pointer                      id=2    [master pointer  (3)]
                                                      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
                                                      ⎜ ↳ SynPS/2 Synaptics TouchPad id=12 [slave pointer (2)]
                                                      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
                                                      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
                                                      ↳ Power Button id=6 [slave keyboard (3)]
                                                      ↳ Video Bus id=7 [slave keyboard (3)]
                                                      ↳ Power Button id=8 [slave keyboard (3)]
                                                      ↳ Sleep Button id=9 [slave keyboard (3)]
                                                      ↳ Laptop_Integrated_Webcam_1.3M id=10 [slave keyboard (3)]
                                                      ↳ AT Translated Set 2 keyboard id=11 [slave keyboard (3)]
                                                      ↳ Dell WMI hotkeys id=13 [slave keyboard (3)]


                                                      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.



                                                      xinput set-prop 12 "Device Enabled" 0


                                                      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







                                                      share|improve this answer














                                                      share|improve this answer



                                                      share|improve this answer








                                                      edited May 1 '12 at 17:37









                                                      belacqua

                                                      15.7k1472103




                                                      15.7k1472103










                                                      answered Apr 20 '12 at 17:31









                                                      touristguy87

                                                      491




                                                      491












                                                      • no the touchpad utiity won't disable the tp in 11.10 so back to the commandline
                                                        – touristguy87
                                                        Apr 20 '12 at 17:32










                                                      • run xinput list, get the id of the touchpad then run xinput set-prop (id) "Device Enabled" 0 works like a charm
                                                        – touristguy87
                                                        Apr 20 '12 at 17:33




















                                                      • no the touchpad utiity won't disable the tp in 11.10 so back to the commandline
                                                        – touristguy87
                                                        Apr 20 '12 at 17:32










                                                      • run xinput list, get the id of the touchpad then run xinput set-prop (id) "Device Enabled" 0 works like a charm
                                                        – touristguy87
                                                        Apr 20 '12 at 17:33


















                                                      no the touchpad utiity won't disable the tp in 11.10 so back to the commandline
                                                      – touristguy87
                                                      Apr 20 '12 at 17:32




                                                      no the touchpad utiity won't disable the tp in 11.10 so back to the commandline
                                                      – touristguy87
                                                      Apr 20 '12 at 17:32












                                                      run xinput list, get the id of the touchpad then run xinput set-prop (id) "Device Enabled" 0 works like a charm
                                                      – touristguy87
                                                      Apr 20 '12 at 17:33






                                                      run xinput list, get the id of the touchpad then run xinput set-prop (id) "Device Enabled" 0 works like a charm
                                                      – touristguy87
                                                      Apr 20 '12 at 17:33












                                                      up vote
                                                      4
                                                      down vote













                                                      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



                                                      xinput set-prop <id> "Device Enabled" 0


                                                      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



                                                      xinput set-prop <id> "Device Enabled" 1


                                                      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.






                                                      share|improve this answer



























                                                        up vote
                                                        4
                                                        down vote













                                                        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



                                                        xinput set-prop <id> "Device Enabled" 0


                                                        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



                                                        xinput set-prop <id> "Device Enabled" 1


                                                        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.






                                                        share|improve this answer

























                                                          up vote
                                                          4
                                                          down vote










                                                          up vote
                                                          4
                                                          down vote









                                                          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



                                                          xinput set-prop <id> "Device Enabled" 0


                                                          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



                                                          xinput set-prop <id> "Device Enabled" 1


                                                          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.






                                                          share|improve this answer














                                                          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



                                                          xinput set-prop <id> "Device Enabled" 0


                                                          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



                                                          xinput set-prop <id> "Device Enabled" 1


                                                          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.







                                                          share|improve this answer














                                                          share|improve this answer



                                                          share|improve this answer








                                                          edited Apr 13 '17 at 12:24


























                                                          community wiki





                                                          2 revs
                                                          Takkat























                                                              up vote
                                                              3
                                                              down vote













                                                              First check if your laptop has enable/disable touchpad keyboard shortcut, by any chance! On my Lenovo Thinkpad T500 it's Fn+F8






                                                              share|improve this answer























                                                              • Great solution! And its KISS: Keep it super simple.
                                                                – Esteve
                                                                Feb 5 '14 at 9:49






                                                              • 1




                                                                It seems too specific. Not working with my n550jv. Peng Wu comments did the trick.
                                                                – louiscoquio
                                                                Mar 3 '14 at 14:23






                                                              • 1




                                                                Most laptops with touchpads will have such a key, but there's no guarantee it will work. If I use xev or xinput and attempt to use the button on my G700 it doesn't register a darn thing. Even evemu-record doesn't register anything, and that's at the kernel level. If the kernel can't see it, there's nothing much to be done about it except fix device drivers. That being said, this is a great solution, but not a reliable one for all use cases.
                                                                – wxl
                                                                Jan 18 '15 at 15:38















                                                              up vote
                                                              3
                                                              down vote













                                                              First check if your laptop has enable/disable touchpad keyboard shortcut, by any chance! On my Lenovo Thinkpad T500 it's Fn+F8






                                                              share|improve this answer























                                                              • Great solution! And its KISS: Keep it super simple.
                                                                – Esteve
                                                                Feb 5 '14 at 9:49






                                                              • 1




                                                                It seems too specific. Not working with my n550jv. Peng Wu comments did the trick.
                                                                – louiscoquio
                                                                Mar 3 '14 at 14:23






                                                              • 1




                                                                Most laptops with touchpads will have such a key, but there's no guarantee it will work. If I use xev or xinput and attempt to use the button on my G700 it doesn't register a darn thing. Even evemu-record doesn't register anything, and that's at the kernel level. If the kernel can't see it, there's nothing much to be done about it except fix device drivers. That being said, this is a great solution, but not a reliable one for all use cases.
                                                                – wxl
                                                                Jan 18 '15 at 15:38













                                                              up vote
                                                              3
                                                              down vote










                                                              up vote
                                                              3
                                                              down vote









                                                              First check if your laptop has enable/disable touchpad keyboard shortcut, by any chance! On my Lenovo Thinkpad T500 it's Fn+F8






                                                              share|improve this answer














                                                              First check if your laptop has enable/disable touchpad keyboard shortcut, by any chance! On my Lenovo Thinkpad T500 it's Fn+F8







                                                              share|improve this answer














                                                              share|improve this answer



                                                              share|improve this answer








                                                              edited Jul 8 '16 at 8:05









                                                              anand mbs

                                                              377316




                                                              377316










                                                              answered Jan 12 '12 at 17:57









                                                              Bucic

                                                              2,66952439




                                                              2,66952439












                                                              • Great solution! And its KISS: Keep it super simple.
                                                                – Esteve
                                                                Feb 5 '14 at 9:49






                                                              • 1




                                                                It seems too specific. Not working with my n550jv. Peng Wu comments did the trick.
                                                                – louiscoquio
                                                                Mar 3 '14 at 14:23






                                                              • 1




                                                                Most laptops with touchpads will have such a key, but there's no guarantee it will work. If I use xev or xinput and attempt to use the button on my G700 it doesn't register a darn thing. Even evemu-record doesn't register anything, and that's at the kernel level. If the kernel can't see it, there's nothing much to be done about it except fix device drivers. That being said, this is a great solution, but not a reliable one for all use cases.
                                                                – wxl
                                                                Jan 18 '15 at 15:38


















                                                              • Great solution! And its KISS: Keep it super simple.
                                                                – Esteve
                                                                Feb 5 '14 at 9:49






                                                              • 1




                                                                It seems too specific. Not working with my n550jv. Peng Wu comments did the trick.
                                                                – louiscoquio
                                                                Mar 3 '14 at 14:23






                                                              • 1




                                                                Most laptops with touchpads will have such a key, but there's no guarantee it will work. If I use xev or xinput and attempt to use the button on my G700 it doesn't register a darn thing. Even evemu-record doesn't register anything, and that's at the kernel level. If the kernel can't see it, there's nothing much to be done about it except fix device drivers. That being said, this is a great solution, but not a reliable one for all use cases.
                                                                – wxl
                                                                Jan 18 '15 at 15:38
















                                                              Great solution! And its KISS: Keep it super simple.
                                                              – Esteve
                                                              Feb 5 '14 at 9:49




                                                              Great solution! And its KISS: Keep it super simple.
                                                              – Esteve
                                                              Feb 5 '14 at 9:49




                                                              1




                                                              1




                                                              It seems too specific. Not working with my n550jv. Peng Wu comments did the trick.
                                                              – louiscoquio
                                                              Mar 3 '14 at 14:23




                                                              It seems too specific. Not working with my n550jv. Peng Wu comments did the trick.
                                                              – louiscoquio
                                                              Mar 3 '14 at 14:23




                                                              1




                                                              1




                                                              Most laptops with touchpads will have such a key, but there's no guarantee it will work. If I use xev or xinput and attempt to use the button on my G700 it doesn't register a darn thing. Even evemu-record doesn't register anything, and that's at the kernel level. If the kernel can't see it, there's nothing much to be done about it except fix device drivers. That being said, this is a great solution, but not a reliable one for all use cases.
                                                              – wxl
                                                              Jan 18 '15 at 15:38




                                                              Most laptops with touchpads will have such a key, but there's no guarantee it will work. If I use xev or xinput and attempt to use the button on my G700 it doesn't register a darn thing. Even evemu-record doesn't register anything, and that's at the kernel level. If the kernel can't see it, there's nothing much to be done about it except fix device drivers. That being said, this is a great solution, but not a reliable one for all use cases.
                                                              – wxl
                                                              Jan 18 '15 at 15:38










                                                              up vote
                                                              3
                                                              down vote













                                                              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.



                                                              enter image description here





                                                              Here is a solution for toggling touchpad just by pressing a shortcut.



                                                              1. Getting id of your touchpad



                                                              $ xinput list


                                                              2. Writing a script for toggling touchpad



                                                              So 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.



                                                              #!/bin/bash

                                                              device=12
                                                              state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`

                                                              if [ "$state" -eq '1' ];then
                                                              xinput --disable "$device"
                                                              else
                                                              xinput --enable "$device"
                                                              fi


                                                              Save the above script file as .toggleTouchPad.sh at where you want.



                                                              3. Keyboard shortcut for running the script



                                                              And last step is adding keyboard shortcut to run the script file.



                                                              So just write sh /PATH/TO/SCRIPT in the Command of your shortcut window .



                                                              enter image description here



                                                              4. Try the shortcut



                                                              Press the shortcut and check if touchpad is toggled.



                                                              It worked at ASUS A556UA Laptop and Ubuntu14.04 x64 installed.





                                                              Thing to be improved.




                                                              • assigning Touchpad toggle key to the above custom shortcut would not work

                                                              • it just shows touch pad icon on the right-top of the screen

                                                              • so I had to assign another key(super+F9) rather than Touchpad toggle(fn+F9) key.


                                                              enter image description here



                                                              please suggest a way to assign Touchpad toggle key to a custom shortcut for complete solution






                                                              share|improve this answer



























                                                                up vote
                                                                3
                                                                down vote













                                                                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.



                                                                enter image description here





                                                                Here is a solution for toggling touchpad just by pressing a shortcut.



                                                                1. Getting id of your touchpad



                                                                $ xinput list


                                                                2. Writing a script for toggling touchpad



                                                                So 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.



                                                                #!/bin/bash

                                                                device=12
                                                                state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`

                                                                if [ "$state" -eq '1' ];then
                                                                xinput --disable "$device"
                                                                else
                                                                xinput --enable "$device"
                                                                fi


                                                                Save the above script file as .toggleTouchPad.sh at where you want.



                                                                3. Keyboard shortcut for running the script



                                                                And last step is adding keyboard shortcut to run the script file.



                                                                So just write sh /PATH/TO/SCRIPT in the Command of your shortcut window .



                                                                enter image description here



                                                                4. Try the shortcut



                                                                Press the shortcut and check if touchpad is toggled.



                                                                It worked at ASUS A556UA Laptop and Ubuntu14.04 x64 installed.





                                                                Thing to be improved.




                                                                • assigning Touchpad toggle key to the above custom shortcut would not work

                                                                • it just shows touch pad icon on the right-top of the screen

                                                                • so I had to assign another key(super+F9) rather than Touchpad toggle(fn+F9) key.


                                                                enter image description here



                                                                please suggest a way to assign Touchpad toggle key to a custom shortcut for complete solution






                                                                share|improve this answer

























                                                                  up vote
                                                                  3
                                                                  down vote










                                                                  up vote
                                                                  3
                                                                  down vote









                                                                  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.



                                                                  enter image description here





                                                                  Here is a solution for toggling touchpad just by pressing a shortcut.



                                                                  1. Getting id of your touchpad



                                                                  $ xinput list


                                                                  2. Writing a script for toggling touchpad



                                                                  So 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.



                                                                  #!/bin/bash

                                                                  device=12
                                                                  state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`

                                                                  if [ "$state" -eq '1' ];then
                                                                  xinput --disable "$device"
                                                                  else
                                                                  xinput --enable "$device"
                                                                  fi


                                                                  Save the above script file as .toggleTouchPad.sh at where you want.



                                                                  3. Keyboard shortcut for running the script



                                                                  And last step is adding keyboard shortcut to run the script file.



                                                                  So just write sh /PATH/TO/SCRIPT in the Command of your shortcut window .



                                                                  enter image description here



                                                                  4. Try the shortcut



                                                                  Press the shortcut and check if touchpad is toggled.



                                                                  It worked at ASUS A556UA Laptop and Ubuntu14.04 x64 installed.





                                                                  Thing to be improved.




                                                                  • assigning Touchpad toggle key to the above custom shortcut would not work

                                                                  • it just shows touch pad icon on the right-top of the screen

                                                                  • so I had to assign another key(super+F9) rather than Touchpad toggle(fn+F9) key.


                                                                  enter image description here



                                                                  please suggest a way to assign Touchpad toggle key to a custom shortcut for complete solution






                                                                  share|improve this answer














                                                                  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.



                                                                  enter image description here





                                                                  Here is a solution for toggling touchpad just by pressing a shortcut.



                                                                  1. Getting id of your touchpad



                                                                  $ xinput list


                                                                  2. Writing a script for toggling touchpad



                                                                  So 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.



                                                                  #!/bin/bash

                                                                  device=12
                                                                  state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`

                                                                  if [ "$state" -eq '1' ];then
                                                                  xinput --disable "$device"
                                                                  else
                                                                  xinput --enable "$device"
                                                                  fi


                                                                  Save the above script file as .toggleTouchPad.sh at where you want.



                                                                  3. Keyboard shortcut for running the script



                                                                  And last step is adding keyboard shortcut to run the script file.



                                                                  So just write sh /PATH/TO/SCRIPT in the Command of your shortcut window .



                                                                  enter image description here



                                                                  4. Try the shortcut



                                                                  Press the shortcut and check if touchpad is toggled.



                                                                  It worked at ASUS A556UA Laptop and Ubuntu14.04 x64 installed.





                                                                  Thing to be improved.




                                                                  • assigning Touchpad toggle key to the above custom shortcut would not work

                                                                  • it just shows touch pad icon on the right-top of the screen

                                                                  • so I had to assign another key(super+F9) rather than Touchpad toggle(fn+F9) key.


                                                                  enter image description here



                                                                  please suggest a way to assign Touchpad toggle key to a custom shortcut for complete solution







                                                                  share|improve this answer














                                                                  share|improve this answer



                                                                  share|improve this answer








                                                                  edited Apr 13 '17 at 12:25









                                                                  Community

                                                                  1




                                                                  1










                                                                  answered Jul 8 '16 at 7:39









                                                                  JaeJun LEE

                                                                  1315




                                                                  1315






















                                                                      up vote
                                                                      3
                                                                      down vote













                                                                      For Ubuntu 16.04



                                                                      For disable touchpad:



                                                                      xinput --disable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//') 


                                                                      and for enable touchpad:



                                                                      xinput --enable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//')





                                                                      share|improve this answer



























                                                                        up vote
                                                                        3
                                                                        down vote













                                                                        For Ubuntu 16.04



                                                                        For disable touchpad:



                                                                        xinput --disable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//') 


                                                                        and for enable touchpad:



                                                                        xinput --enable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//')





                                                                        share|improve this answer

























                                                                          up vote
                                                                          3
                                                                          down vote










                                                                          up vote
                                                                          3
                                                                          down vote









                                                                          For Ubuntu 16.04



                                                                          For disable touchpad:



                                                                          xinput --disable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//') 


                                                                          and for enable touchpad:



                                                                          xinput --enable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//')





                                                                          share|improve this answer














                                                                          For Ubuntu 16.04



                                                                          For disable touchpad:



                                                                          xinput --disable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//') 


                                                                          and for enable touchpad:



                                                                          xinput --enable $(xinput --list | grep -i 'touchpad' | grep -o 'id=[0-9]*' | sed 's/id=//')






                                                                          share|improve this answer














                                                                          share|improve this answer



                                                                          share|improve this answer








                                                                          edited Apr 28 '17 at 12:56

























                                                                          answered Apr 11 '17 at 1:37









                                                                          Andrey Izman

                                                                          23325




                                                                          23325






















                                                                              up vote
                                                                              2
                                                                              down vote













                                                                              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:



                                                                              $ pip install xinput


                                                                              Disable touchpad:



                                                                              $ disable-touchpad


                                                                              Enable touchpad:



                                                                              $ enable-touchpad





                                                                              share|improve this answer























                                                                              • brilliant, probably the easiest solution
                                                                                – Exeleration-G
                                                                                Feb 17 at 21:24















                                                                              up vote
                                                                              2
                                                                              down vote













                                                                              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:



                                                                              $ pip install xinput


                                                                              Disable touchpad:



                                                                              $ disable-touchpad


                                                                              Enable touchpad:



                                                                              $ enable-touchpad





                                                                              share|improve this answer























                                                                              • brilliant, probably the easiest solution
                                                                                – Exeleration-G
                                                                                Feb 17 at 21:24













                                                                              up vote
                                                                              2
                                                                              down vote










                                                                              up vote
                                                                              2
                                                                              down vote









                                                                              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:



                                                                              $ pip install xinput


                                                                              Disable touchpad:



                                                                              $ disable-touchpad


                                                                              Enable touchpad:



                                                                              $ enable-touchpad





                                                                              share|improve this answer














                                                                              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:



                                                                              $ pip install xinput


                                                                              Disable touchpad:



                                                                              $ disable-touchpad


                                                                              Enable touchpad:



                                                                              $ enable-touchpad






                                                                              share|improve this answer














                                                                              share|improve this answer



                                                                              share|improve this answer








                                                                              edited May 6 '14 at 10:40









                                                                              Artur Barseghyan

                                                                              1335




                                                                              1335










                                                                              answered Apr 27 '12 at 8:25









                                                                              Delusional Insanity

                                                                              651




                                                                              651












                                                                              • brilliant, probably the easiest solution
                                                                                – Exeleration-G
                                                                                Feb 17 at 21:24


















                                                                              • brilliant, probably the easiest solution
                                                                                – Exeleration-G
                                                                                Feb 17 at 21:24
















                                                                              brilliant, probably the easiest solution
                                                                              – Exeleration-G
                                                                              Feb 17 at 21:24




                                                                              brilliant, probably the easiest solution
                                                                              – Exeleration-G
                                                                              Feb 17 at 21:24










                                                                              up vote
                                                                              2
                                                                              down vote













                                                                              Just add a couple of bash functions to your .bashrc to give you a togggle...



                                                                              #toggle-touchpad on|off
                                                                              function touchpadon { /usr/bin/xinput --enable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad enabled";}
                                                                              function touchpadoff { /usr/bin/xinput --disable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad disabled";}





                                                                              share|improve this answer

























                                                                                up vote
                                                                                2
                                                                                down vote













                                                                                Just add a couple of bash functions to your .bashrc to give you a togggle...



                                                                                #toggle-touchpad on|off
                                                                                function touchpadon { /usr/bin/xinput --enable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad enabled";}
                                                                                function touchpadoff { /usr/bin/xinput --disable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad disabled";}





                                                                                share|improve this answer























                                                                                  up vote
                                                                                  2
                                                                                  down vote










                                                                                  up vote
                                                                                  2
                                                                                  down vote









                                                                                  Just add a couple of bash functions to your .bashrc to give you a togggle...



                                                                                  #toggle-touchpad on|off
                                                                                  function touchpadon { /usr/bin/xinput --enable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad enabled";}
                                                                                  function touchpadoff { /usr/bin/xinput --disable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad disabled";}





                                                                                  share|improve this answer












                                                                                  Just add a couple of bash functions to your .bashrc to give you a togggle...



                                                                                  #toggle-touchpad on|off
                                                                                  function touchpadon { /usr/bin/xinput --enable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad enabled";}
                                                                                  function touchpadoff { /usr/bin/xinput --disable $(xinput --list | grep -Eo 'TouchPads*id=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}') ; echo "touchpad disabled";}






                                                                                  share|improve this answer












                                                                                  share|improve this answer



                                                                                  share|improve this answer










                                                                                  answered Sep 17 '14 at 15:07









                                                                                  Amos Folarin

                                                                                  70959




                                                                                  70959






















                                                                                      up vote
                                                                                      2
                                                                                      down vote













                                                                                      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.






                                                                                      share|improve this answer



























                                                                                        up vote
                                                                                        2
                                                                                        down vote













                                                                                        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.






                                                                                        share|improve this answer

























                                                                                          up vote
                                                                                          2
                                                                                          down vote










                                                                                          up vote
                                                                                          2
                                                                                          down vote









                                                                                          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.






                                                                                          share|improve this answer














                                                                                          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.







                                                                                          share|improve this answer














                                                                                          share|improve this answer



                                                                                          share|improve this answer








                                                                                          edited Oct 1 '15 at 6:12









                                                                                          kos

                                                                                          25.2k869119




                                                                                          25.2k869119










                                                                                          answered May 25 '12 at 17:41









                                                                                          Jeem

                                                                                          291




                                                                                          291






















                                                                                              up vote
                                                                                              2
                                                                                              down vote













                                                                                              It is actually very simple to disable touchpad in Ubuntu. Just remove the package xserver-xorg-input-synaptics that is required for using touchpads in Ubuntu!



                                                                                              sudo apt-get remove xserver-xorg-input-synaptics



                                                                                              It is the only way to disable touchpad permanently that worked for me. The other ways were only temporary:



                                                                                              xinput list
                                                                                              xinput set-prop IDOFTOUCHPAD "Device Enabled" 0
                                                                                              synclient TouchpadOff=1


                                                                                              I am using LXDE and I was not able to automatically disable the touchpad by adding these lines to ~/.config/lxsession/LXDE/autostart or /etc/xdg/lxsession/LXDE/autostart with a @-prefix. It was just ignored.



                                                                                              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".






                                                                                              share|improve this answer

























                                                                                                up vote
                                                                                                2
                                                                                                down vote













                                                                                                It is actually very simple to disable touchpad in Ubuntu. Just remove the package xserver-xorg-input-synaptics that is required for using touchpads in Ubuntu!



                                                                                                sudo apt-get remove xserver-xorg-input-synaptics



                                                                                                It is the only way to disable touchpad permanently that worked for me. The other ways were only temporary:



                                                                                                xinput list
                                                                                                xinput set-prop IDOFTOUCHPAD "Device Enabled" 0
                                                                                                synclient TouchpadOff=1


                                                                                                I am using LXDE and I was not able to automatically disable the touchpad by adding these lines to ~/.config/lxsession/LXDE/autostart or /etc/xdg/lxsession/LXDE/autostart with a @-prefix. It was just ignored.



                                                                                                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".






                                                                                                share|improve this answer























                                                                                                  up vote
                                                                                                  2
                                                                                                  down vote










                                                                                                  up vote
                                                                                                  2
                                                                                                  down vote









                                                                                                  It is actually very simple to disable touchpad in Ubuntu. Just remove the package xserver-xorg-input-synaptics that is required for using touchpads in Ubuntu!



                                                                                                  sudo apt-get remove xserver-xorg-input-synaptics



                                                                                                  It is the only way to disable touchpad permanently that worked for me. The other ways were only temporary:



                                                                                                  xinput list
                                                                                                  xinput set-prop IDOFTOUCHPAD "Device Enabled" 0
                                                                                                  synclient TouchpadOff=1


                                                                                                  I am using LXDE and I was not able to automatically disable the touchpad by adding these lines to ~/.config/lxsession/LXDE/autostart or /etc/xdg/lxsession/LXDE/autostart with a @-prefix. It was just ignored.



                                                                                                  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".






                                                                                                  share|improve this answer












                                                                                                  It is actually very simple to disable touchpad in Ubuntu. Just remove the package xserver-xorg-input-synaptics that is required for using touchpads in Ubuntu!



                                                                                                  sudo apt-get remove xserver-xorg-input-synaptics



                                                                                                  It is the only way to disable touchpad permanently that worked for me. The other ways were only temporary:



                                                                                                  xinput list
                                                                                                  xinput set-prop IDOFTOUCHPAD "Device Enabled" 0
                                                                                                  synclient TouchpadOff=1


                                                                                                  I am using LXDE and I was not able to automatically disable the touchpad by adding these lines to ~/.config/lxsession/LXDE/autostart or /etc/xdg/lxsession/LXDE/autostart with a @-prefix. It was just ignored.



                                                                                                  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".







                                                                                                  share|improve this answer












                                                                                                  share|improve this answer



                                                                                                  share|improve this answer










                                                                                                  answered Feb 11 '16 at 22:46









                                                                                                  mkdrive2

                                                                                                  1868




                                                                                                  1868






















                                                                                                      up vote
                                                                                                      2
                                                                                                      down vote













                                                                                                      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.






                                                                                                      share|improve this answer























                                                                                                      • I do not have that button bro. It is a HP probook 4520s
                                                                                                        – Peng Wu
                                                                                                        Oct 16 '11 at 8:51










                                                                                                      • oh ok. I just found out that the solution I posted is not permanent either, I have to do it every time I restart my machine.
                                                                                                        – Fayaz
                                                                                                        Oct 18 '11 at 12:19















                                                                                                      up vote
                                                                                                      2
                                                                                                      down vote













                                                                                                      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.






                                                                                                      share|improve this answer























                                                                                                      • I do not have that button bro. It is a HP probook 4520s
                                                                                                        – Peng Wu
                                                                                                        Oct 16 '11 at 8:51










                                                                                                      • oh ok. I just found out that the solution I posted is not permanent either, I have to do it every time I restart my machine.
                                                                                                        – Fayaz
                                                                                                        Oct 18 '11 at 12:19













                                                                                                      up vote
                                                                                                      2
                                                                                                      down vote










                                                                                                      up vote
                                                                                                      2
                                                                                                      down vote









                                                                                                      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.






                                                                                                      share|improve this answer














                                                                                                      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.







                                                                                                      share|improve this answer














                                                                                                      share|improve this answer



                                                                                                      share|improve this answer








                                                                                                      edited Jul 8 '16 at 8:24









                                                                                                      anand mbs

                                                                                                      377316




                                                                                                      377316










                                                                                                      answered Oct 14 '11 at 9:53









                                                                                                      Fayaz

                                                                                                      391




                                                                                                      391












                                                                                                      • I do not have that button bro. It is a HP probook 4520s
                                                                                                        – Peng Wu
                                                                                                        Oct 16 '11 at 8:51










                                                                                                      • oh ok. I just found out that the solution I posted is not permanent either, I have to do it every time I restart my machine.
                                                                                                        – Fayaz
                                                                                                        Oct 18 '11 at 12:19


















                                                                                                      • I do not have that button bro. It is a HP probook 4520s
                                                                                                        – Peng Wu
                                                                                                        Oct 16 '11 at 8:51










                                                                                                      • oh ok. I just found out that the solution I posted is not permanent either, I have to do it every time I restart my machine.
                                                                                                        – Fayaz
                                                                                                        Oct 18 '11 at 12:19
















                                                                                                      I do not have that button bro. It is a HP probook 4520s
                                                                                                      – Peng Wu
                                                                                                      Oct 16 '11 at 8:51




                                                                                                      I do not have that button bro. It is a HP probook 4520s
                                                                                                      – Peng Wu
                                                                                                      Oct 16 '11 at 8:51












                                                                                                      oh ok. I just found out that the solution I posted is not permanent either, I have to do it every time I restart my machine.
                                                                                                      – Fayaz
                                                                                                      Oct 18 '11 at 12:19




                                                                                                      oh ok. I just found out that the solution I posted is not permanent either, I have to do it every time I restart my machine.
                                                                                                      – Fayaz
                                                                                                      Oct 18 '11 at 12:19










                                                                                                      up vote
                                                                                                      1
                                                                                                      down vote













                                                                                                      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:



                                                                                                      sudo apt-get install gpointing-device-settings


                                                                                                      enter image description here






                                                                                                      share|improve this answer

























                                                                                                        up vote
                                                                                                        1
                                                                                                        down vote













                                                                                                        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:



                                                                                                        sudo apt-get install gpointing-device-settings


                                                                                                        enter image description here






                                                                                                        share|improve this answer























                                                                                                          up vote
                                                                                                          1
                                                                                                          down vote










                                                                                                          up vote
                                                                                                          1
                                                                                                          down vote









                                                                                                          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:



                                                                                                          sudo apt-get install gpointing-device-settings


                                                                                                          enter image description here






                                                                                                          share|improve this answer












                                                                                                          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:



                                                                                                          sudo apt-get install gpointing-device-settings


                                                                                                          enter image description here







                                                                                                          share|improve this answer












                                                                                                          share|improve this answer



                                                                                                          share|improve this answer










                                                                                                          answered Oct 31 '15 at 5:23









                                                                                                          nobar

                                                                                                          1,50621426




                                                                                                          1,50621426






















                                                                                                              up vote
                                                                                                              1
                                                                                                              down vote













                                                                                                              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:



                                                                                                              $ xinput list
                                                                                                              ⎡ Virtual core pointer id=2
                                                                                                              ⎜ ↳ Virtual core XTEST pointer id=4
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 eraser id=9
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 cursor id=10
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 id=11
                                                                                                              ⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=14
                                                                                                              ⎜ ↳ Macintosh mouse button emulation id=15
                                                                                                              ⎜ ↳ DualPoint Stick id=13
                                                                                                              ⎣ Virtual core keyboard id=3
                                                                                                              ↳ Virtual core XTEST keyboard id=5
                                                                                                              ↳ Video Bus id=6
                                                                                                              ↳ Power Button id=7
                                                                                                              ↳ Sleep Button id=8
                                                                                                              ↳ AT Translated Set 2 keyboard id=12

                                                                                                              The device I want to disable has id 13. Use xinput to list its properties:

                                                                                                              $ xinput -list-props 13
                                                                                                              Device 'DualPoint Stick':
                                                                                                              Device Enabled (115): 0
                                                                                                              [...several lines removed...]
                                                                                                              $ xinput -set-prop 13 115 0


                                                                                                              This has disabled the Dualpoint stick. But none of the other answers worked for me. I did



                                                                                                              Install dconf-tools:



                                                                                                              sudo apt-get install  dconf-tools
                                                                                                              dconf-editor


                                                                                                              Then go to org -> gnome -> settings-daemon -> peripherals -> touchpad and uncheck touchpad-enabled field






                                                                                                              share|improve this answer























                                                                                                              • The small Nob! between G H and B keys is actually mounted on a small square peg, pull it out with a pair of tweezers! This will prevent you from hitting it when typing - and if needed later just put it back (so do not throw it away) Trying to disable it through software might impede the functionality of your mouse or touch-pad!
                                                                                                                – Ken Mollerup
                                                                                                                Apr 21 '16 at 8:40















                                                                                                              up vote
                                                                                                              1
                                                                                                              down vote













                                                                                                              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:



                                                                                                              $ xinput list
                                                                                                              ⎡ Virtual core pointer id=2
                                                                                                              ⎜ ↳ Virtual core XTEST pointer id=4
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 eraser id=9
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 cursor id=10
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 id=11
                                                                                                              ⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=14
                                                                                                              ⎜ ↳ Macintosh mouse button emulation id=15
                                                                                                              ⎜ ↳ DualPoint Stick id=13
                                                                                                              ⎣ Virtual core keyboard id=3
                                                                                                              ↳ Virtual core XTEST keyboard id=5
                                                                                                              ↳ Video Bus id=6
                                                                                                              ↳ Power Button id=7
                                                                                                              ↳ Sleep Button id=8
                                                                                                              ↳ AT Translated Set 2 keyboard id=12

                                                                                                              The device I want to disable has id 13. Use xinput to list its properties:

                                                                                                              $ xinput -list-props 13
                                                                                                              Device 'DualPoint Stick':
                                                                                                              Device Enabled (115): 0
                                                                                                              [...several lines removed...]
                                                                                                              $ xinput -set-prop 13 115 0


                                                                                                              This has disabled the Dualpoint stick. But none of the other answers worked for me. I did



                                                                                                              Install dconf-tools:



                                                                                                              sudo apt-get install  dconf-tools
                                                                                                              dconf-editor


                                                                                                              Then go to org -> gnome -> settings-daemon -> peripherals -> touchpad and uncheck touchpad-enabled field






                                                                                                              share|improve this answer























                                                                                                              • The small Nob! between G H and B keys is actually mounted on a small square peg, pull it out with a pair of tweezers! This will prevent you from hitting it when typing - and if needed later just put it back (so do not throw it away) Trying to disable it through software might impede the functionality of your mouse or touch-pad!
                                                                                                                – Ken Mollerup
                                                                                                                Apr 21 '16 at 8:40













                                                                                                              up vote
                                                                                                              1
                                                                                                              down vote










                                                                                                              up vote
                                                                                                              1
                                                                                                              down vote









                                                                                                              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:



                                                                                                              $ xinput list
                                                                                                              ⎡ Virtual core pointer id=2
                                                                                                              ⎜ ↳ Virtual core XTEST pointer id=4
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 eraser id=9
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 cursor id=10
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 id=11
                                                                                                              ⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=14
                                                                                                              ⎜ ↳ Macintosh mouse button emulation id=15
                                                                                                              ⎜ ↳ DualPoint Stick id=13
                                                                                                              ⎣ Virtual core keyboard id=3
                                                                                                              ↳ Virtual core XTEST keyboard id=5
                                                                                                              ↳ Video Bus id=6
                                                                                                              ↳ Power Button id=7
                                                                                                              ↳ Sleep Button id=8
                                                                                                              ↳ AT Translated Set 2 keyboard id=12

                                                                                                              The device I want to disable has id 13. Use xinput to list its properties:

                                                                                                              $ xinput -list-props 13
                                                                                                              Device 'DualPoint Stick':
                                                                                                              Device Enabled (115): 0
                                                                                                              [...several lines removed...]
                                                                                                              $ xinput -set-prop 13 115 0


                                                                                                              This has disabled the Dualpoint stick. But none of the other answers worked for me. I did



                                                                                                              Install dconf-tools:



                                                                                                              sudo apt-get install  dconf-tools
                                                                                                              dconf-editor


                                                                                                              Then go to org -> gnome -> settings-daemon -> peripherals -> touchpad and uncheck touchpad-enabled field






                                                                                                              share|improve this answer














                                                                                                              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:



                                                                                                              $ xinput list
                                                                                                              ⎡ Virtual core pointer id=2
                                                                                                              ⎜ ↳ Virtual core XTEST pointer id=4
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 eraser id=9
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 cursor id=10
                                                                                                              ⎜ ↳ Wacom Graphire2 4x5 id=11
                                                                                                              ⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=14
                                                                                                              ⎜ ↳ Macintosh mouse button emulation id=15
                                                                                                              ⎜ ↳ DualPoint Stick id=13
                                                                                                              ⎣ Virtual core keyboard id=3
                                                                                                              ↳ Virtual core XTEST keyboard id=5
                                                                                                              ↳ Video Bus id=6
                                                                                                              ↳ Power Button id=7
                                                                                                              ↳ Sleep Button id=8
                                                                                                              ↳ AT Translated Set 2 keyboard id=12

                                                                                                              The device I want to disable has id 13. Use xinput to list its properties:

                                                                                                              $ xinput -list-props 13
                                                                                                              Device 'DualPoint Stick':
                                                                                                              Device Enabled (115): 0
                                                                                                              [...several lines removed...]
                                                                                                              $ xinput -set-prop 13 115 0


                                                                                                              This has disabled the Dualpoint stick. But none of the other answers worked for me. I did



                                                                                                              Install dconf-tools:



                                                                                                              sudo apt-get install  dconf-tools
                                                                                                              dconf-editor


                                                                                                              Then go to org -> gnome -> settings-daemon -> peripherals -> touchpad and uncheck touchpad-enabled field







                                                                                                              share|improve this answer














                                                                                                              share|improve this answer



                                                                                                              share|improve this answer








                                                                                                              edited Feb 26 '17 at 8:17









                                                                                                              Zanna

                                                                                                              49.7k13129237




                                                                                                              49.7k13129237










                                                                                                              answered Apr 21 '16 at 7:35









                                                                                                              Pramod Waikar

                                                                                                              111




                                                                                                              111












                                                                                                              • The small Nob! between G H and B keys is actually mounted on a small square peg, pull it out with a pair of tweezers! This will prevent you from hitting it when typing - and if needed later just put it back (so do not throw it away) Trying to disable it through software might impede the functionality of your mouse or touch-pad!
                                                                                                                – Ken Mollerup
                                                                                                                Apr 21 '16 at 8:40


















                                                                                                              • The small Nob! between G H and B keys is actually mounted on a small square peg, pull it out with a pair of tweezers! This will prevent you from hitting it when typing - and if needed later just put it back (so do not throw it away) Trying to disable it through software might impede the functionality of your mouse or touch-pad!
                                                                                                                – Ken Mollerup
                                                                                                                Apr 21 '16 at 8:40
















                                                                                                              The small Nob! between G H and B keys is actually mounted on a small square peg, pull it out with a pair of tweezers! This will prevent you from hitting it when typing - and if needed later just put it back (so do not throw it away) Trying to disable it through software might impede the functionality of your mouse or touch-pad!
                                                                                                              – Ken Mollerup
                                                                                                              Apr 21 '16 at 8:40




                                                                                                              The small Nob! between G H and B keys is actually mounted on a small square peg, pull it out with a pair of tweezers! This will prevent you from hitting it when typing - and if needed later just put it back (so do not throw it away) Trying to disable it through software might impede the functionality of your mouse or touch-pad!
                                                                                                              – Ken Mollerup
                                                                                                              Apr 21 '16 at 8:40










                                                                                                              up vote
                                                                                                              1
                                                                                                              down vote













                                                                                                              I found a nice solution of creating a key binding that will invoke the command:



                                                                                                              xdotool key 199


                                                                                                              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:



                                                                                                              xmodmap -pke


                                                                                                              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/






                                                                                                              share|improve this answer

























                                                                                                                up vote
                                                                                                                1
                                                                                                                down vote













                                                                                                                I found a nice solution of creating a key binding that will invoke the command:



                                                                                                                xdotool key 199


                                                                                                                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:



                                                                                                                xmodmap -pke


                                                                                                                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/






                                                                                                                share|improve this answer























                                                                                                                  up vote
                                                                                                                  1
                                                                                                                  down vote










                                                                                                                  up vote
                                                                                                                  1
                                                                                                                  down vote









                                                                                                                  I found a nice solution of creating a key binding that will invoke the command:



                                                                                                                  xdotool key 199


                                                                                                                  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:



                                                                                                                  xmodmap -pke


                                                                                                                  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/






                                                                                                                  share|improve this answer












                                                                                                                  I found a nice solution of creating a key binding that will invoke the command:



                                                                                                                  xdotool key 199


                                                                                                                  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:



                                                                                                                  xmodmap -pke


                                                                                                                  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/







                                                                                                                  share|improve this answer












                                                                                                                  share|improve this answer



                                                                                                                  share|improve this answer










                                                                                                                  answered Oct 1 '17 at 22:34









                                                                                                                  Krzysztof Tomaszewski

                                                                                                                  111




                                                                                                                  111






















                                                                                                                      up vote
                                                                                                                      0
                                                                                                                      down vote













                                                                                                                      I have a Medion Akoya notebook model P7812 using Ubuntu 11.10 (64 bit) and the Fn & F6 key combination disables the touchpad.






                                                                                                                      share|improve this answer



























                                                                                                                        up vote
                                                                                                                        0
                                                                                                                        down vote













                                                                                                                        I have a Medion Akoya notebook model P7812 using Ubuntu 11.10 (64 bit) and the Fn & F6 key combination disables the touchpad.






                                                                                                                        share|improve this answer

























                                                                                                                          up vote
                                                                                                                          0
                                                                                                                          down vote










                                                                                                                          up vote
                                                                                                                          0
                                                                                                                          down vote









                                                                                                                          I have a Medion Akoya notebook model P7812 using Ubuntu 11.10 (64 bit) and the Fn & F6 key combination disables the touchpad.






                                                                                                                          share|improve this answer














                                                                                                                          I have a Medion Akoya notebook model P7812 using Ubuntu 11.10 (64 bit) and the Fn & F6 key combination disables the touchpad.







                                                                                                                          share|improve this answer














                                                                                                                          share|improve this answer



                                                                                                                          share|improve this answer








                                                                                                                          edited May 20 '15 at 11:58









                                                                                                                          Jason

                                                                                                                          241111




                                                                                                                          241111










                                                                                                                          answered Feb 23 '12 at 22:40









                                                                                                                          Allen Biggins

                                                                                                                          91




                                                                                                                          91






















                                                                                                                              up vote
                                                                                                                              0
                                                                                                                              down vote













                                                                                                                              Alternative solution which works for all touchpads, no id needed.



                                                                                                                              open a terminal and write "gedit toggle_touchpad.sh"



                                                                                                                              #!/bin/bash
                                                                                                                              condition="$(gsettings get org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled)"

                                                                                                                              if [ "$condition" == "false" ]; then
                                                                                                                              gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled true
                                                                                                                              elif [ "$condition" == "true" ]; then
                                                                                                                              gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled false
                                                                                                                              fi


                                                                                                                              Save the file and exit. Now you have a file with the name "toggle_touchpad.sh"



                                                                                                                              Run the command chmod +x toggle_touchpad.sh to make the file executable.



                                                                                                                              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 system-settings->keyboard->shortcuts->custom-shortcuts.



                                                                                                                              Create a new shortcut and put as name whatever you want. Put as command /home<username>;/myscripts/toggle_touchpad.sh where "username" is your username



                                                                                                                              Assign whatever keyboard shortcut you want.



                                                                                                                              Ready :)



                                                                                                                              P.S. Personally I put the file in the /opt/myscripts/ folder but in order to put it there you should run the following commands after creating the file:



                                                                                                                              sudo mkdir /opt/myscripts/

                                                                                                                              sudo mv toggle_touchpad.sh /opt/myscripts/

                                                                                                                              sudo chown <username>:<username> /opt/myscripts/toggle_touchpad.sh

                                                                                                                              chmod +x /opt/myscripts/toggle_touchpad.sh


                                                                                                                              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






                                                                                                                              share|improve this answer

























                                                                                                                                up vote
                                                                                                                                0
                                                                                                                                down vote













                                                                                                                                Alternative solution which works for all touchpads, no id needed.



                                                                                                                                open a terminal and write "gedit toggle_touchpad.sh"



                                                                                                                                #!/bin/bash
                                                                                                                                condition="$(gsettings get org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled)"

                                                                                                                                if [ "$condition" == "false" ]; then
                                                                                                                                gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled true
                                                                                                                                elif [ "$condition" == "true" ]; then
                                                                                                                                gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled false
                                                                                                                                fi


                                                                                                                                Save the file and exit. Now you have a file with the name "toggle_touchpad.sh"



                                                                                                                                Run the command chmod +x toggle_touchpad.sh to make the file executable.



                                                                                                                                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 system-settings->keyboard->shortcuts->custom-shortcuts.



                                                                                                                                Create a new shortcut and put as name whatever you want. Put as command /home<username>;/myscripts/toggle_touchpad.sh where "username" is your username



                                                                                                                                Assign whatever keyboard shortcut you want.



                                                                                                                                Ready :)



                                                                                                                                P.S. Personally I put the file in the /opt/myscripts/ folder but in order to put it there you should run the following commands after creating the file:



                                                                                                                                sudo mkdir /opt/myscripts/

                                                                                                                                sudo mv toggle_touchpad.sh /opt/myscripts/

                                                                                                                                sudo chown <username>:<username> /opt/myscripts/toggle_touchpad.sh

                                                                                                                                chmod +x /opt/myscripts/toggle_touchpad.sh


                                                                                                                                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






                                                                                                                                share|improve this answer























                                                                                                                                  up vote
                                                                                                                                  0
                                                                                                                                  down vote










                                                                                                                                  up vote
                                                                                                                                  0
                                                                                                                                  down vote









                                                                                                                                  Alternative solution which works for all touchpads, no id needed.



                                                                                                                                  open a terminal and write "gedit toggle_touchpad.sh"



                                                                                                                                  #!/bin/bash
                                                                                                                                  condition="$(gsettings get org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled)"

                                                                                                                                  if [ "$condition" == "false" ]; then
                                                                                                                                  gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled true
                                                                                                                                  elif [ "$condition" == "true" ]; then
                                                                                                                                  gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled false
                                                                                                                                  fi


                                                                                                                                  Save the file and exit. Now you have a file with the name "toggle_touchpad.sh"



                                                                                                                                  Run the command chmod +x toggle_touchpad.sh to make the file executable.



                                                                                                                                  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 system-settings->keyboard->shortcuts->custom-shortcuts.



                                                                                                                                  Create a new shortcut and put as name whatever you want. Put as command /home<username>;/myscripts/toggle_touchpad.sh where "username" is your username



                                                                                                                                  Assign whatever keyboard shortcut you want.



                                                                                                                                  Ready :)



                                                                                                                                  P.S. Personally I put the file in the /opt/myscripts/ folder but in order to put it there you should run the following commands after creating the file:



                                                                                                                                  sudo mkdir /opt/myscripts/

                                                                                                                                  sudo mv toggle_touchpad.sh /opt/myscripts/

                                                                                                                                  sudo chown <username>:<username> /opt/myscripts/toggle_touchpad.sh

                                                                                                                                  chmod +x /opt/myscripts/toggle_touchpad.sh


                                                                                                                                  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






                                                                                                                                  share|improve this answer












                                                                                                                                  Alternative solution which works for all touchpads, no id needed.



                                                                                                                                  open a terminal and write "gedit toggle_touchpad.sh"



                                                                                                                                  #!/bin/bash
                                                                                                                                  condition="$(gsettings get org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled)"

                                                                                                                                  if [ "$condition" == "false" ]; then
                                                                                                                                  gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled true
                                                                                                                                  elif [ "$condition" == "true" ]; then
                                                                                                                                  gsettings set org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled false
                                                                                                                                  fi


                                                                                                                                  Save the file and exit. Now you have a file with the name "toggle_touchpad.sh"



                                                                                                                                  Run the command chmod +x toggle_touchpad.sh to make the file executable.



                                                                                                                                  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 system-settings->keyboard->shortcuts->custom-shortcuts.



                                                                                                                                  Create a new shortcut and put as name whatever you want. Put as command /home<username>;/myscripts/toggle_touchpad.sh where "username" is your username



                                                                                                                                  Assign whatever keyboard shortcut you want.



                                                                                                                                  Ready :)



                                                                                                                                  P.S. Personally I put the file in the /opt/myscripts/ folder but in order to put it there you should run the following commands after creating the file:



                                                                                                                                  sudo mkdir /opt/myscripts/

                                                                                                                                  sudo mv toggle_touchpad.sh /opt/myscripts/

                                                                                                                                  sudo chown <username>:<username> /opt/myscripts/toggle_touchpad.sh

                                                                                                                                  chmod +x /opt/myscripts/toggle_touchpad.sh


                                                                                                                                  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







                                                                                                                                  share|improve this answer












                                                                                                                                  share|improve this answer



                                                                                                                                  share|improve this answer










                                                                                                                                  answered Jan 29 '16 at 2:06









                                                                                                                                  orestis

                                                                                                                                  3632417




                                                                                                                                  3632417






















                                                                                                                                      up vote
                                                                                                                                      0
                                                                                                                                      down vote













                                                                                                                                      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.






                                                                                                                                      share|improve this answer

























                                                                                                                                        up vote
                                                                                                                                        0
                                                                                                                                        down vote













                                                                                                                                        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.






                                                                                                                                        share|improve this answer























                                                                                                                                          up vote
                                                                                                                                          0
                                                                                                                                          down vote










                                                                                                                                          up vote
                                                                                                                                          0
                                                                                                                                          down vote









                                                                                                                                          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.






                                                                                                                                          share|improve this answer












                                                                                                                                          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.







                                                                                                                                          share|improve this answer












                                                                                                                                          share|improve this answer



                                                                                                                                          share|improve this answer










                                                                                                                                          answered Mar 18 '16 at 23:58









                                                                                                                                          Daniel

                                                                                                                                          1




                                                                                                                                          1






















                                                                                                                                              up vote
                                                                                                                                              0
                                                                                                                                              down vote













                                                                                                                                              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 xinput < id > with the command below. For Ubuntu 14.04, it is the "SynPS/2 Synaptics TouchPad"



                                                                                                                                              xinput list
                                                                                                                                              SynPS/2 Synaptics TouchPad id=###





                                                                                                                                              share|improve this answer



























                                                                                                                                                up vote
                                                                                                                                                0
                                                                                                                                                down vote













                                                                                                                                                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 xinput < id > with the command below. For Ubuntu 14.04, it is the "SynPS/2 Synaptics TouchPad"



                                                                                                                                                xinput list
                                                                                                                                                SynPS/2 Synaptics TouchPad id=###





                                                                                                                                                share|improve this answer

























                                                                                                                                                  up vote
                                                                                                                                                  0
                                                                                                                                                  down vote










                                                                                                                                                  up vote
                                                                                                                                                  0
                                                                                                                                                  down vote









                                                                                                                                                  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 xinput < id > with the command below. For Ubuntu 14.04, it is the "SynPS/2 Synaptics TouchPad"



                                                                                                                                                  xinput list
                                                                                                                                                  SynPS/2 Synaptics TouchPad id=###





                                                                                                                                                  share|improve this answer














                                                                                                                                                  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 xinput < id > with the command below. For Ubuntu 14.04, it is the "SynPS/2 Synaptics TouchPad"



                                                                                                                                                  xinput list
                                                                                                                                                  SynPS/2 Synaptics TouchPad id=###






                                                                                                                                                  share|improve this answer














                                                                                                                                                  share|improve this answer



                                                                                                                                                  share|improve this answer








                                                                                                                                                  edited Apr 13 '17 at 12:24









                                                                                                                                                  Community

                                                                                                                                                  1




                                                                                                                                                  1










                                                                                                                                                  answered Apr 6 '16 at 7:16









                                                                                                                                                  remyx

                                                                                                                                                  112




                                                                                                                                                  112






















                                                                                                                                                      up vote
                                                                                                                                                      0
                                                                                                                                                      down vote













                                                                                                                                                      I tried all the previous answers here without success.

                                                                                                                                                      What worked for me on Ubuntu 16.10 was



                                                                                                                                                      killall syndaemon 
                                                                                                                                                      syndaemon -i 1 -KRd


                                                                                                                                                      You may want to change the value 1 to 0.5.






                                                                                                                                                      share|improve this answer



























                                                                                                                                                        up vote
                                                                                                                                                        0
                                                                                                                                                        down vote













                                                                                                                                                        I tried all the previous answers here without success.

                                                                                                                                                        What worked for me on Ubuntu 16.10 was



                                                                                                                                                        killall syndaemon 
                                                                                                                                                        syndaemon -i 1 -KRd


                                                                                                                                                        You may want to change the value 1 to 0.5.






                                                                                                                                                        share|improve this answer

























                                                                                                                                                          up vote
                                                                                                                                                          0
                                                                                                                                                          down vote










                                                                                                                                                          up vote
                                                                                                                                                          0
                                                                                                                                                          down vote









                                                                                                                                                          I tried all the previous answers here without success.

                                                                                                                                                          What worked for me on Ubuntu 16.10 was



                                                                                                                                                          killall syndaemon 
                                                                                                                                                          syndaemon -i 1 -KRd


                                                                                                                                                          You may want to change the value 1 to 0.5.






                                                                                                                                                          share|improve this answer














                                                                                                                                                          I tried all the previous answers here without success.

                                                                                                                                                          What worked for me on Ubuntu 16.10 was



                                                                                                                                                          killall syndaemon 
                                                                                                                                                          syndaemon -i 1 -KRd


                                                                                                                                                          You may want to change the value 1 to 0.5.







                                                                                                                                                          share|improve this answer














                                                                                                                                                          share|improve this answer



                                                                                                                                                          share|improve this answer








                                                                                                                                                          edited Feb 26 '17 at 8:09









                                                                                                                                                          Zanna

                                                                                                                                                          49.7k13129237




                                                                                                                                                          49.7k13129237










                                                                                                                                                          answered Feb 25 '17 at 19:29









                                                                                                                                                          Rajeev Jayaswal

                                                                                                                                                          18116




                                                                                                                                                          18116






















                                                                                                                                                              up vote
                                                                                                                                                              0
                                                                                                                                                              down vote













                                                                                                                                                              So, by combining Krzysztof Tomaszewski and JaeJun LEE's answers I came to this solution.



                                                                                                                                                              Create the following toggleTouchPad.sh script and save it wherever you want:



                                                                                                                                                              #!/bin/bash
                                                                                                                                                              device=14
                                                                                                                                                              state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`
                                                                                                                                                              if [ "$state" -eq '1' ];then
                                                                                                                                                              xinput --disable "$device" && sleep 1 && xdotool key 201
                                                                                                                                                              else
                                                                                                                                                              xinput --enable "$device" && sleep 1 && xdotool key 200
                                                                                                                                                              fi


                                                                                                                                                              where 14 is your TouchDevice Id (refer to JaeJun LEE's answer)




                                                                                                                                                              1. Go to Ubuntu Settings -> Devices -> Keyboard


                                                                                                                                                              2. At the end of the list, click on + to add a new custom shortcut


                                                                                                                                                              3. Name it Toggle Touchpad, with Command /path/to/.toggleTouchPad.sh and whatever key combination you'd want (I've just chosen Super + F7).



                                                                                                                                                              Now, whenever you hit your chosen key combination, it not only toggle the Touchpad but it also shows a notification icon thanks to xdotool






                                                                                                                                                              share|improve this answer



























                                                                                                                                                                up vote
                                                                                                                                                                0
                                                                                                                                                                down vote













                                                                                                                                                                So, by combining Krzysztof Tomaszewski and JaeJun LEE's answers I came to this solution.



                                                                                                                                                                Create the following toggleTouchPad.sh script and save it wherever you want:



                                                                                                                                                                #!/bin/bash
                                                                                                                                                                device=14
                                                                                                                                                                state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`
                                                                                                                                                                if [ "$state" -eq '1' ];then
                                                                                                                                                                xinput --disable "$device" && sleep 1 && xdotool key 201
                                                                                                                                                                else
                                                                                                                                                                xinput --enable "$device" && sleep 1 && xdotool key 200
                                                                                                                                                                fi


                                                                                                                                                                where 14 is your TouchDevice Id (refer to JaeJun LEE's answer)




                                                                                                                                                                1. Go to Ubuntu Settings -> Devices -> Keyboard


                                                                                                                                                                2. At the end of the list, click on + to add a new custom shortcut


                                                                                                                                                                3. Name it Toggle Touchpad, with Command /path/to/.toggleTouchPad.sh and whatever key combination you'd want (I've just chosen Super + F7).



                                                                                                                                                                Now, whenever you hit your chosen key combination, it not only toggle the Touchpad but it also shows a notification icon thanks to xdotool






                                                                                                                                                                share|improve this answer

























                                                                                                                                                                  up vote
                                                                                                                                                                  0
                                                                                                                                                                  down vote










                                                                                                                                                                  up vote
                                                                                                                                                                  0
                                                                                                                                                                  down vote









                                                                                                                                                                  So, by combining Krzysztof Tomaszewski and JaeJun LEE's answers I came to this solution.



                                                                                                                                                                  Create the following toggleTouchPad.sh script and save it wherever you want:



                                                                                                                                                                  #!/bin/bash
                                                                                                                                                                  device=14
                                                                                                                                                                  state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`
                                                                                                                                                                  if [ "$state" -eq '1' ];then
                                                                                                                                                                  xinput --disable "$device" && sleep 1 && xdotool key 201
                                                                                                                                                                  else
                                                                                                                                                                  xinput --enable "$device" && sleep 1 && xdotool key 200
                                                                                                                                                                  fi


                                                                                                                                                                  where 14 is your TouchDevice Id (refer to JaeJun LEE's answer)




                                                                                                                                                                  1. Go to Ubuntu Settings -> Devices -> Keyboard


                                                                                                                                                                  2. At the end of the list, click on + to add a new custom shortcut


                                                                                                                                                                  3. Name it Toggle Touchpad, with Command /path/to/.toggleTouchPad.sh and whatever key combination you'd want (I've just chosen Super + F7).



                                                                                                                                                                  Now, whenever you hit your chosen key combination, it not only toggle the Touchpad but it also shows a notification icon thanks to xdotool






                                                                                                                                                                  share|improve this answer














                                                                                                                                                                  So, by combining Krzysztof Tomaszewski and JaeJun LEE's answers I came to this solution.



                                                                                                                                                                  Create the following toggleTouchPad.sh script and save it wherever you want:



                                                                                                                                                                  #!/bin/bash
                                                                                                                                                                  device=14
                                                                                                                                                                  state=`xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$"`
                                                                                                                                                                  if [ "$state" -eq '1' ];then
                                                                                                                                                                  xinput --disable "$device" && sleep 1 && xdotool key 201
                                                                                                                                                                  else
                                                                                                                                                                  xinput --enable "$device" && sleep 1 && xdotool key 200
                                                                                                                                                                  fi


                                                                                                                                                                  where 14 is your TouchDevice Id (refer to JaeJun LEE's answer)




                                                                                                                                                                  1. Go to Ubuntu Settings -> Devices -> Keyboard


                                                                                                                                                                  2. At the end of the list, click on + to add a new custom shortcut


                                                                                                                                                                  3. Name it Toggle Touchpad, with Command /path/to/.toggleTouchPad.sh and whatever key combination you'd want (I've just chosen Super + F7).



                                                                                                                                                                  Now, whenever you hit your chosen key combination, it not only toggle the Touchpad but it also shows a notification icon thanks to xdotool







                                                                                                                                                                  share|improve this answer














                                                                                                                                                                  share|improve this answer



                                                                                                                                                                  share|improve this answer








                                                                                                                                                                  edited Apr 4 at 20:06

























                                                                                                                                                                  answered Apr 4 at 19:51









                                                                                                                                                                  gcpdev

                                                                                                                                                                  11




                                                                                                                                                                  11






















                                                                                                                                                                      up vote
                                                                                                                                                                      0
                                                                                                                                                                      down vote













                                                                                                                                                                      To disable my dell latitude's middle stick, I put this on .profile of Ubuntu so every-time I start/reboot my laptop, it will disable that input.



                                                                                                                                                                      I used the --id-only to avoid mismatch in grep



                                                                                                                                                                      declare -i ID
                                                                                                                                                                      ID=`xinput list --id-only 'AlpsPS/2 ALPS DualPoint Stick' | grep -Eo '[0-9]{1,2$
                                                                                                                                                                      declare -i STATE
                                                                                                                                                                      STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
                                                                                                                                                                      if [ $STATE -eq 1 ]
                                                                                                                                                                      then
                                                                                                                                                                      echo "id" $ID
                                                                                                                                                                      xinput disable $ID
                                                                                                                                                                      echo "Touchpad disabled."
                                                                                                                                                                      else
                                                                                                                                                                      echo "id" $ID
                                                                                                                                                                      xinput enable $ID
                                                                                                                                                                      echo "Touchpad enabled."
                                                                                                                                                                      fi





                                                                                                                                                                      share|improve this answer



























                                                                                                                                                                        up vote
                                                                                                                                                                        0
                                                                                                                                                                        down vote













                                                                                                                                                                        To disable my dell latitude's middle stick, I put this on .profile of Ubuntu so every-time I start/reboot my laptop, it will disable that input.



                                                                                                                                                                        I used the --id-only to avoid mismatch in grep



                                                                                                                                                                        declare -i ID
                                                                                                                                                                        ID=`xinput list --id-only 'AlpsPS/2 ALPS DualPoint Stick' | grep -Eo '[0-9]{1,2$
                                                                                                                                                                        declare -i STATE
                                                                                                                                                                        STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
                                                                                                                                                                        if [ $STATE -eq 1 ]
                                                                                                                                                                        then
                                                                                                                                                                        echo "id" $ID
                                                                                                                                                                        xinput disable $ID
                                                                                                                                                                        echo "Touchpad disabled."
                                                                                                                                                                        else
                                                                                                                                                                        echo "id" $ID
                                                                                                                                                                        xinput enable $ID
                                                                                                                                                                        echo "Touchpad enabled."
                                                                                                                                                                        fi





                                                                                                                                                                        share|improve this answer

























                                                                                                                                                                          up vote
                                                                                                                                                                          0
                                                                                                                                                                          down vote










                                                                                                                                                                          up vote
                                                                                                                                                                          0
                                                                                                                                                                          down vote









                                                                                                                                                                          To disable my dell latitude's middle stick, I put this on .profile of Ubuntu so every-time I start/reboot my laptop, it will disable that input.



                                                                                                                                                                          I used the --id-only to avoid mismatch in grep



                                                                                                                                                                          declare -i ID
                                                                                                                                                                          ID=`xinput list --id-only 'AlpsPS/2 ALPS DualPoint Stick' | grep -Eo '[0-9]{1,2$
                                                                                                                                                                          declare -i STATE
                                                                                                                                                                          STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
                                                                                                                                                                          if [ $STATE -eq 1 ]
                                                                                                                                                                          then
                                                                                                                                                                          echo "id" $ID
                                                                                                                                                                          xinput disable $ID
                                                                                                                                                                          echo "Touchpad disabled."
                                                                                                                                                                          else
                                                                                                                                                                          echo "id" $ID
                                                                                                                                                                          xinput enable $ID
                                                                                                                                                                          echo "Touchpad enabled."
                                                                                                                                                                          fi





                                                                                                                                                                          share|improve this answer














                                                                                                                                                                          To disable my dell latitude's middle stick, I put this on .profile of Ubuntu so every-time I start/reboot my laptop, it will disable that input.



                                                                                                                                                                          I used the --id-only to avoid mismatch in grep



                                                                                                                                                                          declare -i ID
                                                                                                                                                                          ID=`xinput list --id-only 'AlpsPS/2 ALPS DualPoint Stick' | grep -Eo '[0-9]{1,2$
                                                                                                                                                                          declare -i STATE
                                                                                                                                                                          STATE=`xinput list-props $ID|grep 'Device Enabled'|awk '{print $4}'`
                                                                                                                                                                          if [ $STATE -eq 1 ]
                                                                                                                                                                          then
                                                                                                                                                                          echo "id" $ID
                                                                                                                                                                          xinput disable $ID
                                                                                                                                                                          echo "Touchpad disabled."
                                                                                                                                                                          else
                                                                                                                                                                          echo "id" $ID
                                                                                                                                                                          xinput enable $ID
                                                                                                                                                                          echo "Touchpad enabled."
                                                                                                                                                                          fi






                                                                                                                                                                          share|improve this answer














                                                                                                                                                                          share|improve this answer



                                                                                                                                                                          share|improve this answer








                                                                                                                                                                          edited Aug 13 at 21:08









                                                                                                                                                                          Stephen Rauch

                                                                                                                                                                          1,1546716




                                                                                                                                                                          1,1546716










                                                                                                                                                                          answered Aug 13 at 15:32









                                                                                                                                                                          Ace

                                                                                                                                                                          1




                                                                                                                                                                          1






















                                                                                                                                                                              up vote
                                                                                                                                                                              0
                                                                                                                                                                              down vote













                                                                                                                                                                              In my case, with a Slimbook and Kubuntu, I just used the combination: Fn+Z.

                                                                                                                                                                              This disables or enables the touchpad.






                                                                                                                                                                              share|improve this answer



























                                                                                                                                                                                up vote
                                                                                                                                                                                0
                                                                                                                                                                                down vote













                                                                                                                                                                                In my case, with a Slimbook and Kubuntu, I just used the combination: Fn+Z.

                                                                                                                                                                                This disables or enables the touchpad.






                                                                                                                                                                                share|improve this answer

























                                                                                                                                                                                  up vote
                                                                                                                                                                                  0
                                                                                                                                                                                  down vote










                                                                                                                                                                                  up vote
                                                                                                                                                                                  0
                                                                                                                                                                                  down vote









                                                                                                                                                                                  In my case, with a Slimbook and Kubuntu, I just used the combination: Fn+Z.

                                                                                                                                                                                  This disables or enables the touchpad.






                                                                                                                                                                                  share|improve this answer














                                                                                                                                                                                  In my case, with a Slimbook and Kubuntu, I just used the combination: Fn+Z.

                                                                                                                                                                                  This disables or enables the touchpad.







                                                                                                                                                                                  share|improve this answer














                                                                                                                                                                                  share|improve this answer



                                                                                                                                                                                  share|improve this answer








                                                                                                                                                                                  edited Aug 31 at 16:59









                                                                                                                                                                                  abu_bua

                                                                                                                                                                                  3,17081023




                                                                                                                                                                                  3,17081023










                                                                                                                                                                                  answered Aug 31 at 9:34









                                                                                                                                                                                  Alfonso Gar

                                                                                                                                                                                  1




                                                                                                                                                                                  1






























                                                                                                                                                                                      draft saved

                                                                                                                                                                                      draft discarded




















































                                                                                                                                                                                      Thanks for contributing an answer to Ask Ubuntu!


                                                                                                                                                                                      • Please be sure to answer the question. Provide details and share your research!

                                                                                                                                                                                      But avoid



                                                                                                                                                                                      • Asking for help, clarification, or responding to other answers.

                                                                                                                                                                                      • Making statements based on opinion; back them up with references or personal experience.


                                                                                                                                                                                      To learn more, see our tips on writing great answers.





                                                                                                                                                                                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                                                                                                                                                                      Please pay close attention to the following guidance:


                                                                                                                                                                                      • Please be sure to answer the question. Provide details and share your research!

                                                                                                                                                                                      But avoid



                                                                                                                                                                                      • Asking for help, clarification, or responding to other answers.

                                                                                                                                                                                      • Making statements based on opinion; back them up with references or personal experience.


                                                                                                                                                                                      To learn more, see our tips on writing great answers.




                                                                                                                                                                                      draft saved


                                                                                                                                                                                      draft discarded














                                                                                                                                                                                      StackExchange.ready(
                                                                                                                                                                                      function () {
                                                                                                                                                                                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f65951%2fhow-to-disable-the-touchpad%23new-answer', 'question_page');
                                                                                                                                                                                      }
                                                                                                                                                                                      );

                                                                                                                                                                                      Post as a guest















                                                                                                                                                                                      Required, but never shown





















































                                                                                                                                                                                      Required, but never shown














                                                                                                                                                                                      Required, but never shown












                                                                                                                                                                                      Required, but never shown







                                                                                                                                                                                      Required, but never shown

































                                                                                                                                                                                      Required, but never shown














                                                                                                                                                                                      Required, but never shown












                                                                                                                                                                                      Required, but never shown







                                                                                                                                                                                      Required, but never shown







                                                                                                                                                                                      Popular posts from this blog

                                                                                                                                                                                      How did Captain America manage to do this?

                                                                                                                                                                                      迪纳利

                                                                                                                                                                                      南乌拉尔铁路局