By hughsie on July 4, 2008
Does this look right? I’m trying to explain this to somebody and came up with a diagram.
Feedback appreciated. Thanks.
Posted in Uncategorized | 7 Responses
What a mess.
Any of this explains why Dvorak is broken in Gnome?
[…] Go to the author’s original blog: Linux input model […]
eald, just use xmodmap, saves you a lot of trouble.
I think it is a great learning tool, and that we need a simple image such as this one for each user-visible model.
It may be quicker to understand it if it were spread out a bit, and aligned into stacks to make the flow clearer.
I looked at key events (and their way from the drawing on the key cap, until the character on the screen) a few years ago, and ended up with a similar diagram on my notebook. Here are just a few details out of my notes (which may be outdated, and possibly wrong anyway!):
The key event (press/release) generates up to 6 scancodes.
The kernel keyboard driver has two (exclusive?) modes: scancode mode and keycode mode.
Scancodes are translated (keymap) into either a character “a”, a string “\e[4″, an action.
Finally if you live out of ascii, you add locales, encodings, and fonts, and you get the complete mess.
Copyright © 2015 Technical Blog of Richard Hughes.
Powered by WordPress and Hybrid.
Bad Behavior has blocked 2769 access attempts in the last 7 days.