Http://www.cnblogs.com/icejoywoo/archive/2011/04/14/2016318.html
Original address: http://forum.ubuntu.org.cn/viewtopic.php?p=391456
写在前面: 这种方法不是很好,我是 10.04 ,大部分情况下都是无法关闭触摸板,偶尔可以关闭,我的笔记本比较旧了,关闭触摸板的按键失灵了 有一种更简单的方法,我这里测试可以使用,原文地址:http: //blog.3gcomet.com/article.asp?id=343 关闭笔记本触摸板 : sudo rmmod psmouse 要恢复也简单: sudo modprobe psmouse 下面是另外一种方法,使用synclient,大家可以试试,我这里是不太行 |
Many notebook touchpad designs are unreasonable, the touchpad is easily touched, affecting the normal editing. Can you turn on the touchpad when you need it and turn it off when you don't? The answer is yes.
First modify the xorg.conf file, find synaptic this paragraph, add two things, first of all is shared memory control, one is the state of the initialization touchpad.
Code:section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "Synaptics"
Option "Sendcoreevents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "Auto-dev"
Option "Horizscrolldelta" "0"
# Open Shared Memory control
Option "Shmconfig" "on"
# touch pad initialized to Off
Option "Touchpadoff" "1"
Endsection
Save xorg.conf Restart X
Code:SUDO/ETC/INIT.D/GDM restart
Now the touchpad is disabled
There is a utility synclient to control the touchpad via shared memory
Code:# Close the Touchpad
$synclient touchpadoff=1
# Open Touch pad
$synclient touchpadoff=0
The command is too long. Build two alias in $HOME/.BASHRC
Code:Alias synoff= ' Synclient touchpadoff=1 '
Alias synon= ' Synclient touchpadoff=0 '
Re-update Alias
. ~/.bashrc
Now we can turn the touchpad on and off with simple Synon and synoff. (I am here often no effect, occasionally can be used, specific reasons unknown)
Close the notebook touchpad under Ubuntu