test result of battery current against display brightness and GPS power mode
Rask Ingemann Lambertsen
rask at sygehus.dk
Sat Mar 28 14:08:40 CET 2009
On Fri, Mar 27, 2009 at 05:21:59AM +0800, Qingyou Meng wrote:
> To set brightness: write (brightness_percent / 100 * 255) to file
> "/sys/class/backlight/gta02-bl/brightness"
I think that's why you get so high currents. This
# echo >/sys/class/backlight/gta02-bl/brightness 0
doesn't do what you hope it does. You should try
# echo >/sys/class/i2c-adapter/i2c-0/0-0073/pcf50633-regltr.9/glamo3362.0/glamo-spi-gpio.0/spi2.0/state sleep
also. A shorthand for that file is /sys/bus/spi/devices/spi2.0/state. When
the display isn't blanked, it reads 'normal'.
But, IMHO, consider using a higher-level interface (such as
freesmartphone.org) to turn off the display instead of trying to find all
the places to mess with under /sys yourself.
--
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year
More information about the community
mailing list