Ubuntu 22.04 上内核从暂停状态恢复时挂起

Ubuntu 22.04 上内核从暂停状态恢复时挂起

我的系统需要大约一分钟才能从挂起状态恢复,在此期间它对输入没有反应。我得到一个空白屏幕(没有背光),直到显示登录屏幕,此时一切正常。键盘背光键在此状态下工作(预期),但大写锁定指示灯 LED 不会亮起,直到显示登录屏幕。

以下是立即暂停和恢复系统过程中journalctl的日志kernelsystemd-logindsystemd-sleep

reuben@reuben-Inspiron-14-5425:~$ journalctl -f | grep -E 'kernel|systemd-(logind|sleep)'
Jun 05 01:49:12 reuben-Inspiron-14-5425 systemd-logind[748]: Power key pressed.
Jun 05 01:49:12 reuben-Inspiron-14-5425 kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Jun 05 01:49:12 reuben-Inspiron-14-5425 kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Jun 05 01:49:12 reuben-Inspiron-14-5425 kernel: Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
Jun 05 01:49:12 reuben-Inspiron-14-5425 kernel: wlp3s0: deauthenticating from 00:31:92:fb:37:fb by local choice (Reason: 3=DEAUTH_LEAVING)
Jun 05 01:49:13 reuben-Inspiron-14-5425 systemd-sleep[4885]: Entering sleep state 'suspend'...
Jun 05 01:49:13 reuben-Inspiron-14-5425 kernel: PM: suspend entry (s2idle)
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: Filesystems sync: 0.377 seconds
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: Freezing user space processes ... (elapsed 0.004 seconds) done.
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: OOM killer disabled.
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: Freezing remaining freezable tasks ... (elapsed 0.202 seconds) done.
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: printk: Suspending console(s) (use no_console_suspend to debug)
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: ACPI: EC: interrupt blocked
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: ACPI: EC: interrupt unblocked
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: pci 0000:00:00.2: can't derive routing for PCI INT A
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: pci 0000:00:00.2: PCI INT A: no GSI
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: [drm] PCIE GART of 1024M enabled.
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: [drm] PTB located at 0x000000F400900000
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: SMU is resuming...
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: dpm has been disabled
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: SMU is resumed successfully!
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: [drm] DMUB hardware initialized: version=0x0101001F
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: [drm] VCN decode and encode initialized successfully(under DPG Mode).
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: [drm] JPEG decode initialized successfully.
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: amdgpu 0000:04:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: ata1: SATA link down (SStatus 0 SControl 300)
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: ata2: SATA link down (SStatus 0 SControl 300)
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: I/O 91 QID 5 timeout, aborting
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: I/O 953 QID 16 timeout, aborting
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: I/O 954 QID 16 timeout, aborting
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: I/O 955 QID 16 timeout, aborting
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: I/O 956 QID 16 timeout, aborting
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: I/O 28 QID 0 timeout, reset controller
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: Abort status: 0x371
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: Abort status: 0x371
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: Abort status: 0x371
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: Abort status: 0x371
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: Abort status: 0x371
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: PM: dpm_run_callback(): pci_pm_resume+0x0/0xf0 returns -16
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme 0000:02:00.0: PM: failed to resume async: error -16
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: OOM killer enabled.
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: Restarting tasks ... done.
Jun 05 01:50:26 reuben-Inspiron-14-5425 kernel: nvme nvme0: 16/0/0 default/read/poll queues
Jun 05 01:50:27 reuben-Inspiron-14-5425 systemd-sleep[4885]: System returned from sleep state.
Jun 05 01:50:27 reuben-Inspiron-14-5425 kernel: PM: suspend exit
Jun 05 01:50:27 reuben-Inspiron-14-5425 systemd-logind[748]: Operation 'sleep' finished.

我尝试过的事情

  • 通过软件更新程序安装最新更新并sudo apt update && sudo apt upgrade
  • 添加amd_iommu=offGRUB_CMDLINE_LINUX_DEFAULT/etc/default/grub然后sudo update-grub
  • 其他各种GRUB_CMDLINE_LINUX_DEFAULT调整

知道问题可能是什么吗?我在几个地方读过[1] [2]Ryzen 5000 系列 CPU 在 Linux 上存在睡眠问题。我觉得下一个合乎逻辑的步骤可能是升级/降级到不同的内核版本,但我不确定在选择特定版本时应该寻找什么,而不是漫无目的地猜测要安装哪个版本(也许是变更日志关键字,例如“AMD”和“ACPI”?)。

任何帮助将非常感激。 :)


系统信息

  • 型号:Dell Inspiron 14 5425
  • 处理器:AMD Ryzen 7 5825U
  • 内存:24GB DDR4 3200MHz(1x 8GB,1x 16GB)
  • Ubuntu 版本:22.04 LTS
  • 内核版本:5.15.0-35-generic

附加信息

  • 通过单个 1TB NVMe SSD 实现 Ubuntu/Windows 11 双启动

答案1

抱歉回复太晚了,但我的笔记本电脑和你一样,找到了解决这个问题的方法。只需pcie_aspm=off在 /etc/default/grub 中设置内核启动参数,然后更新 grub。关于此参数还有更多信息这里。 希望这可以帮助!

答案2

1-切换到5.18内核,停止内核恐慌。

2-睡眠在5.18内核中没有修复,尽量不要使用睡眠或休眠,只使用锁。

3-5.19 内核中可能有一些修复,不确定睡眠问题

4-使用“sudo systemctl mask sleep.target suspend.target 休眠“隐藏睡眠和冬眠。

答案3

这可能值得一试:

https://unix.stackexchange.com/questions/706594/dell-inspiron-laptop-cannot-wake-from-sleep-in-linux

他们建议放弃睡眠,而使用休眠。

相关内容