Linux ACPI
 help / color / mirror / Atom feed
From: Richard Hughes <hughsient@gmail.com>
To: Zhang Rui <rui.zhang@intel.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
	Luming Yu <luming.yu@gmail.com>,
	linux-acpi@vger.kernel.org
Subject: Re: [RFC PATCH] report acpi video hot key event through input device
Date: Tue, 14 Aug 2007 12:58:25 +0100	[thread overview]
Message-ID: <1187092705.2800.9.camel@hughsie-laptop> (raw)
In-Reply-To: <1186555034.19883.19.camel@rzhang-asus.sh.intel.com>


On Wed, 2007-08-08 at 14:37 +0800, Zhang Rui wrote:
> On Mon, 2007-07-30 at 12:47 +0100, Richard Hughes wrote:
> > On 30/07/07, Matthew Garrett <mjg59@srcf.ucam.org> wrote:
> > > 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 ?
> > 
> > Yes, please use this. This is what other ACPI drivers are using.
> > 
> > > What's wrong with the existing KEY_BRIGHTNESSDOWN and KEY_BRIGHTNESSUP?
> > 
> > Agree, this matches other drivers like thinkpad_acpi and sony-laptop.
> > 
> > > > +#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.
> > 
> > Yup - do we have to distinguish between zero and off? Or is off
> > "switch panel backlight off" and zero is "switch to lowest brightness
> > level"?
> > 
> Hmm, I think they are slightly different.
> IMO, "zero" equals _BCM(0), it means to turn off the backlight, but we
> may still see the screen if there is a ambient light.
> "off" means turn off the output device, i.e. set to D1/D2/D3 state. 

Sure, so they are different states, but to a user they are both
effectively the same "screen is off". Is there any use case to removing
the backlight without powering down the display?

Richard.



  reply	other threads:[~2007-08-14  9:58 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
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 [this message]
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=1187092705.2800.9.camel@hughsie-laptop \
    --to=hughsient@gmail.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=luming.yu@gmail.com \
    --cc=mjg59@srcf.ucam.org \
    --cc=rui.zhang@intel.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