由于某些操作系统错误,我有一个流氓 xinput 设备,即使没有按下任何东西,它也会发送按键信号,从而导致屏幕闪烁和鼠标焦点丢失。
该设备是:
xinput list 8
Video Bus id=8 [slave keyboard (3)]
This device is disabled
Reporting 1 classes:
Class originated from: 8. Type: XIKeyClass
Keycodes supported: 248
Run Code Online (Sandbox Code Playgroud)
如何永久禁用它,以便在重新启动机器后它不会回来?
操作系统是:Ubuntu 14.04.4 LTS
尝试将类似的内容添加到您xorg.conf
或xorg.conf.d
文件夹下:
Section "InputClass"
Identifier "disable broken device"
MatchIsTouchscreen "on"
MatchProduct "full product name from 'xinput list'"
Option "Ignore" "on"
EndSection
Run Code Online (Sandbox Code Playgroud)
在 Ubuntu 下,您可以在此处找到该文件夹/usr/share/X11/xorg.conf.d
。
为了使更改生效,您可能需要重新启动或至少重新启动 X 服务器。
归档时间: |
|
查看次数: |
10607 次 |
最近记录: |