← Back to team overview

touch-packages team mailing list archive

[Bug 1422879] Re: GPS stays active after location data is used by a scope (even after not not using the scopes anymore)

 

I just put together a branch for unity-scopes-shell that logs when GPS
updates from the location service are being enabled and disabled:

lp:~unity-api-team/unity-scopes-shell/log-when-updating-location

Trying this on my device produces the expected behaviour, i.e.:

* When looking at a scope that requires location, it enables location updates.
* When you move away from that scope, location updates stay enabled for a 5 second timeout (in order that the GPS isn't rapidly turned on and off as you browse through scopes).

To be clear, the location "session" remains active all the time, we just
toggle the "updates" property. This is the (I believe correct) way tvoß
explained to use the location service to me.

Log output:
Enabling location updates
Disabling location updates
Enabling location updates
Disabling location updates
Enabling location updates
Disabling location updates

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to location-service in
Ubuntu.
https://bugs.launchpad.net/bugs/1422879

Title:
  GPS stays active after location data is used by a scope (even after
  not not using the scopes anymore)

Status in the base for Ubuntu mobile products:
  Confirmed
Status in location-service package in Ubuntu:
  New
Status in unity-scopes-api package in Ubuntu RTM:
  New

Bug description:
  phablet@ubuntu-phablet:~$ system-image-cli -i
  current build number: 237
  device name: krillin
  channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
  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).

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1422879/+subscriptions


References