小编Dir*_*irk的帖子

运行 xorg 和 evdev 时的条码扫描器输入

当我在文本控制台(CTRL+ALT+F1 或不运行 X)中扫描条形码时,我得到了正确的输入,但是当我尝试使用在 X 上运行的应用程序时,我没有得到正确的条形码。

扫描仪配置为返回后跟“n”的条形码。在 XI 下只得到“n”,而不是前面的条形码。

我跑了 xev 看看发生了什么。以下是输出的摘录:

> KeyPress event, serial 35, synthetic NO, window 0x6800001,
>     state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
> KeyRelease event, serial 35, synthetic NO, window 0x6800001,
>     state 0x18, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
> KeyPress event, serial 35, synthetic NO, window 0x6800001,
>     state 0x10, keycode 64 (keysym 0xffe9, Alt_L), same_screen YES,
> KeyRelease event, serial 35, synthetic NO, window 0x6800001,
>     state 0x18, …
Run Code Online (Sandbox Code Playgroud)

linux xorg input

7
推荐指数
1
解决办法
1388
查看次数

标签 统计

input ×1

linux ×1

xorg ×1