From: Dmitry Torokhov <dtor_core@ameritech.net>
To: Sasa Stevanovic <mg94c18@alas.matf.bg.ac.yu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Possible bug in keyboard.c (2.6.10)
Date: Wed, 26 Jan 2005 23:50:11 -0500 [thread overview]
Message-ID: <200501262350.11896.dtor_core@ameritech.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0501270318290.4545@82.117.197.34>
On Wednesday 26 January 2005 22:16, Sasa Stevanovic wrote:
> Hi,
>
> I had some problems with my laptop's onetouch keys and it eventually led me to
> keyboard.c file from 2.6.10 kernel (Vojtech Pavlik and others). There may be
> a bug in the file, please read below.
>
> Well, actually, when all omnibook/messages/setkeycodes/hotkeys/xev/showkey etc
> stuff is stripped off, what remains is that x86_keycodes array has only first
> 240 members initialized, while remaining 16 are set to 0 due to [256]:
>
> static unsigned short x86_keycodes[256] = { <only 240 here> };
>
> (For my scenario, workaround was possible.)
>
> I am not sure if this is a bug or not; it worked in 2.4.18 without workaround.
> Might be that someone wanted to prevent reading invalid memory. There are
> many versions of the file/array definition found on the web, none of which has
> a comment about this.
>
>From Vojetch Pavilk:
> I'm sorry, but X only understands the RAW PS/2 protocol, and that one
> can only transport keycodes up to 240.
>
> For keycodes above 240, XFree86 would either need to use the MediumRAW
> mode, or use event devices for parsing the keyboard.
http://www.ussg.iu.edu/hypermail/linux/kernel/0406.0/0544.html
You still did not describe what kind of problems you are having with your
keys.
--
Dmitry
next prev parent reply other threads:[~2005-01-27 4:50 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-27 3:16 Possible bug in keyboard.c (2.6.10) Sasa Stevanovic
2005-01-27 4:50 ` Dmitry Torokhov [this message]
2005-01-27 10:16 ` Sasa Stevanovic
2005-01-27 12:56 ` Andries Brouwer
2005-01-28 0:39 ` Roman Zippel
2005-01-28 10:59 ` Vojtech Pavlik
2005-01-29 4:50 ` Al Viro
2005-01-29 11:25 ` Vojtech Pavlik
2005-01-29 23:35 ` Dmitry Torokhov
2005-01-31 9:01 ` Vojtech Pavlik
2005-01-30 8:41 ` Al Viro
2005-01-30 23:21 ` Dmitry Torokhov
2005-01-30 23:29 ` Dmitry Torokhov
2005-02-03 6:54 ` Dmitry Torokhov
2005-01-29 12:11 ` Roman Zippel
2005-01-29 14:04 ` Vojtech Pavlik
2005-01-30 20:13 ` Roman Zippel
2005-01-28 11:10 ` Vojtech Pavlik
2005-01-28 21:59 ` Andries Brouwer
2005-01-29 11:12 ` Vojtech Pavlik
2005-01-29 23:30 ` Dmitry Torokhov
2005-01-30 23:16 ` Pavel Machek
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=200501262350.11896.dtor_core@ameritech.net \
--to=dtor_core@ameritech.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mg94c18@alas.matf.bg.ac.yu \
/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