9

I recently updated to 17.10 from 17.04 and now I have no way to disable the touchpad on my laptop. When I do Fn + F9 (in my case), I see the touchpad logo in the screen as it where disabled, but is not.

ASUS GL752

1

3 Answers 3

6

I had the same problem on my Asus X555UB, but I use the command synclient TouchpadOff=1 in @Legolas script. This works for me. source

2
  • 2
    I tried this code and it works for the touchpad only, but doesn't disable the buttons. Anyway it's much better and less annoying. Thank you!
    – dr46ul
    Oct 31, 2017 at 11:13
  • works on my Thinkpad T520
    – Michael
    Oct 31, 2017 at 19:27
6

I am not sure why they key is not working for your laptop. But I can suggest a general alternative.

Put the following code in a file, such as touchpad_toggle.sh:

#!/bin/bash
STATUS=`gsettings get org.gnome.desktop.peripherals.touchpad send-events`
if [ "$STATUS" = "'enabled'" ]
then
    gsettings set org.gnome.desktop.peripherals.touchpad send-events 'disabled'
else
    gsettings set org.gnome.desktop.peripherals.touchpad send-events 'enabled'
fi

Grant the file executable permission:

chmod +x touchpad_toggle.sh

Add a keyboard shortcut to the file from SettingsDevicesKeyboard.

3
  • has no effect on my thinkpad T520
    – Michael
    Oct 31, 2017 at 19:27
  • #how to disable touchpad on 18.04 , works on ubuntu 18.04 Mar 2, 2018 at 18:47
  • works in Ubuntu 18.04
    – orestis
    May 13, 2018 at 20:05
4

Based on answers from Fernando and Legolas, here's a script that works for me:

#!/bin/bash
synclient -l | grep TouchpadOff | grep 1
if [ $? == 0 ]; then
  synclient TouchpadOff=0
else 
  synclient TouchpadOff=1
fi
1
  • I'm using a macbook pro and this seems to disable the mouse pointer moving, but doesn't block clicking or highlighting with the touchpad. I guess there are another couple of settings needed for that.
    – JonnyBoy
    Nov 6, 2017 at 17:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .