我有一个相当老旧的 PS/2 键盘,有 125 个键,其中一些键只发出扫描码,不与任何键码绑定。现在我想启动setkeycodes
服务systemd
来为这些“有问题的”键分配键码evtest
。然而,运行 时,显示了一些奇怪的键码,它们与我主板上的任何(物理)键都不对应,而 F16 到 F22 键(以及为清楚起见我在这里省略的许多其他键)根本没有被提及:
Input driver version is 1.0.1
Input device ID: bus 0x11 vendor 0x1 product 0x1 version 0xab41
Input device name: "AT Translated Set 2 keyboard"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
// Standard PC keycode omitted
Event code 85 (KEY_ZENKAKUHANKAKU)
Event code 86 (KEY_102ND)
// F11 & F12 omitted
Event code 89 (KEY_RO)
Event code 90 (KEY_KATAKANA)
Event code 91 (KEY_HIRAGANA)
Event code 92 (KEY_HENKAN)
Event code 93 (KEY_KATAKANAHIRAGANA)
Event code 94 (KEY_MUHENKAN)
Event code 95 (KEY_KPJPCOMMA)
Event code 96 (KEY_KPENTER)
// Arrow keys omitted
Event code 122 (KEY_HANGUEL)
Event code 123 (KEY_HANJA)
Event code 124 (KEY_YEN)
// Meta & compose keys omitted
Event code 128 (KEY_STOP)
Event code 140 (KEY_CALC)
Event code 142 (KEY_SLEEP)
Event code 143 (KEY_WAKEUP)
Event code 155 (KEY_MAIL)
Event code 156 (KEY_BOOKMARKS)
Event code 157 (KEY_COMPUTER)
Event code 158 (KEY_BACK)
Event code 159 (KEY_FORWARD)
Event code 163 (KEY_NEXTSONG)
Event code 164 (KEY_PLAYPAUSE)
Event code 165 (KEY_PREVIOUSSONG)
Event code 166 (KEY_STOPCD)
Event code 172 (KEY_HOMEPAGE)
Event code 173 (KEY_REFRESH)
Event code 183 (KEY_F13)
Event code 184 (KEY_F14)
Event code 185 (KEY_F15)
// Where are F16 thru F22 (#186 thru #192)?
Event code 217 (KEY_SEARCH)
Event code 226 (KEY_MEDIA)
我怎样才能使缺失的 F 键出现在此列表中?并且:它们是否必须在此处列出才能使用setkeycodes
?我的操作系统是 AMD64 上的 OpenSuSE Leap 15.5。