Have addon-keyboard recognize some more buttons

Sjoerd Simons sjoerd at luon.net
Wed Mar 1 06:56:12 PST 2006


Hi,

  Attached patch let's addon-keyboard also recognize the mute button, 
  the volume up/down buttons, the switchvideo mode button and the keyboard 
  illumination toggle/down/up buttons. This causes hal to send out events for
  all the special buttons on my powerbook's keyboard :)

  Okay to commit ?

    Sjoerd
-- 
Polymer physicists are into chains.
-------------- next part --------------
Index: ChangeLog
===================================================================
RCS file: /cvs/hal/hal/ChangeLog,v
retrieving revision 1.840
diff -r1.840 ChangeLog
0a1,7
> 2006-03-01  Sjoerd  <sjoerd at luon.net>
> 
> 	* hald/linux2/addons/addon-keyboard.c: Also recognize mute, 
> 	volume up/down buttons, switchvideo mode button and keyboard illumination 
> 	toggle/down/up buttons.
> 
> 
Index: hald/linux2/addons/addon-keyboard.c
===================================================================
RCS file: /cvs/hal/hal/hald/linux2/addons/addon-keyboard.c,v
retrieving revision 1.4
diff -r1.4 addon-keyboard.c
2c2
<  * CVSID: $Id: addon-keyboard.c,v 1.4 2006/02/22 21:10:06 david Exp $
---
>  * CVSID: $Id: addon-keyboard.c,v 1.4 2006-02-22 21:10:06 david Exp $
141c141,148
< 	[KEY_POWER] = "power"
---
> 	[KEY_POWER] = "power",
> 	[KEY_MUTE] = "mute",
> 	[KEY_VOLUMEDOWN] = "volumedown",
> 	[KEY_VOLUMEUP] = "volumeup",
> 	[KEY_KBDILLUMTOGGLE] = "kbdillumtoggle",
> 	[KEY_KBDILLUMDOWN] = "kbdillumdown",
> 	[KEY_KBDILLUMUP] = "kbdillumup",
> 	[KEY_SWITCHVIDEOMODE] = "switchvideomode"


More information about the hal mailing list