I can turn off the touch pad with synclient TouchpadOFF=0 but this must be done each and every time I boot the OS.
Orly?
You have two options. First one is to disable at boot, second option is to assign a keyboard shortcut to TOGGLE it on and off (and you could possibly just run one of these lines of code at startup to disable).
Option 1. Disable trackpad at boot
If this is something you want done every time you boot up, then open terminal and run this code:
- Code: Select all
sudo gedit /usr/bin/trackmouseoff
Inside this file, put THIS:
#!/bin/bash
synclient TouchpadOFF=0
Now save it.
Now run THIS:
- Code: Select all
sudo chmod +x /usr/bin/trackmouseoff
Then navigate to mintmenu/system/Preferences/Startup Applications and add an entry. Name it whatever you fancy, and put the following code as the command for this entry:
/usr/bin/trackmouseoff
That ought to disable your trackpad at boot every time.
Option 2: Set keyboard shortcut to toggle trackpad on and offThis is fairly straightforward.
If you are using Gnome3:
You will need gconftool (or possibly gconftool-2) and gconf-editor installed, and in your keyboard shortcut use the following command:
- Code: Select all
gconftool --get /desktop/gnome/peripherals/touchpad/touchpad_enabled --toggle
If that doesn't work for you, try gconftool-2 instead. If I remember correctly, though, gconftool-2 is for Gnome2, and Mint 12 DOES NOT USE Gnome2 ANYWHERE.
If you are using Gnome classic / (MATE):
you will need mateconftool-2 and mateconf-editor installed, and in your keyboard shortcut use the following command:
- Code: Select all
mateconftool-2 /desktop/mate/peripherals/touchpad/touchpad_enabled --toggle
IN THEORY, you might also be able to set one of those two lines of code (depending on which Desktop Manager you're using) as the command to run in Mintmenu/System/Preferences/Startup Applications, and that would disable the trackpad. Beware, though, as then you would only be able to re-enable it by issuing the same command over again, and using this command to disable is not suggested, in case you ever wanted to use it in the future you would have a hard time remembering/tracking down that it was disabled through a startup program command.
Hope this helps.
Cheers!
THE REAL SYANiDE