[4.1.0.24] Gps icon continues to appear after disabling location

REPRODUCIBILITY (% or how often): 100%

BUILD ID = OS VERSION (Settings > About product): 4.1.0.24
HARDWARE (XA2, Xperia 10…): Xperia XA2
UI LANGUAGE: Spanish
REGRESSION: (compared to previous public release: Yes, No, ?): I think this issue happened to me since I updated SailfishOS to 4.1.0

DESCRIPTION:

Gps icon continues to appear after disabling location whenever I use an app with gps. It doesn’t matter if the app is android or native

PRECONDITIONS:

no

STEPS TO REPRODUCE:

  1. Enable location
  2. Open gps app (for example, PureMaps)
  3. Gps icon appears in top bar
  4. Close gps app
  5. Disable location
  6. Gps icon is still in top bar

EXPECTED RESULT:

Gps icon souldn’t appear in top bar after disabling location

ACTUAL RESULT:

Gps icon continues to appear after disabling location

ADDITIONAL INFORMATION:

Worked for me on Xperia 10 II/4.1.0.24 by closing the map app. This made the GNSS icon disappear.

Is there way to see status gps or disable it from terminal? I have this issue since I updated to 4.1, maybe something went wrong during the update

Try gpstoggle openrepos.

gpstoggle --help
SailfishKeyProvider_ini_read_multiple: reached end of file
SailfishKeyProvider_ini_read_multiple: reached end of file
SailfishKeyProvider_ini_read_multiple: reached end of file
SailfishKeyProvider_ini_read_multiple: reached end of file
SailfishKeyProvider_ini_read_multiple: reached end of file
SailfishKeyProvider_ini_read_multiple: reached end of file

gpstoggle v0.0.1 by halftux

Options:
--------
  [--help] help output
  [location=0] toggle location permission 0/1
  [power=0] toggle gps chip power 0/1
1 Like

Ok, I think I know what the problem was. A geoclue process was running and it didn’t close when I turned off gps toggle. Since I closed this process manually, this issue disappared. Anyway I don’t understand why a restart of my phone wasn’t enough to solve it. At the moment, everything seems to work fine.
@amaretzek, thank you for your answer, it is good to know that tool to manage gps toggle from Terminal.

1 Like