Notices


Reply
Thread Tools
benny1967's Avatar
Posts: 3,790 | Thanked: 5,718 times | Joined on Mar 2006 @ Vienna, Austria
#1
Following situation, not too unusual for me:

Battery is low, I can't charge, but I won't use the device anyway for some time. (Wonder when this happens? Well, I go to a cinema. Or I am in a fancy restaurant where cell phones are considered inappropriate.)

I want it to work afterwards, though, and I don't want to switch it off. So (depending on which device I have with me) I go through a couple of steps to switch off what I think consumes battery. I might choose offline mode, silent profile, I might want to close all running applications just in case one of them misbehaves, I shut down GPS if there is any on the device... and then lock the screen.

Now wouldn't it be nice if I could do all of this with one single click?
A "deep sleep"-application that would add one more button to where the profiles and presence settings are. Press it and all is done.

The application should have a configuration part, of course, so I can choose which parts of the device go down when I activate this mode. Someone might want to keep applications running, another user may want to keep GPS or wifi... just a list of things with checkboxes.

Is this already in the making somewhere (seems so obvious to me) or do I have to politely ask for it?
 

The Following 3 Users Say Thank You to benny1967 For This Useful Post:
Kieron's Avatar
Posts: 388 | Thanked: 115 times | Joined on Oct 2009 @ London, UK
#2
Originally Posted by benny1967 View Post
Following situation, not too unusual for me:

Battery is low, I can't charge, but I won't use the device anyway for some time. (Wonder when this happens? Well, I go to a cinema. Or I am in a fancy restaurant where cell phones are considered inappropriate.)

I want it to work afterwards, though, and I don't want to switch it off. So (depending on which device I have with me) I go through a couple of steps to switch off what I think consumes battery. I might choose offline mode, silent profile, I might want to close all running applications just in case one of them misbehaves, I shut down GPS if there is any on the device... and then lock the screen.

Now wouldn't it be nice if I could do all of this with one single click?
A "deep sleep"-application that would add one more button to where the profiles and presence settings are. Press it and all is done.

The application should have a configuration part, of course, so I can choose which parts of the device go down when I activate this mode. Someone might want to keep applications running, another user may want to keep GPS or wifi... just a list of things with checkboxes.

Is this already in the making somewhere (seems so obvious to me) or do I have to politely ask for it?
I was thinking this too on the train, whilst the N900 was complaining of low battery and I was frantically trying to reduce screen brightness, decrease volumes, disable connections, etc. You beat me to it.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#3
I got it: Pull the battery.

OK, a button in the status area that switches the profile to silent, switches the device to offline mode, and locks the device would be v.easy to do; even for me with my bad programming skills.

GPS... I believe you must close the application using it to stop it (AFAIK ), and closing all the apps on the screen... Possible, I guess - wmctrl gets a list, at least but you'd have to kill -9 'em to make sure that they'd all gone - we don't need no confirmation screens hanging around.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#4
Originally Posted by benny1967 View Post
Is this already in the making somewhere (seems so obvious to me) or do I have to politely ask for it?
I don't think so, but making one should be relatively simple. Just about everything in the device is controllable via DBUS and programs should respond to POSIX signals.

Making it all configurable and nice UI is going to be plenty of work, but it's not hard, read up on some python and start experimenting
 
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#5
Wasn't there such a thing as "Soft-Poweroff" on the N900 that could be enabled by modifying some file? Or was this only on N8x0?
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#6
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"
Requires wmctrl. Will set the profile into silent, put the device into offline mode, proceed to kill -9 apps with a visible window, and then lock the screen and keys.
 

The Following 5 Users Say Thank You to qwerty12 For This Useful Post:
benny1967's Avatar
Posts: 3,790 | Thanked: 5,718 times | Joined on Mar 2006 @ Vienna, Austria
#7
Gonna try this tommorrow

Originally Posted by qwerty12 View Post
Requires wmctrl.
... what's that? Or better: Where is it?
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#8
Originally Posted by benny1967 View Post
Where is it?
I wgetted it from http://qole.org/repository/pool/main...07-6_armel.deb, used dpkg to install, got an error saying libxmu6 was missing; apt-get -f install worked a treat.

Oh, BTW, I'd recommend not running that script from an X Terminal. Make a desktop file or something.
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 152 | Thanked: 41 times | Joined on Dec 2009 @ Sydney
#9
Hijack..
Is there a way to turn off all sounds?
I thought Silent profile meant silent, but I find alarms, games etc all happily create sounds. I was hoping for a way to use it in confidence that not a peep will be heard from it.

Thanks
Sorry for the hijack, I thought it was a little related.
 
debernardis's Avatar
Posts: 2,142 | Thanked: 2,054 times | Joined on Dec 2006 @ Sicily
#10
Faheem: works beautifully
Benny: thanks for the idea, the best way to save power for those like me who use it as a tablet, more than like a phone
__________________
Ernesto de Bernardis

 
Reply


 
Forum Jump


All times are GMT. The time now is 10:56.