gta02, 2007.2: frequent wakeups -- creating workaround -- scripts for apm

Steven ** montgoss at gmail.com
Fri Aug 15 22:16:58 CEST 2008


Thanks should be directed to Thomas B. <tommy.b at gmx.net>.  He's the
one that found the relevant Qtopia source.  Thanks Thomas!

-Steven

On Fri, Aug 15, 2008 at 1:35 PM, arne anka <openmoko at ginguppin.de> wrote:
> ok, here they are, teh scripts i use to make the baby sleep.
> the fr still wkaes up from an gsm event after a few hours (6 or 10), but
> still the battery lasts a lot longer now.
> thanks to Stevhen**, who pointed me to the qtopia sources executing the at
> commands on suspend/resume.
>
> now, if someone could shed some light on what the do and which values are
> sensible/allowed besides 0 and 2? and if there's a way to know which event
> still escapes the guard and how to catch it?
>
> in /etc/apm/suspend.d/
>
> #!/bin/sh
> PATH=/usr/bin:/bin
>
> echo -e "AT+CREG=0"  | libgsmd-tool -m atcmd 2>&1 > /dev/null
> echo -e "AT+CGREG=0" | libgsmd-tool -m atcmd 2>&1 > /dev/null
> echo -e "AT%CREG=0"  | libgsmd-tool -m atcmd 2>&1 > /dev/null
> echo -e "AT%CGREG=0" | libgsmd-tool -m atcmd 2>&1 > /dev/null
> echo -e "AT%CSQ=0"   | libgsmd-tool -m atcmd 2>&1 > /dev/null
>
>
> in /etc/apm/resume.d/
>
> #!/bin/sh
> PATH=/usr/bin:/bin
>
> echo -e "AT+CREG=2"  | libgsmd-tool -m atcmd 2>&1 > /dev/null
> echo -e "AT+CGREG=2" | libgsmd-tool -m atcmd 2>&1 > /dev/null
> echo -e "AT%CREG=2"  | libgsmd-tool -m atcmd 2>&1 > /dev/null
> echo -e "AT%CGREG=2" | libgsmd-tool -m atcmd 2>&1 > /dev/null
> echo -e "AT%CSQ=1"   | libgsmd-tool -m atcmd 2>&1 > /dev/null
>
>
> _______________________________________________
> support mailing list
> support at lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/support
>




More information about the support mailing list