Active Topics

 


Reply
Thread Tools
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#1
Can the N900's screen brightness be set via the command line?

Alternatively, does some application like Simple Brightness App have a command line interface that can be used to set screen brightness?
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#2
Code:
gconftool-2 -s /system/osso/dsm/display/display_brightness -t int 5
Change 5 to the brightness level you want.

Code:
#!/bin/sh

gconftool-2 -s /system/osso/dsm/display/display_brightness -t int $1
Shove that into some script (/usr/bin/set_brightness) and use set_brightness 1/2/3/4/5 (chmod +x /usr/bin/set_brightness first)
 

The Following 8 Users Say Thank You to MohammadAG For This Useful Post:
ste-phan's Avatar
Posts: 1,195 | Thanked: 2,708 times | Joined on Jan 2010 @ Hanoi
#3
[QUOTE=

Shove that into some script (/usr/bin/set_brightness) and use set_brightness 1/2/3/4/5 (chmod +x /usr/bin/set_brightness first)[/QUOTE]

Nice. Why the brightness value needs to stick to 5 levels?
Is there a method to make it 10 to 50 for example?
 
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#4
Thank you.

Is there a similar command to turn the screen saver off?

It would be useful to put in a script for calling X11 VNC Server, so that the screen doesn't go black.
 
nicolai's Avatar
Posts: 1,637 | Thanked: 4,424 times | Joined on Apr 2009 @ Germany
#5
Originally Posted by rotoflex View Post
Thank you.

Is there a similar command to turn the screen saver off?

It would be useful to put in a script for calling X11 VNC Server, so that the screen doesn't go black.
gconftool -s --type int /system/osso/dsm/display/inhibit_blank_mode X

With X:
0 -- dont inhibit blanking (means screensaver on)
1 -- Inhibit dimming/blanking while charging

(undocumented, use with caution)
2 -- Allow dimming, but inhibit blanking if charger is connected
3 -- Inhibit dimming/blanking
4 -- Allow dimming, but inhibit blanking
 

The Following 11 Users Say Thank You to nicolai For This Useful Post:
Posts: 1 | Thanked: 0 times | Joined on Jun 2011
#6
I need help. Suddenly my screen has become permanently bright. Reducing the brightness level in settings does not help; and it is still bright when the back light times out. It doesn't make my battery last. Have to recharge every four hours!!!

Thanks
 
Posts: 75 | Thanked: 112 times | Joined on Apr 2011
#7
You can check if the light sensor works with this command:
Code:
cat /sys/bus/i2c/drivers/tsl2563/2-0029/lux
when you cover the sensor it should give 0 and in light, the lux of the light. I got 8177 by shinning a flashlight on it, and 5 in poorly lighted room.
 

The Following 3 Users Say Thank You to uppercase For This Useful Post:
Posts: 33 | Thanked: 9 times | Joined on Feb 2012
#8
I CAN'T FIND system/osso ... dictionary
 
Reply


 
Forum Jump


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