我正在使用 hp 246 g6 笔记本电脑,当我按下 y 键时,它显示我按下了 ctrl,如下面的 xev 日志所示
KeyPress event, serial 79, synthetic NO, window 0x4400001,
root 0x78c, subw 0x0, time 2418353, (310,105), root:(321,160),
state 0x4, keycode 29 (keysym 0x79, y), same_screen YES,
XLookupString gives 1 bytes: (19) ""
XmbLookupString gives 1 bytes: (19) ""
XFilterEvent returns: False
KeyRelease event, serial 79, synthetic NO, window 0x4400001,
root 0x78c, subw 0x0, time 2418438, (310,105), root:(321,160),
state 0x4, keycode 37 (keysym 0xffe3, Control_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 79, synthetic NO, window 0x4400001,
root 0x78c, subw 0x0, time 2418443, (310,105), root:(321,160),
state 0x0, keycode 29 (keysym 0x79, y), same_screen YES,
XLookupString gives 1 bytes: (79) "y"
XFilterEvent returns: False
我尝试使用脚本进行更改,但错误仍然存在
xmodmap -e "keycode 29 = y"
答案1
我解决了这个问题,换键盘是因为电流坏了