Hi Dan, 
Here we go:

$ free
              total        used        free      shared  buff/cache   available
Mem:       31690904     1853316    27397880     1260984     2439708    28141244
Swap:      35651576           0    35651576

$ cat /proc/swaps
Filename                                Type            Size    Used    Priority
/swapfile                               file            2097148 0       -2
/dev/sda1                               partition       33554428        0       0


So there is plenty of (unused) swap space.

However, today I found out that with the latest SW update the problem
can not be (so easily) reproduced:

Kernel 5.3.0.28 --> 5.3.0.40
Chromium 79.0.3945 --> 80.0.3987
Systemd 237-3ubuntu10.38 --> 237-3ubuntu10.39

For example, the problem does no longer occur after a (forced) reboot
(killing chromium) and letting chrome/chromium do a recovery.  This was
previously absolutely an easy way to reproduce the problem...

$ busctl call org.freedesktop.login1 /org/freedesktop/login1 
org.freedesktop.login1.Manager CanHibernate
s "yes"

So, at the moment it is unclear as from when the problem will start to
occur, that is, if it is not solved by one of these patches.

>From the change logs
(http://changelogs.ubuntu.com/changelogs/pool/main/s/systemd/systemd_237-3ubuntu10.39/changelog,
https://www.ubuntuupdates.org/bugs?package_name=chromium-browse), it's
not obvious what could have fixed this...

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, 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

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to