How to (try to) suspend and how to tell if it was suspended?
#5
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):
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)
  Reply


Messages In This Thread
RE: How to (try to) suspend and how to tell if it was suspended? - by baptx - 06-26-2024, 02:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Camera stops working after resume from suspend jchw 3 1,909 07-30-2024, 05:52 AM
Last Post: DrYak
  Distro with suspend Frost1776 6 5,719 03-10-2022, 04:42 PM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 1 Guest(s)