![]() |
Re: MCE stop and start
Okay. So do you mean this?
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. :) |
Re: MCE stop and start
Try switching the order so the two system keys are below the two apps keys. Dunno what else to try if that doesn't work.
|
Re: MCE stop and start
I did change the order like you mentioned.
No such luck though. 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. It's weird that the blank timeout is the only setting that doesn't take. |
Re: MCE stop and start
Quote:
Code:
blank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout` |
Re: MCE stop and start
So like this?
#! /bin/sh gconftool-2 --set -t bool /system/osso/af/keyboard-attached true blank=`gconftool-2 -g /system/osso/dsm/display/display_blank_timeout` /etc/init.d/mce stop killall xbindkeys xbindkeys -f /home/user/.xbindkeysrc_adom xmodmap ~/.Xmodmap_adom xkbd -geometry +65536+65992 -k /media/mmc2/N800/Keyboards/Flat2.xkbd & xkbd -geometry +725+360 -k /media/mmc2/N800/Keyboards/Keypad.xkbd & filterm ascii-ascii cp437-utf8 telnet becksbbs.synchro.net gconftool-2 --set -t bool /system/osso/af/keyboard-attached false killall xbindkeys killall xkbd setxkbmap 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` } 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 restore_value bool /system/osso/dsm/locks/touchscreen_keypad_autolock_enabled restore_value bool /system/osso/dsm/display/display_on_with_charger xbindkeys killall roxterm Before this runs: Brightness period - 30 seconds Switch off display - 30 seconds After: Brightness period - 30 seconds Switch off display - 5 minutes |
Re: MCE stop and start
Quote:
It doesn't make sense why the line that sets 300 works but the line after doesn't. Try putting this line in the code after the MCE start line and see what it prints out when you run the script. Code:
echo `gconftool-2 -g /system/osso/dsm/display/display_blank_timeout` Why do you sudo to start MCE but not to stop? |
Re: MCE stop and start
Quote:
I've been working on this script for 18 months now so it's been awhile. *lol* In the control panel, the switch off display says one thing (30 seconds) but the timer is something else (5 minutes). It defaults to 2 minutes when MCE restarts without your script thingy. That's why I used to bring up the display panel and just click Okay since that seemed to restore all the values correctly. |
Re: MCE stop and start
Last question, is there a way to map the power button when MCE has stopped?
In Xterm: xbindkeys -k It's not recognizing anything when I depress that hardware button. How is advanced-systemui picking up when this key is being pressed? |
Re: MCE stop and start
Quote:
HAL sends a signal over dbus when power button is pressed or you can listen to /dev/input/event0(n800) or 1(n810) like ASUI does. It's not a normal key like the others, so no easy way to bind it. |
Re: MCE stop and start
^ Thank you so much for everything you put into this thread.
I surely appreciate your great efforts to provide answers for me. :) |
All times are GMT. The time now is 20:13. |
vBulletin® Version 3.8.8