.: NinjaTrappeur :.

Dear power users.

Does anyone know how keyboard ev-dev inputs (ie /dev/inputX) are translated to the correct characters using the default kernel keymap (/usr/src/linux/drivers/char/defkeymap.map) in terminal mode (ie. no X11 nor wayland)?

I am confused and cannot find this answer on the internet and I'm too afraid to read any kind of linux kernel code...

(could you please boost if you do not have the answer, thanks!)

· Web · 3 · 1

@ninjatrappeur with keyboard.c there's a mapping from scancodes to the actual key in a hardcoded table.


@ninjatrappeur That's in kdb though, you might want to look into drivers/tty/keyboard.c


This page describes the mastodon.social instance - wondering what Mastodon is? Check out joinmastodon.org instead! In essence, Mastodon is a decentralized, open source social network. This is just one part of the network, run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!

Hero image by @b_cavello