Ticket #133 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

GPS doesn't resume properly

Reported by: Baruch Even <baruch@…> Owned by: daniel
Priority: major Milestone:
Component: framework/ogpsd Version:
Keywords: gps suspend resume Cc:

Description

I had both Zhone GPS app and TangoGPS running when I suspended the phone. Upon resume, the state of the GPS data is as was left last time, no updates flowed even after sufficient time for getting a fix.

GPS returned to work only after I closed both apps and started the Zhone GPS app again.

This is on FSO milestone2 (or so I believe)...

Change History

comment:1 Changed 3 years ago by daniel

This problem is twofold:

First the kernel doesn't restore the power to the GPS if it was on before suspend. This needs to be taken up with the kernel people.

Then even if power is restored ogpsd needs to be informed before and after suspend so it has time to save any data and restore it on resume, reconfigure the GPS for UBX mode, etc. This depends on adding suspend signaling in ousaged (See  http://lists.openmoko.org/pipermail/devel/2008-September/002265.html for details)

comment:2 Changed 3 years ago by daniel

  • Status changed from new to assigned

This should work with a recent build of frameworkd (commit >= [06bc4adab61e9c0139bde55890734439450aa28c]). Unfortunately my kernel doesn't wake up from suspend at all at the moment. If you can test this I would be very happy.

comment:3 Changed 3 years ago by Baruch Even <baruch@…>

I can't test it either since my phone won't resume either.

comment:4 Changed 3 years ago by Baruch Even <baruch@…>

  • Status changed from assigned to closed
  • Resolution set to fixed

This is fixed now. Thanks!

Note: See TracTickets for help on using tickets.