Active Topics

 


Reply
Thread Tools
Posts: 50 | Thanked: 36 times | Joined on Feb 2010
#11
there is a app for that which intergrates into the menu, it works really well. Same as settings but much much more convienant
 
wakko's Avatar
Posts: 19 | Thanked: 23 times | Joined on May 2011 @ Russian Federation
#12
How to get the current value of the light sensor in the terminal?
__________________
Nokia n900 1000MHz 2xSCUD 3005mAh 64Gb
 
dr_frost_dk's Avatar
Posts: 1,503 | Thanked: 2,688 times | Joined on Oct 2010 @ Denmark
#13
cat /sys/class/backlight/acx565akm/brightness
 

The Following User Says Thank You to dr_frost_dk For This Useful Post:
wakko's Avatar
Posts: 19 | Thanked: 23 times | Joined on May 2011 @ Russian Federation
#14
This shows the current value of the backlight.
I need to value the light sensor.
__________________
Nokia n900 1000MHz 2xSCUD 3005mAh 64Gb
 

The Following User Says Thank You to wakko For This Useful Post:
wakko's Avatar
Posts: 19 | Thanked: 23 times | Joined on May 2011 @ Russian Federation
#15
* - The value of this sensor in real time.how to get?
Attached Images
 
__________________
Nokia n900 1000MHz 2xSCUD 3005mAh 64Gb
 
Posts: 1,808 | Thanked: 4,272 times | Joined on Feb 2011 @ Germany
#16
Originally Posted by Aonsaithya View Post
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 ):
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
 

The Following 3 Users Say Thank You to reinob For This Useful Post:
Posts: 306 | Thanked: 566 times | Joined on Jan 2010 @ Romania
#17
Originally Posted by wakko View Post
* - 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.
__________________
Automatic speed Hostmode

Last edited by blue_led; 2012-01-24 at 19:20.
 

The Following 3 Users Say Thank You to blue_led For This Useful Post:
wakko's Avatar
Posts: 19 | Thanked: 23 times | Joined on May 2011 @ Russian Federation
#18
Many thanks to you! you really helped! what was needed!
__________________
Nokia n900 1000MHz 2xSCUD 3005mAh 64Gb
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:35.