zoukankan      html  css  js  c++  java
  • CentOS禁用笔记本touchpad

    自己在家笔记本装来个双系统玩玩,发现触摸板很烦人,禁用!

    1、安装一个小神器

    yum install xorg-x11-apps

    2、查看你到输入硬件对应的id,方便禁用命令

    [root@huangzhen yum.repos.d]# xinput list
    ⎡ Virtual core pointer                        id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]
    ⎜   ↳ 2.4G Gaming Dongle                          id=9    [slave  pointer  (2)]
    ⎜   ↳ Macintosh mouse button emulation            id=15    [slave  pointer  (2)]
    ⎜   ↳ SynPS/2 Synaptics TouchPad                  id=16    [slave  pointer  (2)]
    ⎣ Virtual core keyboard                       id=3    [master keyboard (2)]
        ↳ Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]
        ↳ AT Translated Set 2 keyboard                id=6    [slave  keyboard (3)]
        ↳ 2.4G Gaming Dongle                          id=7    [slave  keyboard (3)]
        ↳ Namuga 1.3M Webcam                          id=8    [slave  keyboard (3)]
        ↳ Sleep Button                                id=10    [slave  keyboard (3)]
        ↳ Power Button                                id=11    [slave  keyboard (3)]
        ↳ Lid Switch                                  id=12    [slave  keyboard (3)]
        ↳ Video Bus                                   id=13    [slave  keyboard (3)]
        ↳ Power Button                                id=14    [slave  keyboard (3)]

    从结果里可以看到,Touchad到id=16

    3、禁用!

    xinput set-int-prop 16 "Device Enabled" 8 0

    4、如果需要,可以再用此命令启用

    xinput set-int-prop 16 "Device Enabled" 8 1
  • 相关阅读:
    VS2015&windows开发环境配置
    Chapter 12. Classes
    Chapter 11. Generic Algorithms
    Chapter 10. Associative Containers
    Chapter 9. Sequential Containers
    Chapter 8. The IO Library
    Chapter 7. Functions
    Chapter 5. Expressions
    案例分析 极化跳变
    机器如果能够实现自己建模,应该是下一次人工智能的飞跃点
  • 原文地址:https://www.cnblogs.com/huangzhen/p/3861688.html
Copyright © 2011-2022 走看看