[Solved] Enable/Disable Touchpad in – Asus 510z (Ubuntu 16.04)

Machine Specification
Distributor ID: Ubuntu
Description: Ubuntu 14.04.4 LTS
Release: 14.04
Codename: trusty

Board Information

sudo dmidecode | grep "Base Board"

Base Board Information
Product Name: X550ZE

My Touchpad information:

cat devices | grep Touchpad

N: Name=”ETPS/2 Elantech Touchpad”

Now copy this script to /usr/local/bin/touchpad.sh

Create file “/usr/local/bin/touchpad.sh” then copy and paste the above file contents into it.
change the file permission so it’s editable and executable by you.
sudo chmod u+x touchpad.sh

you might need to change the ownership of the file too.
sudo chown developer:developer /usr/local/bin/touchpad.sh

Here developer:developer is the user:group in linux.

Dash Menu

Now, we should bind a keyboard shortcut so that we can execute this script easily
through shortcuts. Open dashmenu and type keyboard. Open Keyboard settings.
In Keyboard settings window, navigate to shortcuts then to “custom shortcuts”.
Then click on the “+” sign shown and enter the following details:

Name: Touchpad
Command: /usr/local/bin/touchpad.sh

Keyboard custom shortcut
Click Apply.

Now this will be listed in the shortcut. But we are not done yet.
Now to assign the shortcut, click on the shortcut, it will change to “new accelerator”.
Hit any shortcut that you would like to assign to enable/disable touchpad. In my
case, I choose super+D, here super is “win” key in windows. This will save the
shortcut. If you already have assigned the shortcut to something else it will
ask you to reassign the shortcut.

Now try to enable/disable the touchpad with shortcut. You should see disable/enable
notification at the right corner. Hope you found this useful, let me know if you
found any difficulty in following this article.


Samundra Shrestha

I work as fullstack developer. Having spent more than 5 years in the web development technologies, I aspire to create an environment where we can share, learn and grow together.

Leave a Reply

Your email address will not be published. Required fields are marked *