[PATCH xkeyboard-config] Add evdev mappings for KEY_SOUND, KEY_UWB, KEY_WWAN and KEY_RFKILL

Bastien Nocera hadess at hadess.net
Mon May 15 07:11:12 UTC 2017


On Mon, 2017-05-15 at 09:07 +0200, Hans de Goede wrote:
> > > -//  key <I221>   {      [ ]       }; // KEY_SOUND
> > > +    key <I221>   {      [ XF86AudioPreset       ]       };
> > 
> > This is an existing keysym, but what does it correspond to?
> 
>  From XF86keysym.h :
> 
> #define XF86XK_AudioPreset 0x1008FFB6 /* Select equalizer preset,
> e.g. theatre-mode */
> 
> I221 corresponds to KEY_SOUND which gets used in the kernel in
> the following ways:
> 
> drivers/platform/x86/peaq-wmi.c:
>         Used for the Dolby button which under windows toggles through
> theater/game/speach/music mode.
> 
> drivers/media/rc/keymaps/rc-kworld-pc150u.c
> 73:     { 0x48, KEY_SOUND},             /* switch theater mode */
> 
> drivers/media/rc/keymaps/rc-cec.c
> 67:     { 0x33, KEY_SOUND }, /* CEC Spec: Sound Select */
> 
> drivers/media/rc/keymaps/rc-encore-enltv.c
> 74:     { 0x4d, KEY_SOUND },            /* DVD sound */

Looks like we won't need to handle *that* one in gnome-settings-daemon.

Thanks


More information about the xorg-devel mailing list