]> git.neil.brown.name Git - freerunner.git/commit
Initial checkin of 'gsmd.py' and support code.
authorNeil Brown <neilb@suse.de>
Sun, 8 Feb 2009 02:54:27 +0000 (13:54 +1100)
committerNeil Brown <neilb@suse.de>
Sun, 8 Feb 2009 02:54:27 +0000 (13:54 +1100)
commit47fb20649f032f4bb1aa1a9163d35912a6ccce5a
treed7d659cdaf048a89360cd8ad84586ef44d0bbce2
parent9ae659890f84c8dea77863e020034c494b790414
Initial checkin of 'gsmd.py' and support code.

gsmd.py uses gsm0710muxd to talk to the modem in the Freerunner.
Its role is largely of monitoring and switching between major states
of:
  - idle/incoming/oncall : for normal operation of the phone
  - suspend : makes the modem quiet for suspend
  - flightmode : turns of the modem.

flightmode is determined if /var/lib/misc/flightmode/active is non-empty.
suspend is detected using the 'apm/events.d/interlock' script.

gsmd makes various state available via files in /var/run/gsm-state/

gsmd does not answer phone calls or retrieve SMS messages or anything like that.
Those tasks are achieved by other programs that make other connections to
gsm0710muxd.

Tracing can be enabled by setting PYTRACE=1 in the environment

TODO:
  work happily when no SIM is present
  work happily when there is no cell to register to
  allow alternate supplier to be set to support roaming.

Signed-off-by: NeilBrown <neilb@suse.de>
apm/interlock [new file with mode: 0644]
gsm/gsmd.py [new file with mode: 0644]
lib/dnotify.py [new file with mode: 0644]
lib/suspend.py [new file with mode: 0644]
lib/trace.py [new file with mode: 0644]