centos6.3禁用触摸板[测试]

打字的时候总是碰到触摸板,结果打字搞得一塌糊涂。
个人尝试了网上提供的关闭触摸板的方法,结果很多在我的机子都不能用。
ubuntu的touchpad-indicator很方便,但是centos安装python缺包,悲剧。

个人测试下面方法可用:

1. 安装 xorg-x11-apps 包: yum install xorg-x11-apps。
2. 终端输入: xinput list 。
[root@centos6-3 Desktop]# xinput list
⎡ Virtual core pointer                    id=2 [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              id=4 [slave  pointer  (2)]
⎜   ↳ Macintosh mouse button emulation        id=15 [slave  pointer  (2)]
⎜   ↳ Logitech USB Optical Mouse              id=16 [slave  pointer  (2)]
⎜   ↳ ImPS/2 Logitech Wheel Mouse             id=14 [slave  pointer  (2)]
⎣ Virtual core keyboard                   id=3 [master keyboard (2)]
    ↳ Virtual core XTEST keyboard             id=5 [slave  keyboard (3)]
    ↳ Asus Laptop extra buttons               id=6 [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard            id=7 [slave  keyboard (3)]
    ↳ USB Video Device                        id=8 [slave  keyboard (3)]
    ↳ Sleep Button                            id=9 [slave  keyboard (3)]
    ↳ Lid Switch                              id=10 [slave  keyboard (3)]
    ↳ Power Button                            id=11 [slave  keyboard (3)]
    ↳ Video Bus                               id=12 [slave  keyboard (3)]
    ↳ Power Button                            id=13 [slave  keyboard (3)]
触摸板的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/

猜你喜欢

转载自wuyu466.iteye.com/blog/1696598