The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2011-04-24
, 07:07
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#12
|
Replace XXX with /apps/adv-backlight/brightness
|
2011-04-24
, 07:23
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#13
|
|
2011-04-24
, 15:17
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#14
|
Eep!
I added this at the end of my script:
gconftool-2 -s "/system/osso/dsm/display/display_dim_timeout" 30 -t INT
gconftool-2 -s "/system/osso/dsm/display/display_blank_timeout" 30 -t INT
Now after I've restarted MCE again, the dim and blank times remain the same like they were before (30 seconds each).
Is there a way to catch what these two values are at the beginning of the script and then enter them back in afterward?
Like using variables or whatever?
All that's left is to get a better handle on the brightness setting, which goes weird after MCE restart, and then I'm gold.
restore_value() { value=`gconftool-2 --get "$2"` gconftool-2 --type $1 --set "$2" $value }
The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2011-05-13
, 14:56
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#15
|
|
2011-05-13
, 22:20
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#16
|
Is there just a simple way to read all of these values before the script and then return them back afterward?
gconftool-2 --type int --set /apps/osso/applet/osso-applet-display/turn_off_display ?
gconftool-2 --type int --set /apps/osso/applet/osso-applet-display/brightness_period ?
gconftool-2 --type int --set /system/osso/dsm/display/display_dim_timeout ?
gconftool-2 --type int --set /system/osso/dsm/display/display_blank_timeout ?
# advanced backlight set-brightness `gconftool-2 --get /apps/adv-backlight/brightness` # ASUI set-brightness `gconftool-2 --get /apps/asui_state/brightness_level`
The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2011-05-21
, 16:15
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#17
|
|
2011-05-21
, 23:18
|
Posts: 875 |
Thanked: 918 times |
Joined on Sep 2010
|
#18
|
/FULL/PATH/set-brightness `gconftool-2 --get /apps/adv-backlight/brightness`
The Following User Says Thank You to auouymous For This Useful Post: | ||
|
2011-05-31
, 21:48
|
|
Posts: 3,811 |
Thanked: 1,151 times |
Joined on Oct 2007
@ East Lansing, MI
|
#19
|
|
2011-05-31
, 22:08
|
|
Posts: 623 |
Thanked: 289 times |
Joined on Jan 2010
@ UK
|
#20
|
sleep2 gconftool -s /system/osso/dsm/display/display_brightness \ `gconftool -g /system/osso/dsm/display/display_brightness` -t int
The Following User Says Thank You to JonWW For This Useful Post: | ||
Replace XXX with /apps/adv-backlight/brightness