[PATCH] add volume keys of the SYMPHONY 6.0/7.0 to the keymap
Adel Gadllah
adel.gadllah at gmail.com
Sun Jun 29 05:56:33 PDT 2008
2008/6/29 Bastien Nocera <hadess at hadess.net>:
> Heya,
>
> On Sun, 2008-06-29 at 14:45 +0200, Adel Gadllah wrote:
>> Hi,
>> The attached patch maps the keycodes 174 and 176 to the volumeup/down
>> keys on this laptop.
>>
>> ----------
>> Signed-off-by: Adel Gadllah <adel.gadllah at gmail.com>
>>
>> diff --git a/fdi/information/10freedesktop/30-keymap-misc.fdi
>> b/fdi/information/10freedesktop/30-keymap-misc.fdi
>> index def976f..3365dae 100644
>> --- a/fdi/information/10freedesktop/30-keymap-misc.fdi
>> +++ b/fdi/information/10freedesktop/30-keymap-misc.fdi
>> @@ -82,6 +82,8 @@
>> <match key="/org/freedesktop/Hal/devices/computer:system.hardware.product"
>> string="SYMPHONY 6.0/7.0">
>> <append key="input.keymap.data" type="strlist">e073:prog2</append>
>> <!-- "P2" programmable button -->
>> <append key="input.keymap.data" type="strlist">e074:prog1</append>
>> <!-- "P1" programmable button -->
>> + <append key="input.keymap.data"
>> type="strlist">174:volumedown</append> <!-- "-" volumedown -->
>> + <append key="input.keymap.data"
>> type="strlist">176:volumeup</append> <!-- "+" volumeup -->
>
>
> That looks wrong to me. 174 and 176 are the keycodes for those buttons
> in X, when one doesn't have the right keymap selected, not their raw
> keycodes in the kernel.
first I was using a Xmodmap like this:
keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume
> What messages do you get in dmesg when using those buttons?
nothing
More information about the hal
mailing list