User:Magick777/My N900 Scheduling

(Charger plugged in / removed)
(Charger plugged in / removed)
Line 27: Line 27:
=== Charger plugged in / removed ===
=== Charger plugged in / removed ===
-
When charging starts, it usually means that the phone is at home and therefore that we want to cancel power saving measures, enable WiFi and so forth. However, this may not always be correct and it would be nice to incorporate some sort of test that we actually are at home and that the actions taken are correct.
+
When charging starts, it usually means that the phone is at home and therefore that we want to cancel power saving measures, enable WiFi and so forth. However, this may not always be correct and it would be nice to incorporate some sort of test that we actually are at home and that the actions taken are correct. So, what we need is a conditional WiFi script that will enable WiFi but set a timer to disable it again after a fixed amount of time, plus a script that reacts to a successful connection to the home WiFi network by disabling the timer.
-
 
+
-
So, what we need is a conditional WiFi script that enables WiFi but sets a timer to disable it again after one minute, and then a script that reacts to a successful connection to the home network by disabling the self-destruct timer.
+
=== Device locked / unlocked ===
=== Device locked / unlocked ===

Revision as of 15:00, 16 July 2010

Contents

What do I need to schedule

Backups

  • Regular backups to be scheduled from alarmed at such time as I have a suitable backup script.

Maintenance

  • Perform any software or network updates that may be required
  • Reset GPRS data counters monthly (done via Alarmed)

Profiles

  • Minimise annoyances overnight (but allow alarms to work)
    • Turn off e-mail checking & notifications overnight

Optimisations

  • Power management - maximise battery life opportunistically
    • force 2G mode when phone is in pocket/not being actively used
  • Perform updates when on WLAN to minimise transfer via GPRS

Criteria for scheduling events

Time-based scheduling

Certain actions need to be scheduled according to time of day, week or month, i.e. as per the scheduling behaviour of the Unix cron daemon. There seem to be two viable ways of achieving this, via fcron and Alarmed. The [fcron] page is well-written and useful, but I think Alarmed is the better tool for the job, partly on the strength of the GUI and partly because it uses an existing daemon rather than adding another one.

Phone status & event scheduling

Charger plugged in / removed

When charging starts, it usually means that the phone is at home and therefore that we want to cancel power saving measures, enable WiFi and so forth. However, this may not always be correct and it would be nice to incorporate some sort of test that we actually are at home and that the actions taken are correct. So, what we need is a conditional WiFi script that will enable WiFi but set a timer to disable it again after a fixed amount of time, plus a script that reacts to a successful connection to the home WiFi network by disabling the timer.

Device locked / unlocked

Display on / off

Specific WLAN connected / disconnected

Calendar-based scheduling

Location-based scheduling

  • When not at home, turn WiFi off unless and until explicitly requested
  • When at home, turn WiFi on and autoconnect

Changelog for scheduled events

This will be moved to the bottom of the page later.

2010-07-15

  • Installed 'alarmed' from extras-devel, had to ln -sf python2.5 to /usr/bin/python
  • Configured alarmed to reset GPRS data at 0000 on 1st of each month