首页 > 系统服务 > 详细

Linux配置输入设备(如停用笔记本键盘)

时间:2019-06-01 00:35:38      阅读:281      评论:0      收藏:0      [点我收藏+]

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

Linux配置输入设备(如停用笔记本键盘)

原文:https://www.cnblogs.com/QQ-1615160629/p/configdevicesonLinux.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!