[PATCH] hal-info-keymap-msi-s270.patch

Dmitry Torokhov dmitry.torokhov at gmail.com
Wed Jul 11 13:46:13 PDT 2007


On 7/11/07, Richard Hughes <hughsient at gmail.com> wrote:
> On Wed, 2007-07-11 at 22:00 +0200, Lennart Poettering wrote:
> > Hi!
> >
> > The attached patch contains the keymap data for MSI S270 laptops.
>
> Cool, cheers dude. Pushed.
>
> > This laptop generates keyboard events when the power cable is plugged
> > in/plugged out. These events are completely redundant, because ACPI
> > events are sent anyway. Thus I'd like to map this key to some code
> > where they are essentially eaten. KEY_RESERVED is not an option,
> > because this still fills up dmesg with those well known warnings about
> > setkeycode. I am now using KEY_UNKNOWN which fills up dmesg slightly
> > less, but still generates a warning when X11 is listening for raw kbd
> > events. Better then before but not much better. I guess it would make
> > sense to have a proper KEY_NULL or similar in the kernel.
>
> Sure. Daniel, Dmitry, what do you think?
>

Atkbd has ATKBD_KEY_NULL defined as 255 and will ignore any button
that is assigned this code. As it is driver-specific I am not sure if
we should move it up into input.h...

-- 
Dmitry


More information about the hal mailing list