|
2011-06-05
, 22:19
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#33
|
|
2011-06-05
, 23:32
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#34
|
So either I need to force it back with a static number, which works, or somehow use a variable setting instead, which I don't know how to do.
blank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout` gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout 300 gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout $blank
The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2011-06-06
, 00:40
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#35
|
|
2011-06-06
, 02:18
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#36
|
blank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout`
/etc/init.d/mce stop
...
sudo /etc/init.d/mce start
...
restore_value int /apps/osso/applet/osso-applet-display/turn_off_display
restore_value int /apps/osso/applet/osso-applet-display/brightness_period
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout 300
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout $blank
restore_value int /system/osso/dsm/display/display_dim_timeout
Before this runs:
Brightness period - 30 seconds
Switch off display - 30 seconds
After:
Brightness period - 30 seconds
Switch off display - 5 minutes
echo `gconftool-2 -g /system/osso/dsm/display/display_blank_timeout`
|
2011-06-06
, 02:41
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#37
|
Why do you sudo to start MCE but not to stop?
|
2011-07-05
, 05:47
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#38
|
|
2011-07-05
, 06:37
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#39
|
Last question, is there a way to map the power button when MCE has stopped?
The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2011-07-05
, 06:39
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#40
|
restore_value()
{
gconftool-2 --type $1 --set $2 `gconftool-2 --get $2`
}
restore_value int /system/osso/dsm/display/display_blank_timeout
restore_value int /system/osso/dsm/display/display_dim_timeout
restore_value int /apps/osso/applet/osso-applet-display/turn_off_display
restore_value int /apps/osso/applet/osso-applet-display/brightness_period
restore_value bool /system/osso/dsm/locks/touchscreen_keypad_autolock_enabled
restore_value bool /system/osso/dsm/display/display_on_with_charger
No errors on any of this but it's not restoring the Switch off Display setting thingy still.
Thanks again for your patience with me.