[Bug 1862797] Re: Systemd does not allow hibernation when Chrome/chromium is running
Ewald Comhaire
1862797 at bugs.launchpad.net
Sun Mar 15 11:01:15 UTC 2020
Hello Dan,
Thanks for following up!
To be 100% sure (and not wasting developer cycles), I reinstalled my system with Linux Mint 19.1. I had modified (too) many files trying to solve the problem, so better start clean. The problem was 100% reproducible as per my previous messages.
Then I upgraded to version of 19.3 + kernel 5.3.40 and with the upgrade came newer versions of Chromium/systemd as indicated.
For the last three days I tried desperately to replicate the problem but did not succeed.
Only in one instance with 126 open tabs, hibernation failed twice in a row (CanHibernate returned s "yes"), but after a (successful) standby operation, hibernation started to succeed repeatedly. That is a single failure in literally hundreds of attempts, which could very well have been a HW/Bios issue to go in deep standby for S5.
Fortunately I was able to automated the testing process using session
buddy advanced restore, so all I had to do was watch :-). Also
switching between Linux hibernation and Windows 10 hibernation always
succeeded.
The hibernation speed seemed also to have improved, but I have no hard
data to illustrate this.
I am happy to report that with:
Kernel 5.3.0.28 --> 5.3.0.40
Chromium 79.0.3945 --> 80.0.3987
Systemd 237-3ubuntu10.38 --> 237-3ubuntu10.39
the problem is SOLVED.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1862797
Title:
Systemd does not allow hibernation when Chrome/chromium is running
Status in systemd package in Ubuntu:
Incomplete
Bug description:
1/ Linux Mint 19.3/Ubuntu Bionic 18.04 LTS
2/ systemd: Installed: 237-3ubuntu10.38
3/ & 4/ Problem: hibernation stops working as soon as you start Chromium
Steps to reproduce
$ busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager CanSuspend
s "yes"
$ busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager CanHibernate
s "yes"
start chromium
$ busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager CanHibernate
s "na"
$ sudo systemctl hibernate
Failed to hibernate system via logind: Sleep verb not supported
When this happens Cinnamon/Gnome no longer show hibernate buttons of
course.
$ systemd-inhibit --list
Who: ecotech (UID 1000/ecotech, PID 1607/csd-media-keys)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: Cinnamon handling keypresses
Mode: block
Who: ModemManager (UID 0/root, PID 996/ModemManager)
What: sleep
Why: ModemManager needs to reset devices
Mode: delay
Who: ecotech (UID 1000/ecotech, PID 1656/csd-power)
What: sleep
Why: Cinnamon needs to lock the screen
Mode: delay
Who: ecotech (UID 1000/ecotech, PID 1656/csd-power)
What: handle-lid-switch
Why: Multiple displays attached
Mode: block
Who: NetworkManager (UID 0/root, PID 1012/NetworkManager)
What: sleep
Why: NetworkManager needs to turn off networks
Mode: delay
Who: UPower (UID 0/root, PID 1279/upowerd)
What: sleep
Why: Pause device polling
Mode: delay
Systemd-inhibit does not mention anything Chrome/Chromium related
Stop Chromium and hibernation works again.
Similar issues found:
https://bugzilla.redhat.com/show_bug.cgi?id=1346908
$ cat /sys/power/state
freeze mem disk
$ cat /sys/power/disk
[platform] shutdown reboot suspend test_resume
Tried logind.conf default (all commented out) and below. No difference.
$ cat /etc/systemd/logind.conf
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
Can also not file a bug @ https://github.com/systemd/system since my version is more than 2 versions older than the last version (2.44.1).
Thanks in advance
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1862797/+subscriptions
More information about the foundations-bugs
mailing list