A few questions on correct key mappings

Richard Hughes hughsient at gmail.com
Sun Jul 22 08:19:50 PDT 2007


On Sun, 2007-07-22 at 13:30 +0100, Carlos Corbacho wrote:
> (The laptops I get information on are from 2005 and newer Acer laptops.
> These differ from the older ones in that they don't need acerhk or
> wistron_btns polling to produce keycodes, they all generate scancodes - and
> for the most part, they all seem to generate the same scancodes).

Lovely. :-)

> 1) A lot of these laptops have both a Euro and a Dollar key either side of
> the "up" arrow key. At the moment I'm just mapping them to F14 and F15
> respectively, but is there something better to use (or should I just mark
> them as 'FIXME' for now until a better solution comes along)?

F14 and F15 are okay for now, soon we should have KEY_EURO and
KEY_DOLLAR so we can just change them when it gets to linus.

> 2) Fn+F3 is described as "Launches the Power Scheme Window". On Windows,
> this pulls up a list of the different powerschemes which can be used (e.g.
> Always On, Home/ Desktop, etc...) and lets you switch between them. At the
> moment I mapped this to KEY_POWER2, should this be KEY_POWER or something
> else?

KEY_BATTERY?

> 3) Fn+F5 is the Display Toggle - described as "Switches display output
> between the display screen, external monitor (if connected) and both". I
> mapped this as KEY_SWITCHVIDEOMODE, but from hotkey-setup, I've seen
> KEY_VIDEOOUT used instead - which key code best matches what this should
> do?

switchvideomode is what we've been using for the other drivers.

Thanks for helping with this.

Richard.




More information about the hal mailing list