为了解决在笔记本上敲经常受到触摸板的影响,希望能随时把触摸板禁用和启用,在网上查了一下资料,找到了办法,首先确认
系统里有没有synclient命令,如果没有就安装,然后修改/etc/X11/xorg.conf文件在Synaptics Touchpad的Section里增加Option "SHMConfig" "true",
然后编写两个shell,
enabletouch.sh
#!/bin/bash
synclient touchpadoff=0
disabletouch.sh
#!/bin/bash
synclient touchpadoff=1
这样在你想禁用和启用触摸板的时候分别执行以上的shell
2007年8月5日
订阅:
博文评论 (Atom)
没有评论:
发表评论