Ubuntu 22.04:关机有时会延迟

Ubuntu 22.04:关机有时会延迟
Kernel: 6.2.0-26-generic x86_64 bits: 64 Desktop: GNOME 42.9
    Distro: Ubuntu 22.04.3 LTS (Jammy Jellyfish)

我通过按下电源按钮关闭系统。由于我禁用了“确认提示”,它通常会立即关闭。但有时会显示关机提示,并且关机会延迟,直到达到 30 秒超时。

查看日志后,问题似乎与“Client19”未回复有关。

Aug 10 01:55:31 p-Desktop-R7 gnome-shell[2301]: endSessionDialog: No XDG_SESSION_ID, fetched from logind: 2
Aug 10 01:55:31 p-Desktop-R7 systemd[1]: unattended-upgrades.service: Deactivated successfully.
Aug 10 01:55:31 p-Desktop-R7 at-spi2-registr[2425]: Unable to register client with session manager
Aug 10 01:55:31 p-Desktop-R7 at-spi2-registr[2425]: Failed to register client: GDBus.Error:org.gnome.SessionManager.AlreadyRegistered: Unable to register client
Aug 10 01:55:31 p-Desktop-R7 gnome-session-binary[2270]: Entering running state
Aug 10 01:55:31 p-Desktop-R7 gnome-session-binary[2270]: WARNING: Failed to get delay inhibitor: GDBus.Error:org.freedesktop.login1.OperationInProgress: The operation inhibition has been requested for is already running
Aug 10 01:55:31 p-Desktop-R7 gnome-session[2270]: gnome-session-binary[2270]: WARNING: Failed to get delay inhibitor: GDBus.Error:org.freedesktop.login1.OperationInProgress: The operation inhibition has been requested for is already running
Aug 10 01:55:31 p-Desktop-R7 gnome-shell[2301]: endSessionDialog: No XDG_SESSION_ID, fetched from logind: 2
Aug 10 01:55:31 p-Desktop-R7 gnome-session-binary[2270]: WARNING: Client '/org/gnome/SessionManager/Client19' failed to reply before timeout
Aug 10 01:55:31 p-Desktop-R7 gnome-session[2270]: gnome-session-binary[2270]: WARNING: Client '/org/gnome/SessionManager/Client19' failed to reply before timeout
Aug 10 01:55:30 p-Desktop-R7 systemd-logind[918]: Power key pressed.

检查 client19 的进程 ID 显示:

/usr/libexec/xdg-desktop-portal-gtk

我该如何解决这个问题?您需要更多信息吗?

相关内容