ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #19535
Re: using ubuntu-location-serviced-cli from crontab
On 08/04/16 12:58, Oliver Grawert wrote:
hi,
Am Freitag, den 08.04.2016, 12:36 +0100 schrieb Alan Bell:
is it possible to add a crontab line to run ubuntu-location-serviced-cli
with some parameters telling it to wake up the GPS chip every half an
hour or so and get a fix then go back to sleep?
Is there some script that gets called when the screen is unlocked? - a
bit like the lid switch scripts on a laptop in /etc/acpi (there is no
/etc/acpi on the phone)
there is a dbus signal when the screen awakes/suspends ...
OK, that might help if I can subscribe to it from a thing that gets
woken up in time to get the signal.
cron wouldn't help you here as it can not wake up the hardware (it would
be sleeping too if the system is properly suspended), cron only
processes things while the phone is awake (or post-processes them via
anacron)...
this is one sleepy feckless phone.
what you can do is either keep bits of the HW awake constantly or setup
a timer of some kind that interacts directly with the kernel wakelock
mechanism.
ciao
oli
so, running dbus-monitor whilst running unav I see that I am getting
some stuff relating to espoo, which I think is the HERE maps cell tower
location, but it moves about like a GPS would do and sensor status says
it is using GPS
signal sender=:1.0 -> dest=(null destination) serial=42034
path=/com/ubuntu/Upstart; interface=com.ubuntu.Upstart0_6;
member=EventEmitted
string "dbus"
array [
string "SIGNAL=PositionChanged"
string "BUS=system"
string "INTERFACE=com.ubuntu.remote.Service.Provider"
string "OBJPATH=/com/ubuntu/espoo/Service/Provider"
string "SENDER=:1.29"
string "ARG0=51.212583"
string "ARG1=-0.790835"
string "ARG2=TRUE"
string "ARG3=nan"
string "ARG4=TRUE"
string "ARG5=25.000000"
string "ARG6=TRUE"
string "ARG7=nan"
]
nothing at all mentioning the word "location" Did the location services
dbus API get taken over by the espoo thing? Is GPS even turned on here?
Is there any up to date documentation for this stuff?
Follow ups
References