[PATCH] Add HP 8510w keymap quirk
David Härdeman
david at hardeman.nu
Tue May 20 11:02:54 PDT 2008
The attached patch adds an id for the HP 8510w keymap.
Unfortunately it doesn't work 100% for reasons which I can't understand:
basil:~# dmesg
< press the "info" button >
basil:~# dmesg
[ 1326.572642] atkbd.c: Unknown key pressed (translated set 2, code 0xd9 on isa0060/serio0).
[ 1326.572642] atkbd.c: Use 'setkeycodes e059 <keycode>' to make it known.
[ 1325.092077] atkbd.c: Unknown key released (translated set 2, code 0xd9 on isa0060/serio0).
[ 1325.092077] atkbd.c: Use 'setkeycodes e059 <keycode>' to make it known.
basil:~# lshal | grep keymap
info.callouts.add = {'hal-setup-keymap'} (string list)
info.capabilities = {'input', 'input.keyboard', 'input.keypad', 'input.keys', 'input.keymap', 'button'} (string list)
input.keymap.data = {'e001:fn_esc', 'e008:presentation', 'e009:battery', 'e00a:screenlock', 'e033:f22', 'e059:info'} (string list)
< press the "battery" button - Gnome battery status pops up >
basil:~# dmesg
[ 1326.572642] atkbd.c: Unknown key pressed (translated set 2, code 0xd9 on isa0060/serio0).
[ 1326.572642] atkbd.c: Use 'setkeycodes e059 <keycode>' to make it known.
[ 1325.092077] atkbd.c: Unknown key released (translated set 2, code 0xd9 on isa0060/serio0).
[ 1325.092077] atkbd.c: Use 'setkeycodes e059 <keycode>' to make it known.
basil:~#
So the mapping only took effect for some keys (e.g. the battery button)...ehrm?
On an unrelated note:
Tthe brightness controls on this laptop seems...funky...gnome
reacts when I press "brightness-up" by showing the brightness status
indicator (the keypress generates an ACPI event as can be seen with
"acpi_listen") but no event for "brightness-down". The gnome status
indicator also always indicate brightness at min level. Setting/reading
the level via /sys/class/backlight/acpi_video0/brightness seems to work
though.
--
David Härdeman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-hp-8510w-keymap.patch
Type: text/x-diff
Size: 966 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20080520/b5468ad8/attachment-0001.patch
More information about the hal
mailing list