Re: display autoadjust and blank screen
Brought to you by:
matthiasgrimm
From: Kristian B. <kb...@op...> - 2006-03-19 17:56:07
|
On Thu, 2006-02-23 at 15:42 +0100, Yves-Alexis Perez wrote: > On Thu, 2006-02-23 at 00:17 +0100, Yves-Alexis Perez wrote: > > On Wed, 2006-02-22 at 21:39 +0100, Matthias Grimm wrote: > > > Back to your question. It is not a bug. The responsible code is in > > > module_display, function display_keyboard(), first part of the > > > switch(changed){} statement, line 315-316. > > > > > > When automatic mode is active, the brightness keys generate an offset > > > that will be added to the value from the automatic brightness > > > controller. This offset will be clipped if the overall brightness > > > level is out of range. The limits are 1 or BRIGHTNESS_MAX. > > > > ok > > > > > > > > You might change the lower limit to 0 to be able to switch off your > > > display completely also in automatic mode. But keep in mind that this > > > value still depends on the ambient light level. That means if the > > > environment goes darker, the backlight might be switched on again. > > > > Ok, so, attached is a (dirty) patch which enable switching off the LCD > while in automatic adjust mode. In order not to depends on the ambient > light leve i've set the status to OFF, which works but may not be really > clean. This might be a bit late, but I made this script a while ago to handle this. I do agree that pbbuttonsd should handle it with the buttons duh. #!/bin/sh # Do not autoadjust the lcd while blanking the screen. pbbcmd config LCDAUTOADJUST 0 # It take some time to set the brightness to 0, wait until its done. until [ "`pbbcmd query LCDBRIGHTNESS | sed -e 's/ //g'`" == "0" ] do pbbcmd config LCDBRIGHTNESS 0 done # Then check at regular interval to see if the user changed the brightness. while [ "`pbbcmd query LCDBRIGHTNESS | sed -e 's/ //g'`" == "0" ] do sleep 5 done # Finish by resetting the autoadjust. pbbcmd config LCDAUTOADJUST 1 -- Kristian |