maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Turn off backlight completely in sunlight (https://talk.maemo.org/showthread.php?t=59429)

GI jack 2012-01-14 02:55

Re: Turn off backlight completely in sunlight
 
there is a app for that which intergrates into the menu, it works really well. Same as settings but much much more convienant

wakko 2012-01-18 14:05

Re: Turn off backlight completely in sunlight
 
How to get the current value of the light sensor in the terminal?

dr_frost_dk 2012-01-18 14:11

Re: Turn off backlight completely in sunlight
 
cat /sys/class/backlight/acx565akm/brightness

wakko 2012-01-18 14:18

Re: Turn off backlight completely in sunlight
 
This shows the current value of the backlight.
I need to value the light sensor.

wakko 2012-01-18 14:21

Re: Turn off backlight completely in sunlight
 
1 Attachment(s)
* - The value of this sensor in real time.how to get?

reinob 2012-01-24 14:08

Re: Turn off backlight completely in sunlight
 
Quote:

Originally Posted by Aonsaithya (Post 1149474)
Try this in terminal:
Code:

root
echo >/sys/class/backlight/acx565akm/brightness 0

Edit:
You can make a Desktop Command Execution widget with this script (DO NOT SET IT TO RUN ON BOOT OR PERIODICALLY :D):
Code:

echo "echo 0 > /sys/class/backlight/acx565akm/brightness" | sudo gainroot | echo ""

I don't know if setting the brightness to zero will actually turn off the backlight.

For the backlight itself (without (directly) affecting the brightness) use:
(turn off)
# echo 1 > /sys/class/backlight/acx565akm/bl_power

(turn on)
# echo 0 > /sys/class/backlight/acx565akm/bl_power

blue_led 2012-01-24 19:09

Re: Turn off backlight completely in sunlight
 
Quote:

Originally Posted by wakko (Post 1152345)
* - The value of this sensor in real time.how to get?

figures are under /sys/class/i2c-adapter/i2c-2/2-0029 folder.
light metter have 2 sensors :
infrared & visible >> channel 0 .......adc0
IR only >> channel 1..............adc1 (also founded in sysfs folder )
in plain sunlight i expect ir sensor ( 1 ) have high values so a simple script can turn off lcd backlight after this value is above a custom set value .

sysfs lux value is a computed value based on arbitrary formula.

wakko 2012-01-28 18:46

Re: Turn off backlight completely in sunlight
 
Many thanks to you! you really helped! what was needed!


All times are GMT. The time now is 06:50.

vBulletin® Version 3.8.8