From: Calvin Walton <calvin.walton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: skeggsb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: nouveau exposes backlight controls in presence of ACPI
Date: Tue, 02 Nov 2010 12:37:02 -0400 [thread overview]
Message-ID: <1288715822.11373.6.camel@ayu> (raw)
In-Reply-To: <1288670315.6477.2.camel@nisroch>
On Tue, 2010-11-02 at 13:58 +1000, Ben Skeggs wrote:
> On Fri, 2010-10-29 at 17:49 +0200, Aaron Sowry wrote:
> > It seems to be de facto standard to only expose kernel-level
> backlight controls in the absence of ACPI, however nouveau does this
> regardless of whether ACPI equivalents are available or not. This will
> confuse userspace in some situations. Does this need patching or is
> there some reason for this behaviour?
> Yes, it appears that you're correct here. I took a look into what is
> supposed to happen, and it looks fairly trivial to implement and stop
> nouveau providing nv_backlight if video.ko is already providing it.
>
> However. There's also the platform-specific modules (thinkpad etc) that
> will provide their own backlight methods if the standard ACPI mechanism
> isn't available. I didn't see any immediately obvious way of knowing
> whether or not they were being provided.
>
> I'm not too certain the best way to deal with this, any ideas? :)
It was my understanding that the future direction the kernel was going
to go with this is that all detected backlight devices would be
exported, with a tag in sysfs describing the type of interface
(platform, firmware, direct hardware, whichever). Then it would be up to
userspace to pick the correct backlight device to use based on the tags.
Nothing stopping a user from manipulating a different one directly, with
possible interesting side-effects, of course.
This doesn't seem to be ready yet, though... I've only seen some related
discussion on LKML a while ago.
Note that the thinkpad-acpi module at the moment is also checking for
the ACPI video device to be loaded, and will disable itself in that
case. So the case that causes problems right now is if you have e.g.
both thinkpad-acpi and nouveau, but no ACPI video device?
--
Calvin Walton <calvin.walton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
next prev parent reply other threads:[~2010-11-02 16:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-29 15:49 nouveau exposes backlight controls in presence of ACPI Aaron Sowry
[not found] ` <20101029154934.GA2076-+1tCnOwpXBmzQB+pC5nmwQ@public.gmane.org>
2010-11-02 3:58 ` Ben Skeggs
2010-11-02 14:51 ` Aaron Sowry
[not found] ` <20101102145153.GA4075-+1tCnOwpXBmzQB+pC5nmwQ@public.gmane.org>
2010-11-02 22:37 ` Ben Skeggs
2010-11-02 16:37 ` Calvin Walton [this message]
2010-11-02 19:28 ` Aaron Sowry
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=1288715822.11373.6.camel@ayu \
--to=calvin.walton-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
--cc=skeggsb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.