码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu禁用笔记本自带键盘

时间:2016-08-29 01:46:55      阅读:645      评论:0      收藏:0      [点我收藏+]

标签:

ubuntu如何禁用笔记本键盘

打开终端运行命令 xinput list

Virtual core pointer                        id=2    [master pointer  (3)]
?   ? Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
?   ? BTL Gaming Mouse                          id=10   [slave  pointer  (2)]
?   ? SynPS/2 Synaptics TouchPad                id=17   [slave  pointer  (2)]
?   ? USB USB Keyboard                          id=14   [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)]
    ? Sleep Button                              id=9    [slave  keyboard (3)]
    ? BTL Gaming Mouse                          id=11   [slave  keyboard (3)]
    ? Lenovo EasyCamera                         id=12   [slave  keyboard (3)]
    ? Ideapad extra buttons                     id=15   [slave  keyboard (3)]
    ? AT Translated Set 2 keyboard              id=16   [slave  keyboard (3)]
    ? USB USB Keyboard                          id=13   [slave  keyboard (3)]

 

找出你的笔记本键盘id,在我电脑上类似这样:

? AT Translated Set 2 keyboard              id=16   [slave  keyboard (3)]

然后执行

//xinput set-prop <id> "Device Enabled" 0
xinput set-prop 16 "Device Enabled" 0

ubuntu禁用笔记本自带键盘

标签:

原文地址:http://www.cnblogs.com/tuokuzifangpi/p/5816471.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!