Re: [PATCH v2] input: amikbd: fix scancode to key code conversion
From: Dmitry Torokhov
Date: Tue Dec 01 2026 - 17:10:29 EST
Hi Steffen,
On Tue, Dec 01, 2026 at 05:40:21PM +0100, Steffen A. Mork wrote:
> Previously the amikbd.c driver passed raw Amiga keyboard scancodes via
> input_report_key(). As a result incorrect key codes were transmitted to
> libinput and the input event framework, while a remapping was
> simultaneously being performed for the VT console via
> amikbd_init_console_keymaps().
>
> This patch corrects the transmission of these scancodes by ensuring that
> the proper Linux key codes are passed to input_report_key() instead.
> Consequently, the remapping for the console is no longer necessary.
>
> The Atari keyboard driver atakbd.c served as a reference for implementing
> this fix.
>
> Tested-by: Steffen A. Mork <linux-dev@xxxxxxxxxx> # native Amiga 2000
> Tested-by: Steffen A. Mork <linux-dev@xxxxxxxxxx> # FS-UAE virtual Amiga 3000
> Fixes: 5fa28ea42f28 ("[PATCH] m68k: restore amikbd compatibility with 2.4")
> Signed-off-by: Steffen A. Mork <linux-dev@xxxxxxxxxx>
Commit 5fa28ea42f28 was an intentional change in 2006 to keep 2.4 Amiga
console keymaps working, and Roman Zippel pushed back against switching
to standard Linux keycodes when this came up again in 2007:
https://lore.kernel.org/r/d120d5000705031217h64db0644qb1e8bc8d8af6e78c@xxxxxxxxxxxxxx
It has been the driver's behavior for 20 years now and changing it will
break setups still using existing Amiga keymaps. Unless Geert wants this
change, we should leave the driver alone.
Thanks.
--
Dmitry