Editing User:Magick777/Opportunistic Power Saving

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
= Opportunistic Power Saving =
= Opportunistic Power Saving =
-
 
-
This page aims to set forth a design for opportunistic power saving on the Nokia N900. Existing power-saver scripts and applets allow the user to toggle settings manually and much has been written about automation of certain events through DBUS. This page is an attempt to tie it all together.
 
-
 
-
== CPU frequency scaling / underclocking ==
 
-
 
-
This is already documented on the [[Overclocking]] page and is my starting point for building an opportunistic power saving script, based on phone lock / unlock. Credits and thanks to Fecn for getting us this far.
 
== Maintain phone in GSM mode by default when on battery ==
== Maintain phone in GSM mode by default when on battery ==
-
=== Status ===
+
=== Design goals ===
-
 
+
-
* Switch to 2G on lock done, works for me, needs review for more blockers
+
-
* Switch back to 3G works for browser but needs some work
+
-
** Move from detecting browser launch to a generic application launch handler
+
-
 
+
-
=== Function specification ===
+
* Switch to GSM mode opportunistically when all seems to be quiet
* Switch to GSM mode opportunistically when all seems to be quiet
-
** trigger analysis on phone locked
+
** trigger on phone locked
-
** first check for blockers, most common first
+
** then check for blockers, most common first
-
*** don't change anything if we're in the desired radio mode
+
*** don't change anything if we're on charge and not saving battery
*** don't change anything if we're on charge and not saving battery
*** don't change anything if we're on a GSM call
*** don't change anything if we're on a GSM call
-
*** don't change anything if we have blocker applications or connections running
+
*** don't change anything if we're in the desired radio mode
-
**** but blockers don't apply if we're on WiFi
+
*** don't change anything if we have blocker applications or connections
-
**** if we're on 3G then check for following blockers
+
**** blockers don't apply if we're on WiFi
-
***** location-daemon active (GPS in use) NOT DONE YET
+
**** if we're on 3G then the known blockers should be
-
***** SIP / Skype / GTalk calls (VoIP in use) NOT DONE YET
+
***** location-daemon active (GPS in use)
 +
***** SIP / Skype / GTalk calls (VoIP in use)
*** don't change anything if the user didn't want the phone to lock anyway
*** don't change anything if the user didn't want the phone to lock anyway
**** cooling off period during which device unlock cancels radio switch
**** cooling off period during which device unlock cancels radio switch
Line 35: Line 23:
-
* Switch automatically to 3G or dual mode (which?) when something requires it
+
* Switch automatically to 3G or dual mode when something requires it
** no sense in triggering on device unlock, wait until needed
** no sense in triggering on device unlock, wait until needed
** check for blockers
** check for blockers
Line 42: Line 30:
*** don't change anything if we're on a voice call
*** don't change anything if we're on a voice call
** trigger on events that may require a data connection i.e.
** trigger on events that may require a data connection i.e.
-
*** launch pplication (via hildon desktop) - which apps?
+
*** launch new application (via hildon desktop)
**** browser
**** browser
**** SIP client  
**** SIP client  
Line 49: Line 37:
*** open Modest e-mail account
*** open Modest e-mail account
*** access Internet radio stream
*** access Internet radio stream
-
 
-
== Disable WiFi when not needed ==
 
-
 
-
=== Take down WiFi when not needed ===
 
-
 
-
 
-
 
-
=== Restore WiFi ===
 
-
 
-
There are few circumstances in which I want the phone to decide for itself to reenable WiFi, however it would be helpful to do so when I arrive home and put it on charge.
 
-
 
-
So we need to
 
-
 
-
* trigger when the phone is placed on charge
 
-
* enable WiFi interface
 
-
* attempt autoconnect to home wireless network
 
-
* consider whether to disable WiFi if not successful in reaching home network
 

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)