当我尝试将我的电脑(笔记本电脑:华硕 X510UA)置于睡眠状态时,通常它可以正常工作,之后我能够正确唤醒它。但是,有时我会遇到一个奇怪的错误:当我按下睡眠按钮时,屏幕变暗,但电脑仍处于活动状态:电源 LED 亮起,我可以听到风扇旋转的声音。此时,我什么也做不了:一切都冻结了。甚至Alt+Fn+REISUB
似乎什么也没做。重新启动计算机的唯一方法是长按电源按钮。
这种情况已经发生了很长一段时间(甚至在我升级到 Ubuntu 23.04 之前)。
journalctl
以下是juste 睡觉前的部分(我觉得没什么可疑的):
oct. 09 00:18:23 [redacted]-X510UA systemd[1]: Starting systemd-suspend.service - System Suspend...
oct. 09 00:18:23 [redacted]-X510UA systemd[1]: Starting grub-common.service - Record successful boot for GRUB...
oct. 09 00:18:23 [redacted]-X510UA kernel: audit: type=1107 audit(1696803503.718:1357): pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="d>
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:23 [redacted]-X510UA audit[913]: USER_AVC pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path=">
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:23 [redacted]-X510UA systemd[1]: Reached target sleep.target - Sleep.
oct. 09 00:18:23 [redacted]-X510UA kernel: audit: type=1107 audit(1696803503.690:1356): pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="d>
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:23 [redacted]-X510UA audit[913]: USER_AVC pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path=">
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:23 [redacted]-X510UA update-notifier[4191]: gtk_widget_get_scale_factor: assertion 'GTK_IS_WIDGET (widget)' failed
oct. 09 00:18:23 [redacted]-X510UA wpa_supplicant[1013]: nl80211: deinit ifname=wlp2s0 disabled_11b_rates=0
oct. 09 00:18:23 [redacted]-X510UA wpa_supplicant[1013]: wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
oct. 09 00:18:23 [redacted]-X510UA wpa_supplicant[1013]: wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
oct. 09 00:18:22 [redacted]-X510UA kernel: audit: type=1107 audit(1696803502.970:1355): pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="d>
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA wpa_supplicant[1013]: nl80211: deinit ifname=p2p-dev-wlp2s0 disabled_11b_rates=0
oct. 09 00:18:22 [redacted]-X510UA audit[913]: USER_AVC pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path=">
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA wpa_supplicant[1013]: p2p-dev-wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
oct. 09 00:18:22 [redacted]-X510UA wpa_supplicant[1013]: p2p-dev-wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
oct. 09 00:18:22 [redacted]-X510UA vmnet-natd[2372]: RTM_NEWLINK: name:wlp2s0 index:2 flags:0x00001002
oct. 09 00:18:22 [redacted]-X510UA vmnetBridge[2099]: RTM_NEWLINK: name:wlp2s0 index:2 flags:0x00001002
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.9191] device (wlp2s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.9171] device (wlp2s0): supplicant interface state: completed -> disconnected
oct. 09 00:18:22 [redacted]-X510UA kernel: userif-3: sent link up event.
oct. 09 00:18:22 [redacted]-X510UA kernel: userif-3: sent link down event.
oct. 09 00:18:22 [redacted]-X510UA systemd-resolved[840]: wlp2s0: Bus client reset DNS server list.
oct. 09 00:18:22 [redacted]-X510UA avahi-daemon[910]: Interface wlp2s0.IPv4 no longer relevant for mDNS.
oct. 09 00:18:22 [redacted]-X510UA avahi-daemon[910]: Leaving mDNS multicast group on interface wlp2s0.IPv4 with address 10.150.0.64.
oct. 09 00:18:22 [redacted]-X510UA avahi-daemon[910]: Withdrawing address record for 10.150.0.64 on wlp2s0.
oct. 09 00:18:22 [redacted]-X510UA systemd-resolved[840]: wlp2s0: Bus client set default route setting: no
oct. 09 00:18:22 [redacted]-X510UA vmnet-natd[2372]: RTM_DELADDR: index:2, addr:10.150.0.64
oct. 09 00:18:22 [redacted]-X510UA systemd-resolved[840]: wlp2s0: Bus client reset search domain list.
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.8445] dhcp4 (wlp2s0): state changed no lease
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.8444] dhcp4 (wlp2s0): activation: beginning transaction (timeout in 45 seconds)
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.8443] dhcp4 (wlp2s0): canceled DHCP transaction
oct. 09 00:18:22 [redacted]-X510UA avahi-daemon[910]: Interface wlp2s0.IPv6 no longer relevant for mDNS.
oct. 09 00:18:22 [redacted]-X510UA avahi-daemon[910]: Leaving mDNS multicast group on interface wlp2s0.IPv6 with address fe80::6812:fc80:9123:7623.
oct. 09 00:18:22 [redacted]-X510UA avahi-daemon[910]: Withdrawing address record for fe80::6812:fc80:9123:7623 on wlp2s0.
oct. 09 00:18:22 [redacted]-X510UA wpa_supplicant[1013]: wlp2s0: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=-9999 noise=9999 txrate=0
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.8106] device (wlp2s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'manage>
oct. 09 00:18:22 [redacted]-X510UA wpa_supplicant[1013]: wlp2s0: CTRL-EVENT-DSCP-POLICY clear_all
oct. 09 00:18:22 [redacted]-X510UA wpa_supplicant[1013]: wlp2s0: CTRL-EVENT-DISCONNECTED bssid=ec:58:ea:3a:a5:0c reason=3 locally_generated=1
oct. 09 00:18:22 [redacted]-X510UA vmnet-natd[2372]: RTM_NEWLINK: name:wlp2s0 index:2 flags:0x00001003
oct. 09 00:18:22 [redacted]-X510UA vmnetBridge[2099]: Stopped bridge wlp2s0 to virtual network 0.
oct. 09 00:18:22 [redacted]-X510UA vmnetBridge[2099]: Removing interface wlp2s0 index:2
oct. 09 00:18:22 [redacted]-X510UA kernel: wlp2s0: deauthenticating from ec:58:ea:3a:a5:0c by local choice (Reason: 3=DEAUTH_LEAVING)
oct. 09 00:18:22 [redacted]-X510UA vmnetBridge[2099]: RTM_NEWLINK: name:wlp2s0 index:2 flags:0x00001003
oct. 09 00:18:22 [redacted]-X510UA systemd[1]: Started NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service.
oct. 09 00:18:22 [redacted]-X510UA dbus-daemon[913]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
oct. 09 00:18:22 [redacted]-X510UA systemd[1]: Starting NetworkManager-dispatcher.service - Network Manager Script Dispatcher Service...
oct. 09 00:18:22 [redacted]-X510UA kernel: audit: type=1107 audit(1696803502.590:1354): pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="d>
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA kernel: audit: type=1107 audit(1696803502.590:1353): pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="d>
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA kernel: audit: type=1107 audit(1696803502.590:1352): pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="d>
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA dbus-daemon[913]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' reque>
oct. 09 00:18:22 [redacted]-X510UA audit[913]: USER_AVC pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path=">
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA audit[913]: USER_AVC pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path=">
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA audit[913]: USER_AVC pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path=">
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA kernel: audit: type=1107 audit(1696803502.586:1351): pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="d>
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA audit[913]: USER_AVC pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path=">
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA kernel: audit: type=1107 audit(1696803502.578:1350): pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="d>
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA ModemManager[1015]: <info> [sleep-monitor-systemd] system is about to suspend
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.5810] device (wlp2s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
oct. 09 00:18:22 [redacted]-X510UA audit[913]: USER_AVC pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path=">
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.5805] manager: NetworkManager state is now ASLEEP
oct. 09 00:18:22 [redacted]-X510UA kernel: audit: type=1107 audit(1696803502.574:1349): pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="d>
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.5788] device (p2p-dev-wlp2s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'm>
oct. 09 00:18:22 [redacted]-X510UA NetworkManager[997]: <info> [1696803502.5786] manager: sleep: sleep requested (sleeping: no enabled: yes)
oct. 09 00:18:22 [redacted]-X510UA audit[913]: USER_AVC pid=913 uid=102 auid=4294967295 ses=4294967295 subj=unconfined msg='apparmor="DENIED" operation="dbus_signal" bus="system" path=">
exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
oct. 09 00:18:22 [redacted]-X510UA kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
oct. 09 00:18:22 [redacted]-X510UA systemd-logind[941]: The system will suspend now!
oct. 09 00:18:22 [redacted]-X510UA kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
oct. 09 00:18:16 [redacted]-X510UA kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
我查看了许多遇到类似问题的用户的帖子,但没有发现任何问题......感谢您的帮助
[编辑] 由于问题经常发生,我开始更频繁地关闭电脑,而不是让电脑进入睡眠状态……我注意到关机时不时会出现同样的问题:我点击关机按钮,确认,屏幕变黑……但电脑仍然开着(LED 亮着,风扇继续旋转)。我在日志中没有发现任何奇怪的东西
[编辑 2] 我尝试添加acpi=force
到 GRUB,但它没有改变任何东西
[编辑 3] 更新到 Ubuntu 的最新版本没有改变任何东西