Re: [PATCH] HID: EVision: input mapping fix for K552 keyboard

From: Jiri Kosina

Date: Sat Jan 10 2026 - 04:12:06 EST


On Fri, 5 Dec 2025, PrakarshPanwar via B4 Relay wrote:

> From: PrakarshPanwar <prakarshpanwar@xxxxxxxxx>
>
> Added fix for Media Key in Redragon K552 keyboard
> In Windows, this keyboard F1 Key opens Media Player,
> but in Linux it opens System Settings.
>
> This commit is a fix for that bug it remaps K552 F1 key
> which outputs KEY_CONFIG(171) now outputs KEY_MEDIA(226)
>
> It also restructures the input mapping code in hid-evision

Given the fact that actuall keycode *IS* being emitted to userspace (just
a wrong one), can't we do just with remapping the key in userpace using
systemd-hwdb?

Thanks,

--
Jiri Kosina
SUSE Labs