Close the notebook touchpad under Ubuntu

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.