Toggling DELL 9350's touchpad on Ubuntu 15.10

Running Ubuntu on this laptop is still a bit tricky.

This isn’t one of the worst problems, but it can be a little unnerving since the driverless touchpad can be super sensitive and bring chaos while you’re typing.

In my case, trying to disable it from Ubuntu’s settings panel was useless, so I had to resort to this script:


declare -i ID
ID=`xinput list | grep -Eo 'DLL0704:01\s06CB:76AE\sUNKNOWN\s*id\=[0-9]{1,2}' | grep -Eo '\=[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 ]
	xinput disable $ID
	echo "Touchpad disabled."
	xinput enable $ID
	echo "Touchpad enabled."

The device name could be different for you, so run xinput in a terminal. In my case the name was: DLL0704:01 06CB:76AE UNKNOWN.

If it’s the same, you can keep the script as it is, otherwise you’ll have to edit the line that fetches the ID changing the regular expression.

Save the file somwhere (for example ~/bin/, and make it executable (chmod +x ~/bin/

Now go to the settings panel -> keyboard -> shourtcuts -> custom shortcuts and add a new shortcut pointing to the script (I used CTRL+F7).

Related Posts

Resizing and moving windows in Doom Emacs

Setting up TabNine on Doom Emacs

The correct docker-compose setup for Wordpress and Nginx

Adding a newline after a comment block in Doom Emacs

PureScript Date and Time guide

Adding live css and js reload to Yesod

A quick overview of Purescript package managers as of October 2018

Optional elements and properties in Halogen

Simple AJAX in Purescript

Automatically adding (or removing) a prefix to a record labels in Purescript