gpstoggle

Rating: 
5
Your rating: None Average: 5 (2 votes)

GPS toggle for Sailfish. It is a cli tool that can switch on and off the location permission and the power from gps chip.

This is a experimental beta version tested under 3.0.0.8 with Jolla 1&C.

You need to have root rights to run gpstoggle. Without parameters it prints the current status.

Options:

--help

location=0 or location=1 [switch location permission off or on]

power=0 or power=1 [switch gps chip power off or on]

Application versions: 
AttachmentSizeDate
File gpstoggle-0.0.1-1.armv7hl.rpm26.55 KB28/11/2018 - 23:38
Changelog: 

(none)

Comments

starghost's picture

Thank you Halftux, this "gpstoggle" command is very useful. In combination with your "gpscon" command it is possible to locate a sf-phone over ssh-connection even if the gps is not activated. :)

halftux's picture

Yup thats the main reason why I written this tool and nice that some others will use it too.

Because of user rights, possible other use cases and testing purpose it is not yet included in gpscon but I am still thinking of including it. Will see. Probably set the permission settings will be next.

trial's picture

What is the Idea behind this and how is it different to the official toggle?

halftux's picture

I don't know exactly what you mean with official toggle? Is there a tool or only a settings gui?

In principle it is used for console/cron/scripts stuff and to check if the gps chip is really switched off and to have the possibility to switch it easily off. Atm my app can only toggle the use of location and not changing the settings of the location permissions.

Historyscholar's picture

Thank you!