Thread (1 message) 1 message, 1 author, 2011-02-06

Re: How to completely switch off LCD backlight

From: Gregoire Gentil <hidden>
Date: 2011-02-06 18:51:21

If you are not using it, put .reset_gpio = 96 in your board file for the
DSS2 structure. Then echo 1/0 > .../fb0/blank will do the trick to turn
on/off your screen,

Grégoire

On Sun, 2011-02-06 at 21:53 +0400, Elvis Dowson wrote:
Hi Grant,
                    Thanks for the reply. 

On Feb 6, 2011, at 9:30 PM, Grant Erickson wrote:
quoted
The following script should be instructive:

   device="/sys/devices/platform/pwm-backlight.0/backlight/pwm-backlight.0"
For me, this is located in /sys/class/backlight/beagleboard

and bl_power is located in /sys/class/backlight/beagleboard
quoted
   power="${device}/bl_power"
   brightness="${device}/brightness"
   max="${device}/max_brightness"


   disable_backlight () {
       echo 1 > ${power}
   }

   enable_backlight () {
       echo 0 > ${power}
   }
I did try

echo 1 > bl_power

but there was no effect. GPIO 96 from the OMAP3503 is physically connected to LCD LED backlight enable, which I think is what would be used to turn the backlight on/off. 

Where can I specify the mapping of GPIO 96 to the bl_power file, so that the LCD backlight can be switched off?

Elvis



--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help