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
signature.asc
Description: This is a digitally signed message part
-- Mailing list: https://launchpad.net/~ubuntu-phone Post to : ubuntu-phone@lists.launchpad.net Unsubscribe : https://launchpad.net/~ubuntu-phone More help : https://help.launchpad.net/ListHelp