Wake up phone from suspend when alarm is set

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 Sun 20 Apr 2025 1:26PM
@Guido has opened an MR for this https://gitlab.gnome.org/GNOME/gnome-clocks/-/merge_requests/344

Pirate Praveen Tue 6 May 2025 4:06PM
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 Tue 6 May 2025 4:08PM
The phosh nightly repos have a working gnome-clocks with this functionality since some time: https://phosh.mobi/posts/phosh-nightly/

Guido Tue 6 May 2025 4:23PM
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.
Pirate Praveen · Mon 4 Nov 2024 9:14PM
Technical details https://gitlab.gnome.org/GNOME/gnome-clocks/-/issues/100