[Bug 1934981] Re: systemctl suspend-then-hibernate attempts hybrid-sleep instead
Launchpad Bug Tracker
1934981 at bugs.launchpad.net
Wed Sep 15 03:23:41 UTC 2021
This bug was fixed in the package systemd - 237-3ubuntu10.52
---------------
systemd (237-3ubuntu10.52) bionic; urgency=medium
* d/extra/dhclient-enter-resolved-hook:
Reset start limit counter for systemd-resolved in dhclient hook
(LP: #1939255)
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=ea6710476dde78e8595274c3c4ba7acca6d5162c
* d/p/lp1934147/0001-core-add-a-new-unit-method-catchup.patch,
d/p/lp1934147/0002-cgroup-do-catchup-for-unit-cgroup-inotify-watch-file.patch,
d/p/lp1934147/0003-core-Make-sure-cgroup_oom_queue-is-flushed-on-manage.patch:
Catch up on cgroup empty inotify after reexec/reload (LP: #1934147)
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=5ef61bd930612a90ce3ed9105cbadc5ff97b6ffc
* d/p/lp1934981-correct-suspend-then-sleep-string.patch:
Fix sleep verb used by logind during suspend-then-hibernate
(LP: #1934981)
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=1ade873a41ad018a5e07f10775738c6eb8c82310
* d/extra/dhclient-enter-resolved-hook:
Check is-enabled systemd-resolved in dhclient hook (LP: #1853164)
https://git.launchpad.net/~ubuntu-core-dev/ubuntu/+source/systemd/commit/?id=774c2f82a39a88fa0fd8b2adbfa0b8a8c3cd1fb5
-- Dan Streetman <ddstreet at canonical.com> Thu, 26 Aug 2021 10:20:40
-0400
** Changed in: systemd (Ubuntu Bionic)
Status: Fix Committed => Fix Released
** Changed in: systemd (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
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/1934981
Title:
systemctl suspend-then-hibernate attempts hybrid-sleep instead
Status in systemd package in Ubuntu:
Fix Committed
Status in systemd source package in Bionic:
Fix Released
Status in systemd source package in Focal:
Fix Released
Status in systemd source package in Groovy:
Won't Fix
Status in systemd source package in Hirsute:
Fix Released
Status in systemd source package in Impish:
Fix Committed
Bug description:
[impact]
suspend-then-hibernate not possible using systemctl
[test case]
configure a system (that has enough swap to be able to hibernate) to
allow suspend-then-hibernate but not hybrid-sleep, e.g. by editing
/etc/systemd/sleep.conf to set AllowSuspendThenHibernate=yes and
AllowHybridSleep=no, then try it:
$ sudo systemctl suspend-then-hibernate
Failed to suspend system, hibernate later via logind: Sleep verb "hybrid-sleep" not supported
note that on bionic, the Allow...= params do not exist, instead we can
reproduce the error by setting one of the hybrid parameters to an
invalid value, e.g. HybridSleepState=bugverification
[regression potential]
failure to correctly enter hybrid-sleep and/or suspend-then-hibernate,
or other issues around suspending/hibernating
[scope]
This is needed in b and later.
The bug appears to have been introduced by a typo in the original
suspend-then-hibernate commit c58493c00af, and then fixed with larger
changes in commit c8cd8ca3986.
this is also present in b, by a backport of the functionality
[other info]
note that if hybrid-sleep is allowed/possible, then calling 'systemctl
suspend-then-hibernate' does actually perform suspend-then-hibernate;
this typo only controls what suspend action logind checks for support
of, not what suspend action it actually performs.
[original description]
```
systemctl suspend-then-hibernate
Failed to suspend system, hibernate later via logind: Sleep verb "hybrid-sleep" not supported
```
Note the verb change!
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: systemd 247.3-3ubuntu3
ProcVersionSignature: Ubuntu 5.11.0-22.23-generic 5.11.21
Uname: Linux 5.11.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu65.1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Jul 8 08:54:01 2021
InstallationDate: Installed on 2021-07-06 (1 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
MachineType: Dell Inc. XPS 13 9300
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.11.0-22-generic root=/dev/mapper/username-root ro quiet splash vt.handoff=7
SourcePackage: systemd
SystemdDelta:
[EXTENDED] /usr/lib/systemd/system/rc-local.service → /usr/lib/systemd/system/rc-local.service.d/debian.conf
[EXTENDED] /usr/lib/systemd/system/systemd-localed.service → /usr/lib/systemd/system/systemd-localed.service.d/locale-gen.conf
[EXTENDED] /usr/lib/systemd/system/user at .service → /usr/lib/systemd/system/user at .service.d/timeout.conf
3 overridden configuration files found.
SystemdFailedUnits:
Error: command ['systemctl', 'status', '--full', '●'] failed with exit code 4: Invalid unit name "●" escaped as "\xe2\x97\x8f" (maybe you should use systemd-escape?).
Unit \xe2\x97\x8f.service could not be found.
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 02/03/2021
dmi.bios.release: 1.5
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.5.0
dmi.board.name: 0PP9G2
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.5.0:bd02/03/2021:br1.5:svnDellInc.:pnXPS139300:pvr:rvnDellInc.:rn0PP9G2:rvrA00:cvnDellInc.:ct10:cvr:
dmi.product.family: XPS
dmi.product.name: XPS 13 9300
dmi.product.sku: 096D
dmi.sys.vendor: Dell Inc.
mtime.conffile..etc.systemd.sleep.conf: 2021-07-08T08:51:57.213321
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1934981/+subscriptions
More information about the foundations-bugs
mailing list