From: Richard Purdie <rpurdie@rpsys.net>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-acpi@vger.kernel.org, "Rafael J. Wysocki" <rjw@sisk.pl>
Subject: Re: brightness control on thinkpad t61p
Date: Tue, 08 Jan 2008 15:45:02 +0000 [thread overview]
Message-ID: <1199807102.6053.31.camel@localhost.localdomain> (raw)
In-Reply-To: <20080108124820.GB23216@khazad-dum.debian.net>
On Tue, 2008-01-08 at 10:48 -0200, Henrique de Moraes Holschuh wrote:
> On Tue, 08 Jan 2008, Matthew Garrett wrote:
> > On Tue, Jan 08, 2008 at 10:06:53AM -0200, Henrique de Moraes Holschuh wrote:
> > > Is there a *real* technical reason why we can't just round to the nearest?
> > > That will work well with any firmware, and it will not remove functionality
> > > from any box, while at the same time plugging the current issues nicely.
> >
> > Yes. Software makes the assumption that writing a value larger than the
> > current value will result in the value increasing, which isn't
> > necessarily true if you round it.
>
> I dare say that such an assumption is broken for the backlight class, there
> is a reason why we have actual_brightness and brightness separate, and it is
> just that one AFAIK. I am cc'ing the backlight class maintainer to get his
> opinion on the matter.
The reason actual_brightness and brightness are two separate things are
because some hardware exists that will let you request one brightness
but choose one that is different itself. There are also some devices
that have backlight limiting in software for use in emergency low
battery situations (the battery can get low enough that the device
reboots on high backlight but is otherwise usable).
I did't get enough context above but I went through the archives and it
seems this is about linearising backlight values.
You can't just export an interface of 0-100 and hope things will work
since you lose the information about which values do something and which
don't.
I agree something which tells us what those brightness values mean could
be useful though, a kind of brightness value <-> relative brightness
table. The framebuffer layer has something like this already from before
the backlight core was abstracted/standardised. I'd look at that as a
first port of call and try to see if it could be integrated into the
backlight class somehow.
Cheers,
Richard
next prev parent reply other threads:[~2008-01-08 16:01 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-23 8:00 brightness control on thinkpad t61p Andrew Morton
2007-12-23 12:16 ` Rafael J. Wysocki
2007-12-24 7:34 ` Matthew Garrett
2007-12-24 17:14 ` Henrique de Moraes Holschuh
2007-12-26 22:10 ` Andrew Morton
2007-12-26 22:23 ` Matthew Garrett
2007-12-27 12:33 ` Henrique de Moraes Holschuh
2008-01-07 1:36 ` Henrique de Moraes Holschuh
2008-01-07 19:48 ` Matthew Garrett
2008-01-08 0:32 ` Henrique de Moraes Holschuh
2008-01-08 0:45 ` Matthew Garrett
2008-01-08 12:06 ` Henrique de Moraes Holschuh
2008-01-08 12:18 ` Matthew Garrett
2008-01-08 12:48 ` Henrique de Moraes Holschuh
2008-01-08 15:17 ` Matthew Garrett
2008-01-08 15:45 ` Richard Purdie [this message]
2008-01-08 15:54 ` Matthew Garrett
2008-01-08 16:29 ` Richard Purdie
2008-01-08 16:49 ` Henrique de Moraes Holschuh
2008-01-08 16:56 ` Richard Purdie
2008-01-08 17:36 ` Henrique de Moraes Holschuh
2007-12-27 12:31 ` Henrique de Moraes Holschuh
2007-12-24 17:08 ` Henrique de Moraes Holschuh
2007-12-26 22:10 ` Andrew Morton
2007-12-27 13:15 ` Henrique de Moraes Holschuh
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=1199807102.6053.31.camel@localhost.localdomain \
--to=rpurdie@rpsys.net \
--cc=akpm@linux-foundation.org \
--cc=hmh@hmh.eng.br \
--cc=linux-acpi@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
--cc=rjw@sisk.pl \
/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