Hello all,<br>This is somewhat on-topic, as this code can be used to test the smoothness of diming the backlight by editing SLP in the included code.<br>I originally wrote this as I'm planning on using an XO motherboard/screen as an alarm clock, and will have the brightness set via some fancy HR=$(date +%H) magic.<br>
<br>Questions and comments are appreciated.<br><br><CODE><br><br>FILE=/sys/class/backlight/dcon-bl/brightness<br>VAL=0<br>SLP=.1<br>while [ $VAL -lt 15 ]<br>do<br>        echo $VAL > $FILE<br>        echo $VAL<br>
        VAL=`expr $VAL + 1`<br>        sleep $SLP<br>done<br>while [ $VAL -gt 0 ]<br>do<br>        echo $VAL > $FILE<br>        echo $VAL<br>        VAL=`expr $VAL - 1`<br>        sleep $SLP<br>done<br>echo "done"<br>
<br><CODE /><br><br>Best,<br>-- <br>Ian Daniher<br>--<br>OLPC Support Volunteer<br>OLPCinci Repair Center Coordinator<br><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 4:45 PM, Jim Gettys <span dir="ltr"><<a href="mailto:jg@laptop.org">jg@laptop.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">How well we can do that isn't clear.<br>
<br>
We have 16 brightness levels, but we didn't think about making them<br>
logarithmic in response to correspond to the eye's behavior, so there<br>
are really fewer than that that are useful.<br>
<br>
Please experiment and see if it is helpful, of course...<br>
                      - Jim<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, 2008-10-23 at 10:14 -0400, Eben Eliason wrote:<br>
> I could be talking nonsense, and perhaps this would consume more power<br>
> than it saves, but if you were able to slowly dim the backlight over<br>
> the course of a minute or so, instead of waiting a minute and then<br>
> dropping it suddenly, we could prevent the sudden change which causes<br>
> a break in concentration.  (As long as the screen is bright enough to<br>
> be usable when dim, of course.)<br>
><br>
> - Eben<br>
><br>
><br>
> On Wed, Oct 22, 2008 at 4:21 PM, Chris Ball <<a href="mailto:cjb@laptop.org">cjb@laptop.org</a>> wrote:<br>
> > Hi,<br>
> ><br>
> >   > When running on battery with Energy Saver set to "Better Battery<br>
> >   > Life" (which sets "Automatically reduce the brightness of the<br>
> >   > display before display sleep") the backlight dims after 30 seconds.<br>
> >   > On AC with the equivalent setting it's 2 minutes, 30 seconds.  In<br>
> >   > each case the dimming time seems to be 50% of the time until the<br>
> >   > screen is turned off.  1 minute is the minimum time before display<br>
> >   > sleep.<br>
> ><br>
> > Thanks!  I was hoping someone would have numbers.  Our backlight dim<br>
> > currently happens fifty seconds after idleness starts, so we're<br>
> > definitely less aggressive than OS X already..<br>
> ><br>
> > - Chris.<br>
> > --<br>
> > Chris Ball   <<a href="mailto:cjb@laptop.org">cjb@laptop.org</a>><br>
> > _______________________________________________<br>
> > Devel mailing list<br>
> > <a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
> > <a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
> ><br>
> _______________________________________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
> <a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</div></div><font color="#888888">--<br>
Jim Gettys <<a href="mailto:jg@laptop.org">jg@laptop.org</a>><br>
One Laptop Per Child<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br><br>