Edit: please note that the fix that worked for me was the kernel update AND also keeping amd_iommu=on iommu=pt processor.max_cstate=5 rcu_nocbs=0_11
in my GRUB_CMDLINE_LINUX_DEFAULT
Very similar, if not the same problem, to this thread my laptop freezes after spending about 30min with the lid closed, I can see the side led power blinking slowly, but when I open the lid the only thing I can see is a grayish background and the mouse pointer, everything frozen, not even num lock can be turned on.
At first I thought it was kernel issue, so I tried other kernels instead of the one I had, tried 5.10.105-1, then 5.15.28-1, and finally the kernel I’m using right now, 5.16.14-1 and the problem persisted.
So I tried the fixes suggested in this page Linux - Fixing Suspend and Resume on AMD Lenovo ThinkBook G2 ARE - Luc Raymond's blog .
First I tried adding iommu=soft
to GRUB_CMDLINE_LINUX_DEFAULT
but did not work. ]
Then, after reading more fix suggestions from ArchWiki Ryzen page I added processor.max_cstate=5 intel_idle.max_cstate=5
to the same line, I chose number 5 because I still want my laptop to suspend and save energy while closed because setting it to 0 would make no sense, but still freezes when trying to recover from suspension after spending approximately 30min with the lid closed.
Here are some infos you’ll probably need.
Laptop Model: Lenovo IdeaPad 3-15ALC6 Laptop - Type 82MF
laptop’s specs from inxi -F
:
System:
Host: luan-lenovo Kernel: 5.16.14-1-MANJARO arch: x86_64 bits: 64
Desktop: KDE Plasma v: 5.24.3 Distro: Manjaro Linux
Machine:
Type: Laptop System: LENOVO product: 82MF v: IdeaPad 3 15ALC6
serial: <superuser required>
Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <superuser required>
UEFI: LENOVO v: GLCN40WW date: 07/23/2021
Battery:
ID-1: BAT0 charge: 22.3 Wh (58.2%) condition: 38.3/38.0 Wh (100.9%)
volts: 7.7 min: 7.7
CPU:
Info: 6-core model: AMD Ryzen 5 5500U with Radeon Graphics bits: 64
type: MT MCP cache: L2: 3 MiB
Speed (MHz): avg: 1535 min/max: 1400/4056 cores: 1: 2096 2: 2366 3: 1397
4: 1397 5: 1396 6: 1397 7: 1397 8: 1396 9: 1397 10: 1397 11: 1397 12: 1396
Graphics:
Device-1: AMD Lucienne driver: amdgpu v: kernel
Device-2: Syntek Integrated Camera type: USB driver: uvcvideo
Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: amdgpu
unloaded: modesetting gpu: amdgpu resolution: 1920x1080~60Hz
OpenGL: renderer: AMD RENOIR (DRM 3.44.0 5.16.14-1-MANJARO LLVM 13.0.1)
v: 4.6 Mesa 21.3.7
Audio:
Device-1: AMD Renoir Radeon High Definition Audio driver: snd_hda_intel
Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor driver: N/A
Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
Sound Server-1: ALSA v: k5.16.14-1-MANJARO running: yes
Sound Server-2: PulseAudio v: 15.0 running: yes
Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
driver: rtw_8822ce
IF: wlp1s0 state: up mac: 00:45:e2:7e:99:53
Bluetooth:
Device-1: Realtek Bluetooth Radio type: USB driver: btusb
Report: rfkill ID: hci0 state: up address: see --recommends
Drives:
Local Storage: total: 476.95 GiB used: 42.59 GiB (8.9%)
ID-1: /dev/nvme0n1 vendor: SSSTC model: CL1-4D256 size: 238.47 GiB
ID-2: /dev/sda vendor: Netac model: SSD 256GB size: 238.47 GiB
Partition:
ID-1: / size: 224.71 GiB used: 42.52 GiB (18.9%) fs: ext4
dev: /dev/nvme0n1p2
ID-2: /boot/efi size: 299.4 MiB used: 288 KiB (0.1%) fs: vfat
dev: /dev/nvme0n1p1
Swap:
ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%)
dev: /dev/nvme0n1p3
Sensors:
System Temperatures: cpu: N/A mobo: N/A gpu: amdgpu temp: 43.0 C
Fan Speeds (RPM): N/A
Info:
Processes: 364 Uptime: 47m Memory: 9.58 GiB used: 3.44 GiB (35.9%)
Shell: Zsh inxi: 3.3.14
Output from journalctl | grep amdgpu
.
mar 31 10:43:53 luan-lenovo kernel: [drm] amdgpu kernel modesetting enabled.
mar 31 10:43:53 luan-lenovo kernel: amdgpu: Virtual CRAT table created for CPU
mar 31 10:43:53 luan-lenovo kernel: amdgpu: Topology: Add CPU node
mar 31 10:43:53 luan-lenovo kernel: fb0: switching to amdgpu from EFI VGA
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: vgaarb: deactivate vga console
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: enabling device (0006 -> 0007)
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: Trusted Memory Zone (TMZ) feature enabled
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from VFCT
mar 31 10:43:53 luan-lenovo kernel: amdgpu: ATOM BIOS: 113-LUCIENNE-016
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: PCIE atomic ops is not supported
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
mar 31 10:43:53 luan-lenovo kernel: [drm] amdgpu: 2048M of VRAM memory ready
mar 31 10:43:53 luan-lenovo kernel: [drm] amdgpu: 3072M of GTT memory ready.
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: PSP runtime database doesn't exist
mar 31 10:43:53 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: Will use PSP to load VCN firmware
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: SMU is initialized successfully!
mar 31 10:43:54 luan-lenovo kernel: snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
mar 31 10:43:54 luan-lenovo kernel: kfd kfd: amdgpu: Allocated 3969056 bytes on gart
mar 31 10:43:54 luan-lenovo kernel: amdgpu: HMM registered 2048MB device memory
mar 31 10:43:54 luan-lenovo kernel: amdgpu: SRAT table not found
mar 31 10:43:54 luan-lenovo kernel: amdgpu: Virtual CRAT table created for GPU
mar 31 10:43:54 luan-lenovo kernel: amdgpu: Topology: Add dGPU node [0x164c:0x1002]
mar 31 10:43:54 luan-lenovo kernel: kfd kfd: amdgpu: added device 1002:164c
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: SE 1, SH per SE 1, CU per SH 8, active_cu_number 7
mar 31 10:43:54 luan-lenovo kernel: fbcon: amdgpudrmfb (fb0) is primary device
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: [drm] fb0: amdgpudrmfb frame buffer device
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
mar 31 10:43:54 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
mar 31 10:43:54 luan-lenovo kernel: [drm] Initialized amdgpu 3.44.0 20150101 for 0000:03:00.0 on minor 0
mar 31 10:43:54 luan-lenovo systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0...
mar 31 10:43:54 luan-lenovo systemd[1]: Finished Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0.
mar 31 10:43:54 luan-lenovo audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-backlight@backlight:amdgpu_bl0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
mar 31 11:08:59 luan-lenovo kernel: [drm:dc_dmub_srv_wait_idle [amdgpu]] *ERROR* Error waiting for DMUB idle: status=3
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: MODE2 reset
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: dpm has been disabled
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
mar 31 11:08:59 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
mar 31 13:24:30 luan-lenovo kernel: [drm] amdgpu kernel modesetting enabled.
mar 31 13:24:30 luan-lenovo kernel: amdgpu: Virtual CRAT table created for CPU
mar 31 13:24:30 luan-lenovo kernel: amdgpu: Topology: Add CPU node
mar 31 13:24:30 luan-lenovo kernel: fb0: switching to amdgpu from EFI VGA
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: vgaarb: deactivate vga console
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: enabling device (0006 -> 0007)
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: Trusted Memory Zone (TMZ) feature enabled
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: Fetched VBIOS from VFCT
mar 31 13:24:30 luan-lenovo kernel: amdgpu: ATOM BIOS: 113-LUCIENNE-016
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: PCIE atomic ops is not supported
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
mar 31 13:24:30 luan-lenovo kernel: [drm] amdgpu: 2048M of VRAM memory ready
mar 31 13:24:30 luan-lenovo kernel: [drm] amdgpu: 3072M of GTT memory ready.
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: PSP runtime database doesn't exist
mar 31 13:24:30 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: Will use PSP to load VCN firmware
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: SMU is initialized successfully!
mar 31 13:24:31 luan-lenovo kernel: snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
mar 31 13:24:31 luan-lenovo kernel: kfd kfd: amdgpu: Allocated 3969056 bytes on gart
mar 31 13:24:31 luan-lenovo kernel: amdgpu: HMM registered 2048MB device memory
mar 31 13:24:31 luan-lenovo kernel: amdgpu: SRAT table not found
mar 31 13:24:31 luan-lenovo kernel: amdgpu: Virtual CRAT table created for GPU
mar 31 13:24:31 luan-lenovo kernel: amdgpu: Topology: Add dGPU node [0x164c:0x1002]
mar 31 13:24:31 luan-lenovo kernel: kfd kfd: amdgpu: added device 1002:164c
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: SE 1, SH per SE 1, CU per SH 8, active_cu_number 7
mar 31 13:24:31 luan-lenovo kernel: fbcon: amdgpudrmfb (fb0) is primary device
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: [drm] fb0: amdgpudrmfb frame buffer device
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
mar 31 13:24:31 luan-lenovo kernel: amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
mar 31 13:24:31 luan-lenovo kernel: [drm] Initialized amdgpu 3.44.0 20150101 for 0000:03:00.0 on minor 0
mar 31 13:24:31 luan-lenovo systemd[1]: Starting Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0...
mar 31 13:24:31 luan-lenovo systemd[1]: Finished Load/Save Screen Backlight Brightness of backlight:amdgpu_bl0.
mar 31 13:24:31 luan-lenovo audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-backlight@backlight:amdgpu_bl0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
I also noticed this problem seems to not have a fix yet but, well, I’d like to try any other thing that may fix it because it is very annoying to not be able to close the lid of the laptop.