No description
Find a file
Anjandev Momi a245f46914 screenlock: enable rtc wakeup source
Please apply to the crust feature branch. The rtc wakeup clock is useful cause it allows
users to script programs. If I put my phone into deep sleep, none of the scripts
I put in my cronjob will run.

For example, if I have an alarm script:

https://git.sr.ht/~anjan/sxmo-userscripts/tree/master/alarm.sh

It is supposed to run at 7:00 am but since I put my phone in deep sleep before going to sleep,
the script doesnt play sound to wake me up.

Enabling the rtc wakeup clock enables using programs like rtcwake as a wrapper around
your cronjobs to wake up the phone at a time and excecute the command you put in cron.

For info on how to use rtcwake, see:
https://wiki.postmarketos.org/wiki/Nokia_N900_(nokia-n900)#Setting_the_hardware_alarm_clock

Not sure if we should patch busybox cron to use rtcwake automatically or whether we should
trust the user to use rtcwake properly and document it. However, I am certain that the rtc
wakeup source should be enabled for this usecase.

Signed-off-by: Miles Alan <m@milesalan.com>
2020-07-09 20:51:30 -05:00
configs Delete zipcodes config file - GPS locations is better, and international 2020-07-08 20:46:39 -05:00
programs screenlock: enable rtc wakeup source 2020-07-09 20:51:30 -05:00
scripts Fix loop for sxmo_weather.sh 2020-07-09 18:40:02 -05:00
.gitignore Initial commit 2020-03-15 18:42:35 -05:00
LICENSE Add license 2020-06-19 18:02:09 -05:00
Makefile Add shellcheck task to Makefile 2020-06-07 10:17:14 -05:00
README.md Shellcheck and tabindent all scripts 2020-06-13 20:36:13 -05:00

sxmo-utils

This repository contains scripts and C programs to support Sxmo.

Note all scripts pass shellcheck and are tab-idented.