Linux ACPI
 help / color / mirror / Atom feed
From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Luming Yu <luming.yu@gmail.com>
Cc: linux-acpi@vger.kernel.org
Subject: Re: [RFC PATCH] report acpi video hot key event through input device
Date: Mon, 30 Jul 2007 01:50:50 +0100	[thread overview]
Message-ID: <20070730005050.GB27398@srcf.ucam.org> (raw)
In-Reply-To: <3877989d0707290940k3afa94d5x863599ac7c64662b@mail.gmail.com>

On Sun, Jul 29, 2007 at 12:40:16PM -0400, Luming Yu wrote:
>  	switch (event) {
>  	case ACPI_VIDEO_NOTIFY_SWITCH:	/* User requested a switch,
>  					 * most likely via hotkey. */
>  		acpi_bus_generate_event(device, event, 0);
> +		keycode = KEY_UNKNOWN;

KEY_SWITCHVIDEOMODE ?

> 
>  	case ACPI_VIDEO_NOTIFY_PROBE:	/* User plugged in or removed a video
> @@ -1734,21 +1741,37 @@ static void acpi_video_bus_notify(acpi_h
>  		acpi_video_device_rebind(video);
>  		acpi_video_switch_output(video, event);
>  		acpi_bus_generate_event(device, event, 0);
> +		keycode = KEY_UNKNOWN;
>  		break;

Here too.

>  	case ACPI_VIDEO_NOTIFY_SWITCH:	/* change in status (cycle output device) */
>  	case ACPI_VIDEO_NOTIFY_PROBE:	/* change in status (output device status) */
>  		acpi_bus_generate_event(device, event, 0);
> +		keycode = KEY_UNKNOWN;
>  		break;

And these? I'm not sure in this case, though.

> +#define KEY_VIDEO_NEXT		0x1f9
> +#define KEY_VIDEO_PREV		0x1fa
> +#define KEY_BRIGHTNESS_UP	0x1fb
> +#define KEY_BRIGHTNESS_DOWN	0x1fc

What's wrong with the existing KEY_BRIGHTNESSDOWN and KEY_BRIGHTNESSUP?

> +#define KEY_BRIGHTNESS_ZERO	0x1fd
> +#define KEY_BRIGHTNESS_OFF	0x1fe

You almost certainly want to go via linux-input if you're adding new 
keycodes.

-- 
Matthew Garrett | mjg59@srcf.ucam.org

  reply	other threads:[~2007-07-30  0:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-29 16:40 [RFC PATCH] report acpi video hot key event through input device Luming Yu
2007-07-30  0:50 ` Matthew Garrett [this message]
2007-07-30 11:47   ` Richard Hughes
2007-07-30 12:55     ` Dmitry Torokhov
2007-07-31 12:58       ` Henrique de Moraes Holschuh
2007-08-01 13:52         ` Dmitry Torokhov
2007-08-01 14:59           ` Henrique de Moraes Holschuh
2007-08-01 17:12           ` Matthew Garrett
2007-08-08  6:37     ` Zhang Rui
2007-08-14 11:58       ` Richard Hughes
2007-08-14 10:43         ` [RFC PATCH] report acpi video hot key event through inputdevice Zhang Rui
2007-08-15  8:05           ` Zhang Rui
2007-08-08 18:08     ` [RFC PATCH] report acpi video hot key event through input device Zhang Rui
2007-08-08  6:32   ` Zhang Rui
2007-08-08 18:07   ` Zhang Rui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070730005050.GB27398@srcf.ucam.org \
    --to=mjg59@srcf.ucam.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=luming.yu@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox