Bug 21527

Summary: Hotkeys not working on HP 2230s
Product: hal Reporter: Erik Lundin <erik.lundin>
Component: hal-infoAssignee: David Zeuthen (not reading bugmail) <zeuthen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: danny.kukawka
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Erik Lundin 2009-05-02 23:46:57 UTC
Some hotkeys are not working on my HP 2230s (Presentation, Mute, Lock key (Fn+F6))

$ sudo uname -r
2.6.30-020630rc3-generic

$ sudo lsb_release -d
Description: Ubuntu 9.04

$ sudo apt-cache policy hotkey-setup
hotkey-setup:
  Installerad: 0.1-23ubuntu12
  Kandidat: 0.1-23ubuntu12
  Versionstabell:
 *** 0.1-23ubuntu12 0
        500 http://se.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status

$ sudo dmidecode -s system-manufacturer
Hewlett-Packard
$ sudo dmidecode -s system-product-name
HP 2230s
$ sudo dmidecode -s system-version
F.07

Presentation button
----------------------------
$ sudo input-events 4

/dev/input/event4
   bustype : BUS_I8042
   vendor : 0x1
   product : 0x1
   version : 43841
   name : "AT Translated Set 2 keyboard"
   phys : "isa0060/serio0/input0"
   bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP

waiting for events
21:35:19.556586: EV_MSC code=4 value=28
21:35:19.556611: EV_KEY KEY_ENTER (0x1c) released
** Presentation button pressed **
21:35:19.556615: EV_SYN code=0 value=0
21:35:23.207028: EV_MSC code=4 value=136
21:35:23.207081: EV_SYN code=0 value=0
21:35:23.213884: EV_MSC code=4 value=136
21:35:23.213931: EV_SYN code=0 value=0

$ dmesg
...
[ 8596.894816] atkbd.c: Unknown key pressed (translated set 2, code 0x88 on isa0060/serio0).
[ 8596.894825] atkbd.c: Use 'setkeycodes e008 <keycode>' to make it known.
[ 8596.901953] atkbd.c: Unknown key released (translated set 2, code 0x88 on isa0060/serio0).
[ 8596.901963] atkbd.c: Use 'setkeycodes e008 <keycode>' to make it known.
...

Fn+F6 (Lock key)
----------------------------
$ sudo input-events 4

/dev/input/event4
   bustype : BUS_I8042
   vendor : 0x1
   product : 0x1
   version : 43841
   name : "AT Translated Set 2 keyboard"
   phys : "isa0060/serio0/input0"
   bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP

waiting for events
21:32:24.202804: EV_MSC code=4 value=28
21:32:24.202837: EV_KEY KEY_ENTER (0x1c) released
** Lock button pressed **
21:32:24.202843: EV_SYN code=0 value=0
21:32:26.465681: EV_MSC code=4 value=64

Mute button
----------------------------
$ sudo input-events 4

/dev/input/event4
   bustype : BUS_I8042
   vendor : 0x1
   product : 0x1
   version : 43841
   name : "AT Translated Set 2 keyboard"
   phys : "isa0060/serio0/input0"
   bits ev : EV_SYN EV_KEY EV_MSC EV_LED EV_REP

waiting for events
21:36:30.481921: EV_MSC code=4 value=28
21:36:30.481950: EV_KEY KEY_ENTER (0x1c) released
21:36:30.481955: EV_SYN code=0 value=0
** Mute button pressed **
timeout, quitting
Comment 1 Danny Kukawka 2009-07-31 06:02:59 UTC
Since there are only messages in /var/log/messages for the presentation button, we can fix only this button. If you have "Unknown key pressed"-events for the other keys, feel free to reopen the bug and tell us which they are.

I will commit this for now: (will merge it in the next days to git master).

commit e6389d9fab81ed6591b4a5de4f56d8f18784f55c
Author: Danny Kukawka <danny.kukawka@web.de>
Date:   Fri Jul 31 14:58:43 2009 +0200

    add keymapping for a HP 2230s

    Added keymapping for a HP 2230s as reported in fd.o#21527.

diff --git a/fdi/information/10freedesktop/30-keymap-hp.fdi b/fdi/information/10freedesktop/30-keymap-hp.fdi
index 60e48fd..8df6185 100644
--- a/fdi/information/10freedesktop/30-keymap-hp.fdi
+++ b/fdi/information/10freedesktop/30-keymap-hp.fdi
@@ -43,7 +43,7 @@
             <append key="input.keymap.data" type="strlist">e059:f23</append>    <!-- touchpad on  -->
           </match>

-         <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="Compaq;EliteBook">
+         <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product" contains_outof="Compaq;EliteBook;2230s">
             <!-- Business and enterprise machines -->
             <append key="input.keymap.data" type="strlist">e008:presentation</append>   <!-- Presentation -->
             <append key="input.keymap.data" type="strlist">e059:help</append>   <!-- I key (high keycode: "info") -->

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.