You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 23.10下Hibernate功能正常但Suspend-then-hibernate无法启用的问题咨询

Ubuntu 23.10下Hibernate功能正常但Suspend-then-hibernate无法启用的问题咨询

我在Ubuntu 23.10系统里执行 systemctl suspend-then-hibernate 时,遇到了这样的错误提示:

Call to SuspendThenHibernate failed: Sleep verb "suspend-then-hibernate" not supported

但单独执行 systemctl hibernate 却完全正常,和预期的一样。

我已经创建了 /etc/systemd/sleep.conf.d/sleep_overrides.conf 文件,配置内容如下:

[Sleep]
AllowSuspend=
AllowSuspend=yes
AllowHibernation=
AllowHibernation=yes
AllowSuspendThenHibernate=
AllowSuspendThenHibernate=yes
AllowHybridSleep=
AllowHybridSleep=yes
SuspendMode=
#SuspendMode=hybrid-sleep
SuspendMode=suspend-then-hibernate
HibernateDelaySec=
HibernateDelaySec=25min
SuspendEstimationSec=
SuspendEstimationSec=30min

另外,系统默认的 /etc/systemd/sleep.conf 文件我没有修改过,原始内容如下:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it under the
#  terms of the GNU Lesser General Public License as published by the Free
#  Software Foundation; either version 2.1 of the License, or (at your option)
#  any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file, or by creating "drop-ins" in
# the sleep.conf.d/ subdirectory. The latter is generally recommended.
# Defaults can be restored by simply deleting this file and all drop-ins.
#
# See systemd-sleep.conf(5) for details.

[Sleep]
#AllowSuspend=yes
#AllowHibernation=yes
#AllowSuspendThenHibernate=yes
#AllowHybridSleep=yes
#SuspendMode=
#SuspendState=mem standby freeze
#HibernateMode=platform shutdown
#HibernateState=disk
#HybridSleepMode=suspend platform shutdown
#HybridSleepState=disk
#HibernateDelaySec=
#SuspendEstimationSec=60min

想请教一下,是不是还有什么配置项需要添加或者调整,才能让suspend-then-hibernate功能正常启用?

备注:内容来源于stack exchange,提问作者Difference Gradient

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 13:33:09