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

Lennart Poettering mzuny at 0pointer.de
Wed Jul 11 13:00:23 PDT 2007


Hi!

The attached patch contains the keymap data for MSI S270 laptops. 

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.

Richard, you might want to add a few lines about KEY_RESERVED
vs. KEY_UNKNOWN to your quirks web site? might be useful in other
cases as well.

I think this fdi block could safely be merged with the other MSI block
that is already included. Unfortunately I don't have the full DMI data of
that laptop around, hence I cannot really build a rule that works
cleanly for both my S270 and the model that is already in the .fdi
file.

Thank you,

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-info-keymap-msi-s270.patch
Type: text/x-diff
Size: 1987 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20070711/ea94c8af/attachment.patch 


More information about the hal mailing list