User:Arnavion/shutdown-clear-rtc-wakealarm

Some devices with an RTC wake alarm automatically turn on from powered-off state when they reach the alarm time. This includes, but may not be limited to, the PINE64 PinePhone. Some users may find this undesirable, especially if they use full disk encryption since the phone will power on to the osk-sdl screen and just stay there until the battery runs out.

The  package contains an OpenRC service that clears the RTC wake alarm. It can be enabled to run in the  runlevel with:

Note that this service does not automatically restore the cleared wakealarm upon a reboot. It is expected that whatever set the wakealarm originally will restore it. The wakealarm is known to be restored by:

-  + , the combination used by Phosh.