Public bug reported:

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

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1862797

Title:
  Systemd does not allow hibernation when Chrome/chromium is running

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1862797/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to