ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #19531
Re: using ubuntu-location-serviced-cli from crontab
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 ...
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)...
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
Attachment:
signature.asc
Description: This is a digitally signed message part
Follow ups
References