[2008.testing] GPS after resume

Vladimir Koutny vlado at moko.ksp.sk
Sun Jan 4 11:17:02 CET 2009

> i was thinking about this the other day. the gps has it's own
> processor, correct, and can act independently of the cpu? i'm
> wondering if it's possible for the gps to keep it's fix while the main
> cpu is in suspend. power usage will be higher than a full suspend, but
> the phone will have a fix as soon as it resumes. is there any reason
> why this can't happen?

I wrote attached patch for this few days ago - it is against mwester's stable
kernel so probably still needs some tweaks for 2.6.28 series.

Simply 'echo 1 > /sys/bus/i2c/devices/0-0073/neo1973-pm-gps.0/keep_on_in_suspend'
and it will stay alive during suspend (echo 0 to turn it off - this is also the

It also fixes a bug with re-enabling GPS on resume when it was on before

I'm going to split this into 2 patches and send it to devel soon.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: gps-keep-on-in-suspend.patch
Type: text/x-patch
Size: 3686 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/community/attachments/20090104/1dd6aa0d/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 378 bytes
Desc: OpenPGP digital signature
Url : http://lists.openmoko.org/pipermail/community/attachments/20090104/1dd6aa0d/attachment.pgp 

More information about the community mailing list