Thread: Odds and ends
View Single Post
Addison's Avatar
Posts: 3,811 | Thanked: 1,151 times | Joined on Oct 2007 @ East Lansing, MI
#105
Yes! I think I definitely got it now.

It was just a matter of stopping MCE, changing the notification values, then restarting MCE and restoring the brightness settings along with auouymous' set-backlight script.


Turning on 1 minute notifications:
Code:
blank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout`
/etc/init.d/mce stop
gconftool-2 --type int --set /apps/modest/update_interval 1
gconftool-2 --type boolean --set /apps/modest/auto_update True
sudo /etc/init.d/mce start
/usr/bin/set-backlight `gconftool-2 --get /apps/adv-backlight/brightness`
restore_value()
{
  gconftool-2 --type $1 --set $2 `gconftool-2 --get $2`
}
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout 120
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout $blank
restore_value int /system/osso/dsm/display/display_dim_timeout
restore_value bool /system/osso/dsm/locks/touchscreen_keypad_autolock_enabled
restore_value bool /system/osso/dsm/display/display_on_with_charger

Turning it off:
Code:
bank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout`
/etc/init.d/mce stop
gconftool-2 --type boolean --set /apps/modest/auto_update False
sudo /etc/init.d/mce start
/usr/bin/set-backlight `gconftool-2 --get /apps/adv-backlight/brightness`
restore_value()
{
  gconftool-2 --type $1 --set $2 `gconftool-2 --get $2`
}
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout 120
gconftool-2 -t int -s /system/osso/dsm/display/display_blank_timeout $blank
restore_value int /system/osso/dsm/display/display_dim_timeout
restore_value bool /system/osso/dsm/locks/touchscreen_keypad_autolock_enabled
restore_value bool /system/osso/dsm/display/display_on_with_charger


Oh, and auouymous, I don't use any of these mail apps either.

I'm only using it for the LED alerts so I no longer have to check my Gmail account anymore.