问题针对所有暂停/重启/关机,但描述和日志仅针对最后一次暂停。
我无法暂停系统。我暂停了systemctl suspend
系统,显示器关闭了,但 CPU 仍在运行。然后我无法再次恢复系统,只能强制关机。nvidia535 和 nouveau 驱动程序都出现过这种情况。
来自 gnome-logs 的重要日志
Jan 17 8:35:03 PM systemd-sleep: Failed to lock home directories: Unknown object '/org/freedesktop/home1'.
Jan 17 4:22:48 PM kernel: usb 1-8: 3:1: cannot get freq at ep 0x84
Jan 17 4:22:47 PM rtkit-daemon: dbus_message_get_unix_user() failed: The connection does not exist
Jan 17 4:22:45 PM sddm-helper: gkr-pam: unable to locate daemon control file
Jan 17 4:22:29 PM kernel: usb 1-8: 3:1: cannot get freq at ep 0x84
Jan 17 4:22:29 PM kernel:
Jan 17 4:22:26 PM kernel: x86/cpu: SGX disabled by BIOS.
所有日志
Jan 17 8:35:03 PM kernel: PM: suspend entry (deep)
Jan 17 8:35:03 PM systemd-sleep: Performing sleep operation 'suspend'...
Jan 17 8:35:03 PM systemd-sleep: Performing sleep operation 'suspend'...
Jan 17 8:35:03 PM systemd-sleep: Failed to lock home directories: Unknown object '/org/freedesktop/home1'.
Jan 17 8:35:03 PM systemd: Starting System Suspend...
Jan 17 8:35:03 PM systemd: Starting System Suspend...
Jan 17 8:35:03 PM systemd: Reached target Sleep.
Jan 17 8:35:03 PM kernel: r8169 0000:03:00.0 enp3s0: Link is Down
Jan 17 8:35:03 PM NetworkManager: <info> [1705503903.5217] device (enp3s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
Jan 17 8:35:03 PM systemd: Started Network Manager Script Dispatcher Service.
Jan 17 8:35:03 PM NetworkManager: <info> [1705503903.2005] device (enp3s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
Jan 17 8:35:03 PM systemd-logind: The system will suspend now!
Jan 17 8:35:02 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 7:54:02 PM systemd: systemd-hostnamed.service: Deactivated successfully.
Jan 17 7:54:00 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 7:53:32 PM systemd: Started Hostname Service.
Jan 17 7:53:30 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 7:13:01 PM kernel: perf: interrupt took too long (3144 > 3136), lowering kernel.perf_event_max_sample_rate to 63600
Jan 17 7:12:52 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 6:18:38 PM kernel: perf: interrupt took too long (2509 > 2500), lowering kernel.perf_event_max_sample_rate to 79500
Jan 17 6:18:08 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 4:37:30 PM systemd: Finished Cleanup of Temporary Directories.
Jan 17 4:37:30 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 4:34:20 PM systemd: systemd-hostnamed.service: Deactivated successfully.
Jan 17 4:34:09 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 4:33:51 PM dbus-broker-lau: Activation request for 'org.freedesktop.Avahi' failed: The systemd unit 'dbus-org.freedesktop.Avahi.service' could not be found.
Jan 17 4:33:50 PM systemd: Started Hostname Service.
Jan 17 4:33:39 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 4:33:14 PM systemd: Started User preferences database.
Jan 17 4:33:14 PM udisksd: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jan 17 4:33:14 PM systemd: Started Disk Manager.
Jan 17 4:33:14 PM udisksd: udisks daemon version 2.10.1 starting
Jan 17 4:33:14 PM systemd: Starting Disk Manager...
Jan 17 4:32:59 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 4:24:29 PM systemd: Started PipeWire PulseAudio.
Jan 17 4:24:28 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 4:23:03 PM systemd: systemd-hostnamed.service: Deactivated successfully.
Jan 17 4:23:00 PM systemd-timesyn: Initial clock synchronization to Wed 2024-01-17 16:23:00.753279 IST.
Jan 17 4:22:57 PM rtkit-daemon: Failed to look up client: No such file or directory
Jan 17 4:22:56 PM systemd: Started Daemon for power management.
Jan 17 4:22:55 PM (sd-pam): pam_warn(systemd-user:setcred): function=[pam_sm_setcred] flags=0x8004 service=[systemd-user] terminal=[] user=[sddm] ruser=[<unknown>] rhost=[<unknown>]
Jan 17 4:22:55 PM systemd: Started Portal service.
Jan 17 4:22:55 PM xdg-desktop-por: No skeleton to export
Jan 17 4:22:55 PM rtkit-daemon: Supervising 4 threads of 2 processes of 1 users.
Jan 17 4:22:55 PM systemd: Reached target Exit the Session.
Jan 17 4:22:55 PM dbus-broker: Dispatched 172 messages @ 2(±8)μs / message.
Jan 17 4:22:55 PM systemd: Closed PipeWire Multimedia System Sockets.
Jan 17 4:22:55 PM gnome-keyring-d: asked to register item /org/freedesktop/secrets/collection/login/2, but it's already registered
Jan 17 4:22:55 PM systemd: Starting Portal service...
Jan 17 4:22:48 PM wireplumber: <WpPortalPermissionStorePlugin:0x60a632f0af20> Failed to call Lookup: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for camera
Jan 17 4:22:48 PM systemd: Started sandboxed app permission store.
Jan 17 4:22:48 PM pipewire: [0:00:23.411006570] [662] [1;32m INFO [1;37mCamera [1;34mcamera_manager.cpp:284 [0mlibcamera v0.1.0
Jan 17 4:22:48 PM kernel: usb 1-8: 3:1: cannot get freq at ep 0x84
Jan 17 4:22:48 PM at-spi2-registr: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Jan 17 4:22:48 PM systemd: Started dbus-:[email protected].
答案1
根据我对 Kernel.org 文档的理解,暂停并不意味着“CPU 停止执行任何工作”。“处理器……大部分时间处于空闲状态”。虽然这可能只是“意味着电源正在轻微地供应给 CPU,但甚至连低级代码都没有被执行”。还值得阅读不同类型的挂起状态的描述,确定您正在进入哪一种状态,并尝试确定这是否可能是导致问题的原因?
另外,值得一看的是,您是否可能误判 CPU 正在运行。您究竟是如何检查这一点的?这是否与我遗漏的日志有关?
作为另一种调试方法,请查看此线,可能是您的sleep.conf
文件(如果存在)配置不正确,导致发送了一些/sys/power/state
不应该发送的内容。