Re: [PATCH 2/2] vt: defkeymap: Map keycodes above 127 to K_HOLE

From: Jiri Slaby
Date: Tue Jul 22 2025 - 05:07:53 EST


On 02. 07. 25, 16:17, Myrrh Periwinkle wrote:
The maximum number of keycodes got bumped to 256 a very long time ago,
but the default keymaps were never adjusted to match. This is causing
the kernel to interpret keycodes above 127 as U+0000 if the shipped
generated keymap is used.

Fix this by mapping all keycodes above 127 to K_HOLE so the kernel
ignores them.

The contents of this patche were generated by rerunning `loadkeys
--mktable --unicode` and only including the changes to map keycodes
above 127 to K_HOLE.

OK., makes sense.

Reviewed-by: Jiri Slaby <jirislaby@xxxxxxxxxx>


Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Myrrh Periwinkle <myrrhperiwinkle@xxxxxxxxxxx>
Cc: stable@xxxxxxxxxxxxxxx


--
js
suse labs