In case someone else is wondering, suspend is done automatically after 5 minutes to save battery (at least on Mobian with Phosh on the PinePhone).
Before going to suspend, the led should be blinking blue.
Note that it is recommended to disable suspend when upgrading the system and it can be done by adding the following in .bashrc (https://wiki.debian.org/Mobian/Tweaks#Suspend.2FSleep):
To see if the alias works, you can use a command like "sudo journalctl -f" and check if the device is not going to sleep after 5 minutes with a command like "while true; do date; sleep 1; done" that should execute the command every seconds even when the device is locked.
The default alarm app gnome-clocks does not wake up from suspend but there is another one (currently limited to one alarm): https://gitlab.gnome.org/kailueke/wake-mobile
If you want to use gnome-clocks, someone also made a script to run after setting a new alarm so it will wake the phone from suspend (https://gitlab.com/mobian1/issues/-/issu..._547667815):
https://git.launchpad.net/debinst/tree/mobian/clks.sh (which depends on https://git.launchpad.net/debinst/tree/mobian/clks.py)
Before going to suspend, the led should be blinking blue.
Note that it is recommended to disable suspend when upgrading the system and it can be done by adding the following in .bashrc (https://wiki.debian.org/Mobian/Tweaks#Suspend.2FSleep):
Code:
alias sudo='gnome-session-inhibit --inhibit suspend sudo'
To see if the alias works, you can use a command like "sudo journalctl -f" and check if the device is not going to sleep after 5 minutes with a command like "while true; do date; sleep 1; done" that should execute the command every seconds even when the device is locked.
The default alarm app gnome-clocks does not wake up from suspend but there is another one (currently limited to one alarm): https://gitlab.gnome.org/kailueke/wake-mobile
If you want to use gnome-clocks, someone also made a script to run after setting a new alarm so it will wake the phone from suspend (https://gitlab.com/mobian1/issues/-/issu..._547667815):
https://git.launchpad.net/debinst/tree/mobian/clks.sh (which depends on https://git.launchpad.net/debinst/tree/mobian/clks.py)