升级系统(包括内核)后,我发现某些 fn 键(XF86MonBrightnessUp 和 XF86MonBrightnessDown)无法识别西夫乃至秀键。每次按下其中一个键时,下一条消息就会出现在消息输出:
[ 429.202833] atkbd serio0: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
[ 429.202847] atkbd serio0: Use 'setkeycodes e008 <keycode>' to make it known.
我setkeycodes e008 <keycode>
在那之后执行了秀键然而开始显示关键代码西夫仍然无法识别该键被按下。
使用发现的另一个细节测试工具的优点是有问题的键仅生成具有以下内容的事件value 2
:
Event: time 1430520388.854296, type 4 (EV_MSC), code 4 (MSC_SCAN), value 89
Event: time 1430520388.854296, type 1 (EV_KEY), code 224 (KEY_BRIGHTNESSDOWN), value 2
同时所有其他键都会生成带有value 0
、value 1
和 的事件value 2
:
Event: time 1430520477.865671, type 4 (EV_MSC), code 4 (MSC_SCAN), value b0
Event: time 1430520477.865671, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 1
Event: time 1430520477.865671, -------------- SYN_REPORT ------------
Event: time 1430520478.115796, type 4 (EV_MSC), code 4 (MSC_SCAN), value b0
Event: time 1430520478.115796, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 2
Event: time 1430520478.115796, -------------- SYN_REPORT ------------
Event: time 1430520478.148696, type 4 (EV_MSC), code 4 (MSC_SCAN), value b0
Event: time 1430520478.148696, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 2
Event: time 1430520478.148696, -------------- SYN_REPORT ------------
Event: time 1430520478.377785, type 4 (EV_MSC), code 4 (MSC_SCAN), value b0
Event: time 1430520478.377785, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 2
Event: time 1430520478.377785, -------------- SYN_REPORT ------------
Event: time 1430520478.387684, type 4 (EV_MSC), code 4 (MSC_SCAN), value b0
Event: time 1430520478.387684, type 1 (EV_KEY), code 115 (KEY_VOLUMEUP), value 0
Event: time 1430520478.387684, -------------- SYN_REPORT ------------
正如我上面所写,还进行了内核升级(3.19.3 -> 4.0.1)。但是现在即使在旧内核上我也遇到了同样的问题。我想更新期间的更改列表是必要的,所以在这里我提供它:http://fixee.org/paste/zrm8kl2/
TIA