使用setkeycodes将按下和释放的键映射到不同的“键”


10

我有一个带有滚轮的键盘,但在Ubuntu上不起作用,并且xev在移动键盘时命令不显示任何内容。但是通过dmesg命令我发现了这一点:

向上移动滚轮时:

atkbd serio0: Unknown key pressed (translated set 2, code 0x8b on isa0060/serio0).
atkbd serio0: Use 'setkeycodes e00b <keycode>' to make it known.

向下移动滚轮时:

atkbd serio0: Unknown key released (translated set 2, code 0x8b on isa0060/serio0).
atkbd serio0: Use 'setkeycodes e00b <keycode>' to make it known.

似乎是相同的键,但是如果向上/向下移动,则按下/释放的键会改变。

xmodmap -pke | grep croll 显示:

keycode  78 = Scroll_Lock NoSymbol Scroll_Lock
keycode 185 = XF86ScrollUp NoSymbol XF86ScrollUp
keycode 186 = XF86ScrollDown NoSymbol XF86ScrollDown

我如何配置它,以便当“按下”是键码185和“已释放”是键码186时?


dmesg您使用的命令是什么?我试着人在这里找到了一些东西:askubuntu.com/questions/450066/...
rubo77

Answers:


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.