Author Topic: Recording stops when screen is off - problem  (Read 2238 times)

Offline UKlocusfan

  • More than Newbie
  • *
  • Posts: 87
    • View Profile
Recording stops when screen is off - problem
« on: January 16, 2016, 19:21:53 »
Sorry if I'm missing something simple,  but I walked and recorded my track today but was gutted to discover that Locus stopped logging and acquiring a GPS lock when the screen was off / sleeping / locked.
This meant turning on the screen got a new lock which drew a straight line between that and the previous lock which was obviously incredibly inaccurate to what I'd  walked.
I'm using the presets walking profile to log but just can't figure out why this is happening.

I'd appreciate anyone giving some advice please as I feel I've overlooked something.
Thanks in  advance
 

Offline michaelbechtold

  • Master of Locus
  • ****
  • Posts: 631
  • Thanked: 48 times
    • View Profile
Re: Recording stops when screen is off - problem
« Reply #1 on: January 17, 2016, 07:06:01 »
Have you configured Locus to run as a service?  Otherwise Android easily may remove Locus from the active tasks. Also allow Locus to prevent screen lock. Even if Locus was not in the foreground, it always continued logging GPS status for 100s of tracks for me.
In addition there are system tools outside Locus that may be configured to switch off automatically things like mobile data, WiFi and more ...

Gesendet von meinem SM-N9005 mit Tapatalk

 

Offline KaHeMu

  • Apprentice of Locus
  • **
  • Posts: 245
    • View Profile
    • Kurs 335 Grad
  • Device: Samsung Tab 10.1, Huawei Y625
Re: Recording stops when screen is off - problem
« Reply #2 on: January 17, 2016, 08:21:28 »
Maybe you'll do a look here:
http://docs.locusmap.eu/doku.php?id=manual:user_guide:settings:gps
Looking for 'Disable when hidden'.
Zufall ist, wenn das Schicksal eine Maske aufsetzt, um nicht erkannt zu werden.  (Wepper)
 

Offline UKlocusfan

  • More than Newbie
  • *
  • Posts: 87
    • View Profile
Re: Recording stops when screen is off - problem
« Reply #3 on: January 17, 2016, 12:29:23 »
Thanks for much michaelbechtold and KaHeMu

Locus is already running as a service but I don't want to set Locus to prevent screen lock as when out and about the screen lock pin is an important security issue.
When you mention system tools outside of Locus michaelbechtold I'm a little confused sorry.

Hey KaHeMu, the disable when hidden is already unticked.  I'm presuming this is the correct option as I dont want the GPS to disable at all, only when I terminate it manually myself.  So yes, I have the 'disable when hidden' unticked.

Any other ideas please although I'm gonna go out for a walk later and test it all again.

Thanks so much.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11793
  • Thanked: 417 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Recording stops when screen is off - problem
« Reply #4 on: January 17, 2016, 12:45:51 »
I'm worried that this issue is not on Locus side. There already exists many similar topics and none has some universal solution.

Track recording service in Locus already run as a system service, so in this case, "Locus as a service" has minimal effect.

What is important is, that if you later turn on screen, Locus is still running or you see small loading dialog (and usually recording is paused). Because if Locus is running, that it means that system disable GPS when screen is turned off. On Android 6.0+ are some "battery saving" options in battery screen so check it. If Locus is starting from scratch, then system probably terminated it so it is a problem of system or any 3rd party app that tries to free some memory.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline UKlocusfan

  • More than Newbie
  • *
  • Posts: 87
    • View Profile
Re: Recording stops when screen is off - problem
« Reply #5 on: January 17, 2016, 13:03:52 »
I have to agree thanks menion.
I am running android 5.0 on a Hauwei P8 Lite.

So far I've had no Locus crashes so its not a memory issue and the P8 Lite has 2gb RAM anyway.

Locus doesn't reload or come up with dialogs when I unlock the screen but instead simply beeps to tell me it has a GPS fix because I've got that notification sound turned on in Locus settings.

Unfortunately there are no extra or detailed setting in the android 5.0 to tell it to keep acquiring GPS fix, just the usual 3 options of battery saving, high accuracy and GPS only.  I had considered testing using just the GPS only setting in android but this makes initial fixes difficult as it ignores A-GPS.

I use Locus to navigate in the car and all is superb (as usual :)) so it seems to be something linked into when the screen is asleep.

Now....
My phone does a crazy thing I'm not keen on.  It seems to (by default) cancel and terminate apps as soon as the phone locks.  This means that (for example) reminder apps don't remind me etc etc but there is a section in the settings called 'protected apps'.  I select apps in there and that means the phone wont touch them and certainly wont kill them.  I have Locus selected as a protected app and as I said eariler, Locus is still running fine when the screen is locked... its just this GPS logging that seems to be the problem. 

There is no problem with GPS fixes because as soon as I unlock the phone it has an instant fix so please don't think its just a case that I can't get a GPS fix.

I'm really really confused by all this and its making my favourite app of all time unusable for me at the moment and I'll try anything to figure out whats going wrong.

Thanks everyone :)
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11793
  • Thanked: 417 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Recording stops when screen is off - problem
« Reply #6 on: January 17, 2016, 13:21:01 »
Did you tried different application? Google Maps, GPS Status? (two quite common apps for testing).
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline UKlocusfan

  • More than Newbie
  • *
  • Posts: 87
    • View Profile
Re: Recording stops when screen is off - problem
« Reply #7 on: January 17, 2016, 13:30:06 »
Thanks Menion.
Google Maps works completely fine - but then again the screen is always on when I use it.
I've never heard of GPS Status but I'll look into it although I do use GPS Test and that seems fine too.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11793
  • Thanked: 417 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Recording stops when screen is off - problem
« Reply #8 on: January 20, 2016, 14:03:32 »
Locus will probably also works fine till screen is turned on. What I wanted from you, is a quick test with different application that require GPS and that may run on background. Or for example My Tracks app from Google is good testing application to test track recording also in different application. Thanks.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!