这是一台运行 Gentoo Linux、amd64 的笔记本电脑。问题是某些东西会自动生成以下类型的按键事件(使用 xev
实用程序捕获):
KeyPress event, serial 49, synthetic NO, window 0x3e00001,
root 0xf5, subw 0x0, time 1465436, (1196,-210), root:(1198,406),
state 0x10, keycode 255 (keysym 0x0, NoSymbol), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
这在终端窗口中尤其会导致烦人的问题,自动滚动配置为在按键时运行 - 它会在大约 15 秒后向下滚动到命令提示符。
我想找到这个事件的来源,然后禁用它。
内核配置:https://drive.google.com/file/d/0B4T1g89tYDs0UkhSX1ZmMW5ZeXc/view?usp=sharing
最佳答案
Use
xinput list
to determine the input devices that are present on your system.Next, use
xinput test
orxinput test-xi2
to monitor individual events from any input device.
检查这个 answer了解详情。
关于Linux:键码为 255 的按键事件的来源是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35519239/