Nice tip for people who doesn't have other methods (e.g.: DE settings, hardware button). Unfortunately works only with Synaptics touchpads.
Hi, thank you for comment.
However this tweak is only loading synaptics in xorg.conf, almost touchpad will load synaptics even if using other touchpads.
@iberianpig I guess you are correct. I only remember a Dell laptop with an Alps touchpad which didn't seem to work with this. Ended up using another way. However, it seems people have been using synclient for that too: http://askubuntu.com/questions/141479/dell-inspiron-n5110-keyboard-touchpad
I use this in Ubuntu:
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 0
xinput set-int-prop "SynPS/2 Synaptics TouchPad" "Device Enabled" 8 1
This two command in a shell (touchpadOn.sh and touchpadOff.sh) just to be more easy to execute.