Automatic system suspend does not trigger unless user input happens
Moved from GNOME/gnome-settings-daemon#641 (closed)
What problem did you encounter
On a device (in this case the PinePhone running Mobian with Phosh+gnome-session) where automatic suspend is configured this only works when user input happened. When the device wakes up without user input, e.g., due to a system timer causing the wakeup or similar, it shows the lockscreen, the screen stays on, it even shows a notification about suspending but it never turns the screen off nor goes to suspend until user input is done once.
How to reproduce
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-type suspend
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-battery-timeout 30
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type suspend
gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 30
and having configured a 1 minute screen poweroff+lock, then running sudo rtcwake -s 120 -m no
and not touching the device, see it suspend, see it wake up, wait for the next suspend without touching the device.
What is the (wrong) result?
it never turns the screen off nor goes to suspend until user input is done once
What is the expected behaviour?
it turns the screen off after the timeout and suspends without user input being done
Context
This is similar to #306 but a different scenario, here the device wakes up from suspend with a locked screen
Which version did you encounter the bug in?
I used the precompiled Debian package (e.g. by running a prebuilt
image). Please paste the output oof dpkg -s phosh
below.
Phosh Version: 0.14.1-1mobian1
How are you running phosh?
Mobile phone (model: PinePhone , operating system version: Mobian unstable )