|
|
2009-12-15
, 08:59
|
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#11
|
|
|
2009-12-15
, 12:14
|
|
|
Posts: 3,790 |
Thanked: 5,718 times |
Joined on Mar 2006
@ Vienna, Austria
|
#12
|
Here's an extremely crude hack:
Code:#! /bin/sh dbus-send --session --dest=com.nokia.profiled --type=method_call /com/nokia/profiled com.nokia.profiled.set_profile string:"silent" dbus-send --system --dest=com.nokia.mce --type=method_call /com/nokia/mce/request com.nokia.mce.request.req_device_mode_change string:"offline" wmctrl -l -p | grep -v hildon-home | grep -v hildon-status-menu | grep -v desktop | awk '{print $3}' | sort | uniq | while read p; do kill -9 $p; done dbus-send --system --dest=com.nokia.mce --type=method_call /com/nokia/mce/request com.nokia.mce.request.req_tklock_mode_change string:"locked"
[Desktop Entry] Encoding=UTF-8 Version=0.1 Name=Sleep Terminal=false Type=Application Comment=Akku schonen Exec=/home/user/deepsleep.sh Icon=sleep X-Window-Icon= X-HildonDesk-ShowInToolbar=true X-Osso-Type=application/x-executable

...)| The Following User Says Thank You to benny1967 For This Useful Post: | ||
|
|
2009-12-15
, 12:34
|
|
|
Posts: 909 |
Thanked: 216 times |
Joined on Nov 2009
@ Bremen, Germany
|
#13
|
|
|
2009-12-15
, 12:46
|
|
|
Posts: 3,790 |
Thanked: 5,718 times |
Joined on Mar 2006
@ Vienna, Austria
|
#14
|
|
|
2009-12-15
, 12:48
|
|
Posts: 237 |
Thanked: 157 times |
Joined on Dec 2009
@ San Diego, CA
|
#15
|
Beautiful solution? Almost. It does everything it should do, except that it keeps a black window open. This window shows while the script shuts down the services, but it's still there after I unlock the screen afterwards. Tapping on the task switcher makes in disappear, but it simply isn't nice. What's that? Anything in the .desktop file causing it? Or do I need to exit the script in a special way to prevent this?
|
|
2009-12-15
, 13:46
|
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#16
|
Almost. It does everything it should do, except that it keeps a black window open. This window shows while the script shuts down the services, but it's still there after I unlock the screen afterwards. Tapping on the task switcher makes in disappear, but it simply isn't nice. What's that? Anything in the .desktop file causing it? Or do I need to exit the script in a special way to prevent this?
but as i wrote in my original post, the ideal solution would be to be able to configure which parts of the system go down and which stay up.
|
|
2009-12-15
, 14:09
|
|
|
Posts: 3,790 |
Thanked: 5,718 times |
Joined on Mar 2006
@ Vienna, Austria
|
#17
|
This is a Maemo 5 hildon-desktop speciality. I also get that window even when deepsleep.sh contains "exit 0".
[…]
Blame hildon-desktop. See below.
|
|
2009-12-16
, 07:16
|
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#18
|
Isn't it possible to edit the offline profile to make it the same like silent but without any connections? I have done this on my Nokia 5800 and when I go to bed I simply choose the offline profile and then all sounds (except alarm, which is good) are off and every connection (Bluetooth, GPS, GSM, 3G) is disabled. Isn't it the same on the N900 with the offline profile? I can't test it because I have to wait for my N900
|
|
2009-12-16
, 07:50
|
|
|
Posts: 3,790 |
Thanked: 5,718 times |
Joined on Mar 2006
@ Vienna, Austria
|
#19
|
I still don't understand why this does not the same. Can someone please explain it to me. Maybe I am wrong because I cannot test it. Thanks
|
|
2009-12-16
, 08:13
|
|
Posts: 729 |
Thanked: 155 times |
Joined on Dec 2009
|
#20
|