From: Len Brown <lenb@kernel.org>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Zhang Rui <rui.zhang@intel.com>,
Jonathan Woithe <jwoithe@physics.adelaide.edu.au>,
linux-acpi@vger.kernel.org
Subject: Re: [PATCH] ACPI: add "Fujitsu laptop extras" module
Date: Sat, 25 Aug 2007 02:05:25 -0400 [thread overview]
Message-ID: <200708250205.25653.lenb@kernel.org> (raw)
In-Reply-To: <20070824041227.GA8002@srcf.ucam.org>
On Friday 24 August 2007 00:12, Matthew Garrett wrote:
> On Fri, Aug 24, 2007 at 11:55:41AM +0800, Zhang Rui wrote:
>
> > I have the same question for ACPI video driver.
> > Take KEY_BRIGHTNESSUP/KEY_BRIGHTNESSDOWN for example, if ACPI video
> > driver gets such a notification, it will change the brightness level
> > first and then send an event to user space.
>
> The X people would prefer that the kernel not change the brightness
> itself, where possible. In the cases where drivers know how to control
> the backlight hardware themselves (most new Intel hardware, nvidia stuff
> since 2005ish, that sort of thing) it's likely that they'll be able to
> provide much more control than the level provided via the ACPI
> interface.
>
> > I'll send a patch to make ACPI video driver do nothing but export the
> > events to user space in the notify handler if you guys think it's okay.
>
> I think that's the right thing to do, but you might want to make it a
> module option to begin with. That way you can printk that the behaviour
> will change in the future, and then flip the default in a few months.
We must handle two modes:
1. VGA mode, no X
Control the video in the kernel via ACPI methods to talk to the BIOS.
This is known to work on multiple laptops today.
I don't see the utility in sending the hotkey events to user-space
in this mode, but I also don't see the harm, so lets keep them
as an FYI in case some graphics software doesn't know how to
control the video but wants the event to re-probe or something.
2. Graphics mode, X is running
While sometimes programming the video behind X's back
using the kernel and BIOS ACPI entry points works,
this is generally a bad idea.
Here we need to disable the ACPI entry points that control video,
and do nothing but send the input events to user-space
to be picked up by the X server.
Clearly there needs to be a mode bit.
The mode bit should default to case #1 --
as that is what we are running today --
and when X knows to look for the input events
and has the ability to switch modes natively, it should
set the mode bit to switch us to case #2.
The mode bit should probably live in the CONFIG_VIDEO_OUTPUT_CONTROL,
eg. under driers/video/output.c with some generic name that in this
case the acpi video driver registers for.
Rui, can you follow up on this?
thanks,
-Len
next prev parent reply other threads:[~2007-08-25 6:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 0:42 [PATCH] ACPI: add "Fujitsu laptop extras" module Jonathan Woithe
2007-08-24 1:32 ` Matthew Garrett
2007-08-24 1:51 ` Jonathan Woithe
2007-08-24 2:33 ` Matthew Garrett
2007-08-24 2:13 ` Len Brown
2007-08-24 3:11 ` Len Brown
2007-08-24 3:15 ` Jonathan Woithe
2007-08-24 4:23 ` Len Brown
2007-08-27 3:21 ` [PATCH] ACPI: add "Fujitsu laptop extras" module, take 2 Jonathan Woithe
2007-08-24 3:12 ` [PATCH] ACPI: add "Fujitsu laptop extras" module Jonathan Woithe
2007-08-24 3:55 ` Zhang Rui
2007-08-24 4:12 ` Matthew Garrett
2007-08-25 6:05 ` Len Brown [this message]
2007-08-24 7:24 ` Adrian Yee
2007-08-24 7:31 ` Jonathan Woithe
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=200708250205.25653.lenb@kernel.org \
--to=lenb@kernel.org \
--cc=jwoithe@physics.adelaide.edu.au \
--cc=linux-acpi@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).