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
  • 相关阅读:
    .net正在终止线程异常
    js判断客户浏览器类型,版本
    C#中ToString格式大全
    WPF TextBox 搜索框 自定义
    C#:获取设备电量相关信息
    C#中的委托与事件并存的理由
    WPF中的Pack URI
    SQLServer中的数据库备份和还原
    使用Aspose.Cells读取Excel
    SQLServer存储过程事务用法
  • 原文地址:https://www.cnblogs.com/huangzhen/p/3861688.html
Copyright © 2011-2022 走看看