Mikma
09-13-2008, 03:20 PM
For some time I've been trying to find a way to blank the screen if I click a button from Personal Launcher. Here's the best solution i have found so far.
blank.sh:
#!/bin/sh
gconftool -t int -s /system/osso/dsm/display/display_blank_timeout 1
gconftool -t int -s /system/osso/dsm/display/display_dim_timeout 1
sleep 1
gconftool -t int -s /system/osso/dsm/display/display_blank_timeout 60
gconftool -t int -s /system/osso/dsm/display/display_dim_timeout 30
When executed it will blank the screen after 1sec, then it will set the previous values i have.
Anyone knows a better way?
blank.sh:
#!/bin/sh
gconftool -t int -s /system/osso/dsm/display/display_blank_timeout 1
gconftool -t int -s /system/osso/dsm/display/display_dim_timeout 1
sleep 1
gconftool -t int -s /system/osso/dsm/display/display_blank_timeout 60
gconftool -t int -s /system/osso/dsm/display/display_dim_timeout 30
When executed it will blank the screen after 1sec, then it will set the previous values i have.
Anyone knows a better way?