zoukankan      html  css  js  c++  java
  • Linux配置输入设备(如停用笔记本键盘)

    config devices on Linux use xinput

    install

    #Manjaro
    sudo pacman -S xorg-xinput
    

    use

    1. list all the input devices

      xinput list
      

      output:

      [jarvis@jarvis-pc ~]$ xinput list
      ⎡ Virtual core pointer                       id=2    [master pointer  (3)]
      ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
      ⎜ ↳ ETPS/2 Elantech Touchpad id=15 [slave pointer (2)]
      ⎣ Virtual core keyboard id=3 [master keyboard (2)]
      ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
      ↳ Power Button id=6 [slave keyboard (3)]
      ↳ Video Bus id=7 [slave keyboard (3)]
      ↳ Power Button id=8 [slave keyboard (3)]
      ↳ Heng Yu Technology Poker id=9 [slave keyboard (3)]
      ↳ Heng Yu Technology Poker Consumer Control id=10 [slave keyboard (3)]
      ↳ Heng Yu Technology Poker System Control id=11 [slave keyboard (3)]
      ↳ Lenovo EasyCamera: Lenovo EasyC id=12 [slave keyboard (3)]
      ↳ Ideapad extra buttons id=13 [slave keyboard (3)]
      ↳ AT Translated Set 2 keyboard id=14 [slave keyboard (3)]
    2. find the devices [id]

    3. config

      #list properties that can be set for the given devices
      xinput list-props [id]
      #disable
      xinput set-prop [id] 'Device Enabled' 0
      #enable
      xinput set-prop [id] 'Device Enabled' 1

    reference

    1. xinput
  • 相关阅读:
    DropBoxUtil
    mtk camera faq
    android onInterceptTouchEvent和onTouchEvent的执行关系
    高通 camera open流程
    android 消息机制
    hierarchyviewer工具,android 布局分析
    关于屏幕的几个概念
    repo 使用
    launcher 壁纸相关
    launcher 点击和滑动屏幕过程分析
  • 原文地址:https://www.cnblogs.com/QQ-1615160629/p/configdevicesonLinux.html
Copyright © 2011-2022 走看看