* Re: 2.6.21-rc1 dims my LCD
[not found] ` <Pine.LNX.4.64.0702261617240.10496@twin.jikos.cz>
@ 2007-02-26 15:43 ` Richard Purdie
2007-02-26 17:13 ` Antonino A. Daplas
0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2007-02-26 15:43 UTC (permalink / raw)
To: Jiri Kosina; +Cc: FB-Dev, linux-kernel, Henrique de Moraes Holschuh
On Mon, 2007-02-26 at 16:24 +0100, Jiri Kosina wrote:
> On Mon, 26 Feb 2007, Richard Purdie wrote:
>
> > Jiri: I've appended a patch that should already be queued, could you
> > test and see if it solves the problem.
>
> Thanks. In the meantime I have gone through the code and I can confirm
> that this is the root cause of what I am observing.
>
> Now regarding the patch - at the time when the dim happened previously,
> currently there is a observable blink (after which the brightness is
> correct).
The reason for the behaviour is that its turning the backlight down/off
to save power as it thinks the screen is blank. The blink therefore
makes sense as far as the backlight class is concerned and its working
as intended now.
> I have put some debugging printk() into fb_notifier_callback(),
> and it turns out that on FB_EVENT_CONBLANK, there are two successive calls
> to backlight_update_status(), second immediately following the first one:
>
> Feb 26 15:11:14 thunder kernel: calling backlight_update_status() with bd->props.fb_blank == 1, bd->props.brightness == 0
> Feb 26 15:11:14 thunder kernel: calling backlight_update_status() with bd->props.fb_blank == 0, bd->props.brightness == 0
>
> Is this really a right thing to do?
This should come from two calls to fbcon_generic_blank() in
drivers/video/console/fbcon.c with a different blank parameter and is
therefore in a way outside the scope of the backlight class.
It would be interesting to know why it decides to blank then immediately
unblank the display though. I've cc'd the fbdev-devel list.
Richard
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.6.21-rc1 dims my LCD
2007-02-26 15:43 ` 2.6.21-rc1 dims my LCD Richard Purdie
@ 2007-02-26 17:13 ` Antonino A. Daplas
0 siblings, 0 replies; 2+ messages in thread
From: Antonino A. Daplas @ 2007-02-26 17:13 UTC (permalink / raw)
To: linux-fbdev-devel
Cc: Richard Purdie, linux-kernel, Henrique de Moraes Holschuh,
Jiri Kosina
On Mon, 2007-02-26 at 15:43 +0000, Richard Purdie wrote:
> On Mon, 2007-02-26 at 16:24 +0100, Jiri Kosina wrote:
> > On Mon, 26 Feb 2007, Richard Purdie wrote:
> >
> > > Jiri: I've appended a patch that should already be queued, could you
> > > test and see if it solves the problem.
> >
> > Thanks. In the meantime I have gone through the code and I can confirm
> > that this is the root cause of what I am observing.
> >
> > Now regarding the patch - at the time when the dim happened previously,
> > currently there is a observable blink (after which the brightness is
> > correct).
>
> The reason for the behaviour is that its turning the backlight down/off
> to save power as it thinks the screen is blank. The blink therefore
> makes sense as far as the backlight class is concerned and its working
> as intended now.
>
> > I have put some debugging printk() into fb_notifier_callback(),
> > and it turns out that on FB_EVENT_CONBLANK, there are two successive calls
> > to backlight_update_status(), second immediately following the first one:
> >
> > Feb 26 15:11:14 thunder kernel: calling backlight_update_status() with bd->props.fb_blank == 1, bd->props.brightness == 0
> > Feb 26 15:11:14 thunder kernel: calling backlight_update_status() with bd->props.fb_blank == 0, bd->props.brightness == 0
> >
> > Is this really a right thing to do?
Well, no, the console should not blank and immediately unblank. Of
course, the console can blank after some time and can be induced to
unblank after a keyboard event, for example.
Besides the debugging printk's, can you also add something like
WARN_ON(1); so you can get a tracing too.
Tony
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-26 17:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Pine.LNX.4.64.0702260154460.10496@twin.jikos.cz>
[not found] ` <1172490091.5824.30.camel@localhost.localdomain>
[not found] ` <Pine.LNX.4.64.0702261329270.10496@twin.jikos.cz>
[not found] ` <20070226142157.GA2909@khazad-dum.debian.net>
[not found] ` <1172501357.5824.91.camel@localhost.localdomain>
[not found] ` <Pine.LNX.4.64.0702261617240.10496@twin.jikos.cz>
2007-02-26 15:43 ` 2.6.21-rc1 dims my LCD Richard Purdie
2007-02-26 17:13 ` Antonino A. Daplas
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).