Touchpad deactivating key for Compaq CQ70

Emilien Klein emilien+ubuntu at klein.st
Sun Apr 5 13:58:32 PDT 2009


Hi all,

I've followed the info at
http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-index.html,
and I would like to submit the following patch.

A question remains, because now the key is detected by xev (which was
not the case before), but this line worries me a bit:
keycode 200 (keysym 0x0, NoSymbol)
Is this normal?

This is what's returned by xev when I press 2 times the touchpad
deactivating button:

KeyPress event, serial 32, synthetic NO, window 0x3c00001,
    root 0xb4, subw 0x0, time 3439804, (972,272), root:(979,323),
    state 0x10, keycode 200 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x3c00001,
    root 0xb4, subw 0x0, time 3439816, (972,272), root:(979,323),
    state 0x10, keycode 200 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 35, synthetic NO, window 0x3c00001,
    root 0xb4, subw 0x0, time 3441376, (973,274), root:(980,325),
    state 0x10, keycode 200 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyRelease event, serial 35, synthetic NO, window 0x3c00001,
    root 0xb4, subw 0x0, time 3441383, (973,274), root:(980,325),
    state 0x10, keycode 200 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes:
    XFilterEvent returns: False




I would like to thank Richard Hughsie for these nicely written pages!

Best regards,
Emilien Klein.
P.S.: I have opened a bug against Ubuntu and hal-info here:
https://bugs.launchpad.net/ubuntu/+source/hal-info/+bug/352864




Please note:
I first thought about adding the CQ70 to the previous block (for the
HP 2510p) that handles this touchpad disable button, however it seems
to me that this section is wrong:
It states
<append key="input.keymap.data" type="strlist">e058:f22</append>
<!-- touchpad off -->
<append key="input.keymap.data" type="strlist">e059:f23</append>
<!-- touchpad on  -->

However, f22 is the correct "Kernel Input Key Name" for this touchpad
on/off function, not f23 which is associated with "Auto Brightness"
regarding http://people.freedesktop.org/~hughsient/quirk/quirk-keymap-try.html

I think that the previous section is wrong, but as I don't want to
modify something that I cannot test, I just left it as is, and created
a new section...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-info-keymap-hp-compaq-cq70.patch
Type: text/x-patch
Size: 853 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20090405/2bd0c87b/attachment.bin 


More information about the hal mailing list