[PATCH] add volume keys of the SYMPHONY 6.0/7.0 to the keymap

Bastien Nocera hadess at hadess.net
Sun Jun 29 05:50:59 PDT 2008


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.

What messages do you get in dmesg when using those buttons?



More information about the hal mailing list