← Back to team overview

ubuntu-phone team mailing list archive

Re: Long time to get GPS fix - hardware of software problem?

 

On 04/01/16 16:20, Thomas Voß wrote:
Now that is quite difficult, waking up the device from deep sleep just
to maintain a cache is*very*  expensive in terms of battery,
specifically as choosing a sensible timeout is almost impossible.
maybe update the cached location every time the screen comes on, if the cache is older than 5 minutes or so. That way if the screen is off for hours it will stay in low power, but if you turn on the screen it will start figuring out where it is if the cache is old enough that you might have moved a significant distance. This way it only does GPS when the device is active and screen on anyway, and by the time the user has got to the relevant screen that wants their location it will probably be ready to provide it.

Alan.

References