View Single Post
Posts: 230 | Thanked: 302 times | Joined on Oct 2009 @ Helsinki, Suomi (Finland)
#20
Originally Posted by koos View Post
Maybe a python guru may help you. In C the function to call is MeeGo::QmDisplayState::setBlankingPause(). A simple script that you start in the background might do the job.
Thanks, though I already figured another way.
In case anyone else needs to disable or adjust screen blanking here it goes.

First to list available gconf options for the screen:
Code:
$ gconftool-2 -a /system/osso/dsm/display

 possible_display_dim_timeouts = [15,30,60,120,300]
 color_profile = Neutral
 use_low_power_mode = true
 display_blank_timeout = 5
 possible_display_blank_timeouts = [3,10,15]
 display_brightness = 3
 adaptive_display_dim_threshold = 3000
 display_brightness_level_step = 1
 display_dim_timeout = 30
 max_display_brightness_levels = 5
 inhibit_blank_mode = 0
 als_enabled = true
 use_adaptive_display_dimming = true
As you see there's quite many display related options you can tune from gconf.

For example we can add a new possible dim timeout of 10800sec (3 hours) to N9's display settings menu:
Code:
$ gconftool-2 --type list --list-type int --set /system/osso/dsm/display/possible_display_dim_timeouts [15,30,60,120,300,10800]
Done. That's it. Now you can go to N9's settings menu (Settings->Device->Display) and select the 180 minute timeout whenever you need it.

If you want to disable blank mode completely, try changing the respective value in gconf to 1:
Code:
$ gconftool-2 --type int --set /system/osso/dsm/display/inhibit_blank_mode 1
To enable screen blanking again, just return the value to 0:
Code:
$ gconftool-2 --type int --set /system/osso/dsm/display/inhibit_blank_mode 0
As usual at *nix CLI, you can get additinal info about the command by the --help flag:
Code:
gconftool-2 --help
 

The Following User Says Thank You to ladoga For This Useful Post: