Re: [PATCH] asus-nb-wmi: add some video toggle keys

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 4, 2012 at 9:20 AM, AceLan Kao <acelan.kao@xxxxxxxxxxxxx> wrote:
> There are some new video switch keys that used by newer machines.
> 0xA0 - SDSP HDMI only
> 0xA1 - SDSP LCD + HDMI
> 0xA2 - SDSP CRT + HDMI
> 0xA3 - SDSP TV + HDMI
> But in Linux, there is no suitable userspace application to handle this,
> so, mapping them all to KEY_SWITCHVIDEOMODE.
>
> Signed-off-by: AceLan Kao <acelan.kao@xxxxxxxxxxxxx>
> ---
>  drivers/platform/x86/asus-nb-wmi.c |    4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/platform/x86/asus-nb-wmi.c b/drivers/platform/x86/asus-nb-wmi.c
> index 99a30b5..6de14fd 100644
> --- a/drivers/platform/x86/asus-nb-wmi.c
> +++ b/drivers/platform/x86/asus-nb-wmi.c
> @@ -94,6 +94,10 @@ static const struct key_entry asus_nb_wmi_keymap[] = {
>         { KE_KEY, 0x8A, { KEY_PROG1 } },
>         { KE_KEY, 0x95, { KEY_MEDIA } },
>         { KE_KEY, 0x99, { KEY_PHONE } },
> +       { KE_KEY, 0xA0, { KEY_SWITCHVIDEOMODE } }, /* SDSP HDMI only */
> +       { KE_KEY, 0xA1, { KEY_SWITCHVIDEOMODE } }, /* SDSP LCD + HDMI */
> +       { KE_KEY, 0xA2, { KEY_SWITCHVIDEOMODE } }, /* SDSP CRT + HDMI */
> +       { KE_KEY, 0xA3, { KEY_SWITCHVIDEOMODE } }, /* SDSP TV + HDMI */
>         { KE_KEY, 0xb5, { KEY_CALC } },
>         { KE_KEY, 0xc4, { KEY_KBDILLUMUP } },
>         { KE_KEY, 0xc5, { KEY_KBDILLUMDOWN } },
> --
> 1.7.9.5
>

Acked-by: Corentin Chary <corentin.chary@xxxxxxxxx>

-- 
Corentin Chary
http://xf.iksaif.net
--
To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux