![]() |
MCE stop and start
I have a script that runs
/etc/init.d/mce stop so I can use more of the hardware keys to do different junk. After I'm done using this I then sudo /etc/init.d/mce start The thing is, my original screen brightness and screen blanking timeout numbers are different afterwards. I then have to go to the Control panel, Display, then click on Okay for them to restore back to their original settings. Is there any command that I can add to the script so it will do this for me? I'm using Advanced-Backlight by the way. Thanks. |
Re: MCE stop and start
Not sure why your timeout would be different but MCE does set brightness back to its 1-5 value. You can read the value adv-brightness uses from gconf and write it to /sys/devices/platform/omapfb/panel/backlight_level (multiply it by 2 and add 1). Install gconf-editor to find the gconf value, each app has its own folder.
What are you using the hardware keys for? You can get the power button from a HAL dbus signal and the home key can be used by current app if you grab the keyboard with X. The other keys are all sent to current app. |
Re: MCE stop and start
I'm currently using this script with ADOM.
Since I only have an N800, it just gives me three extra hardware keys that I can bind for the game, but for me, it's worth it. I also use this with some of the emulators like DrNokSnes. But yeah, as far as I know, the only way to get control of these three keys (Escape, Menu, and Home buttons) is to stop MCE. Once MCE starts again, all of the display settings are thrown completely off unless I go to the Control Panel, Display and then click on Okay. All of my scripts are mostly copies and pastes from other users here with a simple twist. I can't program a single thing. I was hoping for something I could add to my script to do this instead of doing the whole App Manager garbage manually. Hope this makes sense. :) |
Re: MCE stop and start
Do you know how to create shell scripts and execute them from icons?
This code will open the display control panel. You could put it in a shell script after the MCE start command so the display control panel always opens immediately after restarting MCE. Code:
run-standalone.sh dbus-send --system --type=method_call -dest=com.nokia.controlpanel /com/nokia/controlpanel/rpc com.nokia.controlpanel.run_applet string:libcpdisplay.so boolean:true Code:
restore_value() Code:
value=`gconftool-2 --get XXX` |
Re: MCE stop and start
This guy talks about steeing screen dim/timeouts form the cli.
|
Re: MCE stop and start
Thank you!
I'll give this a try later tonight I hope. Before, at the end of my script, I had this... /usr/bin/controlpanel And then just redid the settings manually. I like your ideas so much better. :) |
Re: MCE stop and start
Quote:
Quote:
I have Brightness period: 30 secs. Switch off display: 30 secs. However, once MCE starts again, even with your script, it dims at 90 secs. then blanks at 2 minutes. I believe it also reloads the brightness value from the control panel and not Advanced Backlight. Quote:
Please don't give up on me with this. :) |
Re: MCE stop and start
Quote:
You need to install the "gconf-editor" package, run it, open the apps folder and find adv-backlight's folder. Inside this folder there will be a key that sounds like it holds the brightness level. Replace XXX with the full path (folders and key name) to that key. |
Re: MCE stop and start
Quote:
Do you have Advanced Backlight? I thought that came with the SSU because it best supports the whole screen rotation thing? And I'll try your gconf-editor suggestion right now. :) Thanks! |
Re: MCE stop and start
Okay. It looks like I can't see the entire address because it's grayed out.
http://img854.imageshack.us/img854/8...1042302085.png |
All times are GMT. The time now is 04:57. |
vBulletin® Version 3.8.8