GPS stays active after location data is used by a scope (even after not not using the scopes anymore)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Critical
|
Unassigned | ||
location-service (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
unity-scopes-api (Ubuntu RTM) |
Invalid
|
Critical
|
Pete Woods | ||
unity-scopes-shell (Ubuntu) |
Fix Released
|
Critical
|
Pete Woods | ||
unity-scopes-shell (Ubuntu RTM) |
Fix Released
|
Critical
|
Pete Woods | ||
unity8 (Ubuntu) |
Fix Released
|
Critical
|
Pete Woods | ||
unity8 (Ubuntu RTM) |
Fix Released
|
Critical
|
Pete Woods |
Bug Description
phablet@
current build number: 237
device name: krillin
channel: ubuntu-
last update: 2015-02-17 17:04:34
version version: 237
version ubuntu: 20150217
version device: 20150216-fe747ac
version custom: 20150207-538-29-183
You can easily see if the GPS is active or not by checking the logcat output (running as root). In this case the hardware remains on (consumed by the location-service) after opening a scope such as the weather channel one, and retrieving location.
To reproduce:
1 - Reboot the phone;
2 - Open logcat as root: sudo /system/bin/logcat
3 - From today's scope, click on the weather icon (opening the weather channel scopes)
4 - See that the GPS is active and location works as expected
5 - Move away from that scope, and check logcat's output (it will stay active, meaning that the location-service is still active).
Related branches
- Ricardo Salveti (community): Approve
- Albert Astals Cid (community): Approve (code)
- PS Jenkins bot (community): Needs Fixing (continuous-integration)
-
Diff: 20 lines (+2/-1)1 file modifiedqml/Dash/GenericScopeView.qml (+2/-1)
- Ricardo Mendoza (community): Approve
-
Diff: 20 lines (+2/-1)1 file modifiedqml/Dash/GenericScopeView.qml (+2/-1)
- Ricardo Mendoza (community): Approve
- Ricardo Salveti (community): Approve
-
Diff: 163 lines (+37/-23)6 files modifiedsrc/Unity/locationservice.h (+5/-9)
src/Unity/scope.cpp (+2/-2)
src/Unity/scope.h (+1/-0)
src/Unity/ubuntulocationservice.cpp (+25/-8)
src/Unity/ubuntulocationservice.h (+3/-3)
tests/locationtest.cpp (+1/-1)
- Ricardo Salveti (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 163 lines (+37/-23)6 files modifiedsrc/Unity/locationservice.h (+5/-9)
src/Unity/scope.cpp (+2/-2)
src/Unity/scope.h (+1/-0)
src/Unity/ubuntulocationservice.cpp (+25/-8)
src/Unity/ubuntulocationservice.h (+3/-3)
tests/locationtest.cpp (+1/-1)
Changed in canonical-devices-system-image: | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: battery |
Changed in canonical-devices-system-image: | |
milestone: | none → ww13-ota |
status: | Confirmed → In Progress |
Changed in unity-scopes-api (Ubuntu RTM): | |
assignee: | nobody → Pete Woods (pete-woods) |
importance: | Undecided → Critical |
status: | New → In Progress |
Changed in canonical-devices-system-image: | |
importance: | High → Critical |
Changed in location-service (Ubuntu): | |
status: | New → Invalid |
Changed in unity-scopes-api (Ubuntu RTM): | |
status: | In Progress → Invalid |
Changed in unity-scopes-shell (Ubuntu): | |
importance: | Undecided → Critical |
assignee: | nobody → Pete Woods (pete-woods) |
status: | New → Confirmed |
Changed in unity-scopes-shell (Ubuntu RTM): | |
status: | New → Confirmed |
Changed in unity8 (Ubuntu): | |
status: | New → Confirmed |
Changed in unity8 (Ubuntu RTM): | |
status: | New → Confirmed |
Changed in unity-scopes-shell (Ubuntu RTM): | |
importance: | Undecided → Critical |
assignee: | nobody → Pete Woods (pete-woods) |
Changed in unity8 (Ubuntu): | |
importance: | Undecided → Critical |
assignee: | nobody → Pete Woods (pete-woods) |
Changed in unity8 (Ubuntu RTM): | |
importance: | Undecided → Critical |
assignee: | nobody → Pete Woods (pete-woods) |
status: | Confirmed → In Progress |
Changed in unity8 (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in unity-scopes-shell (Ubuntu RTM): | |
status: | Confirmed → In Progress |
Changed in unity-scopes-shell (Ubuntu): | |
status: | Confirmed → In Progress |
tags: | added: vivid |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Released |
From looking at the unity-scopes-shell code for the location provider, it seems like there is no direct correlation with the client request and the active location lookup service side. The request seems to be continuous and always on, is this is so, then we have a problem as this means the GPS hardware is active and signalling even though the user is not interested in location data at the moment.