LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How to disable Touchpad permanently - Ubuntu 14.04 (https://www.linuxquestions.org/questions/linux-hardware-18/how-to-disable-touchpad-permanently-ubuntu-14-04-a-4175516919/)

J_angel2000 08-30-2014 07:19 PM

How to disable Touchpad permanently - Ubuntu 14.04
 
I have an Ubuntu 14.04 and a new Sony Vaio with an annoying huge touchpad. How can I disable it forever?

On system configuration it works but just until next reboot. Then it reenables itself again.

On the Bios I don't find any option to disable it.

Thanks a lot!

ferrari 08-30-2014 07:48 PM

Are you using the Gnome DE? If so, you can disable using 'deconf-editor' as described here:

http://xmodulo.com/2013/01/how-to-di...u-desktop.html

In particular...
Quote:

In order to disable touchpad permanently on your laptop, invoke dconf-editor.
$ dconf-editor

Then go to "org"->"gnome"->"settings-daemon"->"peripherals"->"touchpad" on dconf-editor, and uncheck "touchpad-enabled" field

J_angel2000 08-30-2014 08:10 PM

Hey, I have done it that way too but after rebooting it gets enabled by itself again

jefro 08-30-2014 08:37 PM

Find out how it connects and either remove support for it or blacklist the driver. Might be possible to disable in bios too.

ferrari 08-30-2014 08:42 PM

Then maybe an executable script in ~/.config/autostart/ directory that executes
Code:

synclient TouchPadOff=1
which will take effect after logging in.

J_angel2000 08-30-2014 09:05 PM

I'm very newbie, ferrari. How can I do that?

ferrari 08-31-2014 01:44 AM

Since you're an Ubuntu user, the easiest way to do this is to use 'Startup Applications'

http://askubuntu.com/questions/48321...cally-on-login

You'll want to use the command given previously.

Another example here:

http://askubuntu.com/questions/29000...k-ubuntu-13-04

Hope that helps.

onebuck 08-31-2014 11:43 AM

Member Response
 
Hi,

I use this script;
Code:

~$ cat touchpad.sh

----cut-----
#!/bin/bash

# touchpad.sh Written by Atanas S / Siteground Support Team

# First we need to get the device ID from the xinput
# if it does not work for you, you may need to set the cut -f option to another number
# I would suggest that you test the command in your terminal first to see the result
# It should output an integer usually between 8-15, at least on my lap top :D

getdev=`xinput list |grep pointer |grep PS |cut -f 2`
devid=${getdev/id=/}

#Second we need to get the device status, if it is enabled or not

# if it does not work for you, you may need to set the cut -f option to another number
# I would suggest that you test the command in your terminal first to see the result
# It should output 0 or 1

getstatus=`xinput list-props $devid |grep 'Device Enabled' |cut -f 3`

#once we get the device status depending on the status we set it the other way arround
        if [ "$getstatus" == "1" ]; then
        newstatus="0"
        else
        newstatus="1"
        fi
`xinput set-prop $devid "Device Enabled" $newstatus`
----end cut------

I just run the script locally via Kconsole vt, no issue. You can use the same script to toggle the touchpad back on.
Hope this helps.
Have fun & enjoy!
:hattip:

brianL 09-01-2014 10:55 AM

Not a permanent solution, but I've put aliases in ~/.bashrc:
Code:

alias tpoff='synclient TouchpadOff=1'
alias tpon='synclient TouchpadOff=0'

It's more often off than on, but not always.

solarisguy 09-04-2014 05:23 AM

Easy permanent solution
1. Find a hammer...


All times are GMT -5. The time now is 06:07 PM.