public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: "P. Christeas" <p_christ@hol.gr>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: atkbd w 2.6.2rc1 : HowTo for extra (inet) keys ?
Date: Fri, 23 Jan 2004 22:09:53 +0100	[thread overview]
Message-ID: <20040123210953.GA12647@ucw.cz> (raw)
In-Reply-To: <200401232204.27819.p_christ@hol.gr>

On Fri, Jan 23, 2004 at 10:04:27PM +0200, P. Christeas wrote:
> Hello again.
> I just reverted my atkbd.c code to your version (Linus's tree) and 
> unfortunately have 4 keys 'missing' from my HP Omnibook XE3GC extra "internet 
> keys".
> Question 1: Can I fix the table from userland, using some utility? That is, 
> can I upload an updated table into the kernel, so that I don't have to 
> reboot?

'setkeycodes' can do that.

> Q 2: Do you have any HowTo/QA for that?

Not yet, but I'll have to write one.

> Q 3: Will that work under X? (which AFAIK reads the 'raw' codes)

X needs to be set up as well. In 2.6, X doesn't get real raw codes but
instead simulated raw codes generated by the kernel.

> Q 4: It has been rather difficult for me to compute the scancodes needed for 
> the table. Could you put the "formula" onto the HowTo?

> FYI, the codes are:
> "www": Unknown key pressed (translated set 2, code 0xf3 on isa0060/serio0).
> "Mail":  Unknown key pressed (translated set 2, code 0xf4 on isa0060/serio0).
> "Launch": Unknown key pressed (translated set 2, code 0xf2 on isa0060/serio0).
> "Help":  Unknown key pressed (translated set 2, code 0xf1 on isa0060/serio0).

The formula for setkeycodes is:

if (code > 0x100)
	you're out of luck, setkeycodes doesn't handle this yet;
else if (code > 0x80)
	result = code - 0x80 + 0xe000;
else
	result = code;

And then you use 'setkeycodes result keycode',

where keycode you find in include/linux/input.h.

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

  reply	other threads:[~2004-01-23 21:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-23 20:04 atkbd w 2.6.2rc1 : HowTo for extra (inet) keys ? P. Christeas
2004-01-23 21:09 ` Vojtech Pavlik [this message]
2004-01-24  2:28   ` Solved: " P. Christeas
2004-01-24  8:39     ` Vojtech Pavlik
2004-01-24 18:37     ` Andries Brouwer
2004-01-26 19:29       ` [OmniBook] " Nigel Cunningham

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=20040123210953.GA12647@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=p_christ@hol.gr \
    /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