Something randomly stops/starts GPS location service, and interferes with applications that need it
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
location-service (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using the activitytracker
Initially, I noticed that the application kept getting suspended just like the commands running in the terminal application (see bug 1502197).
So, I tried a similar solution, and included all GPS applications that I had into the lifecycle-
gsettings set com.canonical.qtmir lifecycle-
However, this still didn't help, and I noticed that I still get long stretches of hike represented by straight lines, just as if the tracker still stopped working as soon as I stop constantly looking at it, and only wakes up again when I check its status.
So, at home, I tried stracing the ubuntu-
One thread of ubuntu-
gps_state_thread: line = 1890CMD_STOP has been receiving from HAL thread, release lock so can handle CLEAN_UP\n\0
==> so apparently something is *deliberately* causing the GPS thread to be stopped. Quite troubling. Why is this done? Can it be opted out, just like with the lifecycle-
Further debugging showed that the location-service is getting com.ubuntu.
1) root@alains-
Description: Ubuntu 15.04
Release: 15.04
2) root@alains-
ubuntu-
Installed: 3.0.0+15.
Candidate: 3.0.0+15.
Version table:
*** 3.0.0+15.
1001 http://
100 /var/lib/
2.
500 http://
3) What I expected to happen: that location service just keeps running undisturbed, really, until I no longer need it (i.e. until *I* have stopped or closed all applications that need GPS, and not when a mysterious lifecycle manager or HAL thread decides so...)
4) What happened instead:
Different mysterious entities seem to interfere with GPS all the time, at the slightest excuse (such as snapping a pic, or just putting my phone into my pocket...)
Is there a gsettings to get rid of this obnoxious behavior? One of the reasons why I bought an Ubuntu Phone in the first place, rather than an iPhone was so as not to be encumbered by such nonsense. Who came up with this idea and why? Save battery life? Let me tell you something: if the phone is *off* it saves even more battery time, but people get a phone to actually *do* something with it, and saving battery life should obviously take second seat to whatever the owner wants to do.