centos6.3禁用触摸板[测试]
打字的时候总是碰到触摸板,结果打字搞得一塌糊涂。个人尝试了网上提供的关闭触摸板的方法,结果很多在我的机子都不能用。
ubuntu的touchpad-indicator很方便,但是centos安装python缺包,悲剧。
个人测试下面方法可用:
1. 安装 xorg-x11-apps 包: yum install xorg-x11-apps。
2. 终端输入: xinput list 。
# xinput list
⎡ Virtual core pointer id=2
⎜ ↳ Virtual core XTEST pointer id=4
⎜ ↳ Macintosh mouse button emulation id=15
⎜ ↳ Logitech USB Optical Mouse id=16
⎜ ↳ ImPS/2 Logitech Wheel Mouse id=14
⎣ Virtual core keyboard id=3
↳ Virtual core XTEST keyboard id=5
↳ Asus Laptop extra buttons id=6
↳ AT Translated Set 2 keyboard id=7
↳ USB Video Device id=8
↳ Sleep Button id=9
↳ Lid Switch id=10
↳ Power Button id=11
↳ Video Bus id=12
↳ Power Button id=13
触摸板的ID为14。
3.禁用:xinput set-int-prop 14 "Device Enabled" 8 0
启用:xinput set-int-prop 14 "Device Enabled" 8 1
后记:有一篇总结centos6.3禁用触摸板的文章,其中有的方法并不适合我的机子,可以参考吧
http://qiexiaoming302.blog.163.com/blog/static/449714762012515111452113/
页:
[1]