maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N900 (https://talk.maemo.org/forumdisplay.php?f=44)
-   -   Command line control of N900 screen brightness? (https://talk.maemo.org/showthread.php?t=73705)

rotoflex 2011-06-02 22:20

Command line control of N900 screen brightness?
 
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 2011-06-03 00:05

Re: Command line control of N900 screen brightness?
 
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)

ste-phan 2011-06-03 00:53

Re: Command line control of N900 screen brightness?
 
[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?

rotoflex 2011-06-03 12:09

Re: Command line control of N900 screen brightness?
 
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 2011-06-03 12:19

Re: Command line control of N900 screen brightness?
 
Quote:

Originally Posted by rotoflex (Post 1021601)
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

fsn 2011-06-11 07:51

Re: Command line control of N900 screen brightness?
 
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

uppercase 2011-06-11 20:25

Re: Command line control of N900 screen brightness?
 
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.

waelsy123 2012-02-15 15:56

Re: Command line control of N900 screen brightness?
 
I CAN'T FIND system/osso ... dictionary


All times are GMT. The time now is 15:14.

vBulletin® Version 3.8.8