Linux:键码为 255 的按键事件的来源是什么?

标签 linux linux-kernel keyboard-events

这是一台运行 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 or xinput test-xi2 to monitor individual events from any input device.

检查这个 answer了解详情。

关于Linux:键码为 255 的按键事件的来源是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35519239/

相关文章:

c - tcp socket hungry 程序是否会干扰文件系统 I/O

linux - 什么是 KVM,为什么有用?

linux - 无法在 Antergos 上运行 Neo4j(需要整数表达式)

linux - 在 RAMDisk 上执行二进制文件是否会将可执行文件重新加载到内存中?

regex - 如何grep包含两个逗号的行

python - 按下键时记录鼠标单击并在 python 中释放相同键时停止记录

Python程序写入另一个python程序?

c - 使用 GDB 调试器查看隐藏代码

linux-kernel - 物理/逻辑/虚拟内存地址之间的差异

java - 如何在 Swing 中停止重复的 keyPressed()/keyReleased() 事件