Battery Drain caused by mysterious GPS usage

Post your questions and help other users.

Moderator: Martin

Post Reply
Stephan
Posts: 3
Joined: 27 Mar 2016 18:07

Battery Drain caused by mysterious GPS usage

Post by Stephan » 28 Mar 2016 17:31

Hi Automagic Community,

I use Automagic since almost 2 years without any issue not caused by a bug within my flows. But now I experience an issue which leaves me a little bit clueless.
Since some weeks I observe a mysterious battery drain caused by Automagic. According to battery stats it seems to use GPS even with location disabled.
I have some flows wich get activated as soon as I attach my phone to my cars power adapter and those become deactivated once I disconnect the phone. This flows are using location/speed based trigger. To save battery the normal state of those flows is DEACTIVATED. When the phone is booted everything seems to be fine until I use the location based flows once. It seems GPS is activated for some time without any reason, but when active according to battery stats it is not indicated as active in the location settings.

Is anyone experiencing a similar issue or has a hint where to look?

My System:
Nexus 4 @ Android 6.0.1 Chroma ROM
Automagic 1.30.0

The attached screenshots are showing the behavior with the phone more or less unused.

Regards Stephan
Attachments
Screenshot_20160328-185256.png
Screenshot_20160328-185256.png (70.33 KiB) Viewed 16187 times
Screenshot_20160328-184353.png
Screenshot_20160328-184353.png (82.98 KiB) Viewed 16187 times
Screenshot_20160328-184341.png
Screenshot_20160328-184341.png (89.51 KiB) Viewed 16187 times

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Battery Drain caused by mysterious GPS usage

Post by Martin » 29 Mar 2016 18:03

Hi,

I've not experienced this issue yet. Does the GPS duration shown in the settings app (3h 54m) match the duration when the Speed-trigger was activated first so it's counting the duration like Automagic never stopped to used GPS? How long was the flow using the speed-trigger active approximately?
Is the location pin shown in the statusbar even when the flow is turned off?

Regards,
Martin

Stephan
Posts: 3
Joined: 27 Mar 2016 18:07

Re: Battery Drain caused by mysterious GPS usage

Post by Stephan » 29 Mar 2016 19:39

Hi Martin,

the GPS duration does not correlate with the time sine the Speed Trigger was activated first, it seems to be just the sum of time of GPS usage. The battery graph shown in the attachment was a period where the GPS was not active intentionally at all.
When used the Speed related flows are active approx. 1h. While the flows are deactivated I never observed the location pin in the status bar, additionally the is no debug log entry created by the deactivated flows. Only in the battery stats or GSAM Battery monitor I can observe increasing time of GPS usage.

Nothing suspect in the monitoring log - sorry my phone is German ;)
GSam Labs - Battery Monitor - Exportiere Daten

Automagic Premium

29.03.2016 9:27:58 nachm.

Nutzung Details

CPU Nutzung:43s
CPU Nutzung (Nur Hintergrund):5s
Aktiv halten:22s
Zahl der Wake Locks:5
Zahl, wie oft das Gerät geweckt wurde:5
GPS:29m 40s
App UID:10054

Wakelock Details

[ExternalSync]18,8s(2)
[WLAN ein (wochentags)]3,7s(1)
AMS onStartCommand0,1s(2)
[Car Flow Control]0,0s(1)
*alarm*0,0s(1)

Einbezogene Pakete

Automagic Premium

Einbezogene Prozesse

ping
*wakelock*
ch.gridvision.ppam.androidautomagic

The flows using GPS are not shown [Car Flow Control] is the one deactivating those flows.

Regards,
Stephan

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Battery Drain caused by mysterious GPS usage

Post by Martin » 30 Mar 2016 18:45

Hi,

This looks strange to me since the 29m reported by GSam does not match the 3h 54m reported in the settings app.
Are you using any other actions that could potentially use GPS in some way (Action Initialisiere Variable Standort, Trigger Standort oder Trigger Benutzeraktivität)?

Freundliche Grüsse
Martin

Stephan
Posts: 3
Joined: 27 Mar 2016 18:07

Re: Battery Drain caused by mysterious GPS usage

Post by Stephan » 01 Apr 2016 17:57

Hi Martin,

the report of GSam is another day, thats why it dosn't match the Setting App.
I just posted it because in this moment the GPS usage was counting up again. All flows active while not in the car are not containing locations based trigger/action, most are time based, one is using the USB connected Trigger and the last is triggered by flow.
If it helps I could send you the flows by PM, but the flows are unchanged since more than a year.

Viele Grüsse
Stephan

Btw: Da außer uns niemand in dem Thema aktiv ist, können wir auch zu Deutsch wechseln.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Battery Drain caused by mysterious GPS usage

Post by Martin » 01 Apr 2016 19:12

Hallo Stephan

Flows können definitiv hilfreich sein. Bitte sende mir wenn möglich das Log und die Flows an info@automagic4android.com (Menü->Verwalten->Log, Menü->Log senden) nachdem das Problem aufgetreten ist.
Nexus 4 habe ich leider nicht mehr, aber ich werde es auf einem Nexus 5 zu reproduzieren versuchen.

Freundliche Grüsse
Martin

Post Reply