pgpilot forum / Help

Pgpilot goes into sleep

Jochen, 2026-11-09

Two hours into the flight, the phone locked and Pgpilot stopped recording. What could that be?
I already set the app settings/battery to unrestricted.
Android, S24 Ultra.

pgpilot, 2026-11-12

@Jochen we went through your flights from 8 and 9 Nov. The good news: pgpilot did not stop recording. Both flights are saved all the way from takeoff to landing, with no gaps. Only the screen went off.

What we could not find is why the screen went off. pgpilot asks Android to keep the screen on while the flight view is open, so a normal screen timeout should not do it. Both times the app went to the background at the same moment the screen turned off, as if the phone was locked. Things worth ruling out:

  • the power button getting pressed in the harness or cockpit
  • Samsung's Power saving mode, which was on during your 9 Nov flight

If it happens again, note roughly when, and we will dig through that flight.

Jochen, 2026-11-12

Hi Simen,
If you look at the map of 8th and 9th it shows erratic jumps of location, these are only recorded in PGpilot, supposedly due to the screen lock.
Compare with the actual XCT tracks on xcontest (JoFly), they show the full flight.
Question is why pgpilot is not resistent to screen lock, I don't have these issues with xctrack, even if the android battery saver is activated. Somehow android doesn't respect the unrestricted battery setting for pgpilot?

Simen, 2026-11-15

hm yes. I investigated a bit further, and it seems Android explicitly turns off location when apps are in background in power save mode. Ive seen some hacks like turning on screen etc, but I do not think that is a viable path going down. Connecting an external vario with gps might work better, but my recommendation is not to use power save mode while flying. Not sure if xctrack does this differently, but I am a bit weary to challenging the operative systems engineer to battle 😅

Jochen, 2026-11-15

Hmm, XCtrack seemingly does something different. I usually keep battery saver on to avoid drain from other apps, and just give unrestricted battery to those apps needed.

"Connecting an external vario with gps might work better" Not sure what you mean here, I've been using it with XCT Maxx II.

Anyhow, great app, I will continue to test and hope you can find this bug at some point.

Simen, 2026-11-15

hm yeah i dunno right now but I will keep it in mind!

Simen, 2026-11-18

used the Strava app in battery saver modus yesterday, and it has a warning saying location in background doesnt work, so I guess this is not a bug but a feature from Android OS.