public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Pavel Machek <pavel@suse.cz>
Cc: Dmitry Torokhov <dtor_core@ameritech.net>, linux-kernel@vger.kernel.org
Subject: Re: Map extra keys on compaq evo
Date: Mon, 1 Nov 2004 15:07:17 +0100	[thread overview]
Message-ID: <20041101140717.GA1180@ucw.cz> (raw)
In-Reply-To: <20041101133214.GE32347@atrey.karlin.mff.cuni.cz>

On Mon, Nov 01, 2004 at 02:32:14PM +0100, Pavel Machek wrote:
> Hi!
> 
> > > > > Compaq Evo notebooks seem to use non-standard keycodes for their extra
> > > > > keys. I workaround that quirk with dmi hook.
> > > > > 
> > > > 
> > > > Why don't you just call "setkeycodes" from your init script?
> > > 
> > > In such case I'd need to configure keys at two different places, and
> > > that's ugly. I have to configure these extra keys with "hotkeys"
> > > anyway (input layer does not provide list of keys available, so
> > 
> > It does.
> 
> Really? I know input has ability to say that, but at least on arima
> notebook, evtest definitely prints keys that are not there...

It depends on whether you configure it exactly for your keyboard. In the
default config it's configured for a default keyboard, which includes
all at least a bit standardized keys.

>     Event code 128 (Stop)
>     Event code 140 (Calc)
>     Event code 142 (Sleep)
>     Event code 143 (WakeUp)
>     Event code 150 (WWW)
>     Event code 155 (Mail)
>     Event code 156 (Bookmarks)
>     Event code 157 (Computer)
>     Event code 158 (Back)
>     Event code 159 (Forward)
>     Event code 163 (NextSong)
>     Event code 164 (PlayPause)
>     Event code 165 (PreviousSong)
>     Event code 166 (StopCD)
>     Event code 173 (Refresh)
> ...
> 
> With accurate list "hotkeys" could run with no configuration, but I am
> afraid maintaining accurate list of keys for each keyboard is way too
> much work.

The lists need to be kept _somewhere_, so why not have a userspace
database with a program that loads the description into the kernel at
boot, possibly using DMI as a hint to what keyboard is connected?

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

  reply	other threads:[~2004-11-01 14:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-31 21:38 Map extra keys on compaq evo Pavel Machek
2004-10-31 22:45 ` Brice Goglin
2004-11-01  1:16 ` Dmitry Torokhov
2004-11-01  8:03   ` Pavel Machek
2004-11-01  9:38     ` Vojtech Pavlik
2004-11-01 13:32       ` Pavel Machek
2004-11-01 14:07         ` Vojtech Pavlik [this message]
2004-11-01 17:28           ` Pavel Machek
2004-11-02  4:18             ` Dmitry Torokhov
2004-11-02  9:31               ` Stelian Pop
2004-11-10 17:11               ` 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=20041101140717.GA1180@ucw.cz \
    --to=vojtech@suse.cz \
    --cc=dtor_core@ameritech.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@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