From: Andries.Brouwer@cwi.nl
To: akpm@osdl.org, torvalds@osdl.org, vojtech@suse.cz
Cc: linux-kernel@vger.kernel.org
Subject: Broken keycodes in recent kernels
Date: Fri, 9 Jan 2004 01:08:40 +0100 (MET) [thread overview]
Message-ID: <UTC200401090008.i0908eb24625.aeb@smtp.cwi.nl> (raw)
Just received my tenth complaint this year about the fact
that kbd and recent kernels disagree as to what the right
keycodes are. Since I maintain kbd it follows that recent
kernels are broken.
What is right?
The old Linux convention is that for 1-88 keycode equals scancode.
Above that things are a bit messy, mainly because the 128 scancodes
xx and the 128 escaped scancodes e0 xx and the single combination
e1 1d 45 are put into 127 keycodes, and that doesnt fit.
OK. So we want at least to preserve this 1-88 range, and may worry
about the rest later. All common keys should keep their keycode.
See also setkeycodes(8).
2.6 does first an untranslate and then a map to keycode,
so the fact that keycode equals (translated) scancode
now becomes atkbd_set2_keycode[atkbd_unxlate_table[i]] == i
for i=1,...,88.
Looking at 2.6.0 we see a single mistake: scancode 84 is
translated incorrectly. And many Japanese complained.
Looking at 2.6.1-rc1 we see two mistakes: also scancode 85
is now mistranslated.
So, I think the change of 2.6.1-rc1 was not necessarily an
improvement, but 2.6.0 needs a fix.
I can look at the details, but perhaps Vojtech wants to comment.
Andries
next reply other threads:[~2004-01-09 0:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-09 0:08 Andries.Brouwer [this message]
2004-01-09 8:24 ` Vojtech Pavlik
2004-01-13 15:47 ` OGAWA Hirofumi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=UTC200401090008.i0908eb24625.aeb@smtp.cwi.nl \
--to=andries.brouwer@cwi.nl \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=vojtech@suse.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®