COllaborative DEcision MAking (codema.in)

Wake up phone from suspend when alarm is set

Pirate Praveen PublicSeen by 11

Clock can show an alarm only if the phone is not in suspend and battery life is very small if we don't suspend the phone. So we should be able to wake up the phone when an alarm is set. The necessary work is already done in systemd and we just need to wire this up in gnome clocks.

Pirate Praveen

I have tested @Guido 's MR for gnome clocks and uploaded a gnome clock build for trixie at https://people.debian.org/~praveen/mobian/ You just need to install gnome-clocks from my repo and run sudo setcap 'cap_wake_alarm=ep' /usr/bin/gnome-clocks and alarm can wake up the phone from suspend! This is a huge leap in usability as I was depending on FLX1 for alarms till now, I can now use Librem 5 to wake me up as well.

Guido

And this is the branch with the needed changes: https://gitlab.gnome.org/guidog/gnome-clocks/-/tree/phosh

I'll update this to not require any `setcap` once I've pushed out the new mobile as I can then drop the postinst (as we don't need setcap anymore) and we also don't need to vendor gmobile anymore.