Help, my NixOS has insomnia!
Here’s the problem I’m having:
- System wakes up immediately after
systemctl suspend
. - System wakes up unpredictably after
systemctl suspend -i
. Sometimes it bounces right back; sometimes it will suspend for a few seconds or minutes, then come back when I’m not looking. - I have already disabled every single device on
/proc/acpi/wakeup
, it didn’t help. - I’ve upgraded to Linux 6.5.7, it didn’t help. I’m on the unstable channel, but I started on stable and had the same issue.
- I have a Debian stable + Gnome on the same system and it seems to sleep without issues.
- I’m running Wayland/sway if that matters.
My system is a Thinkpad T14s Gen 3 AMD. Here’s a dmesg for a systemctl suspend -i
that resumed immediately:
[Di, 24. Okt 2023, 10:36:03] PM: suspend entry (s2idle)
[Di, 24. Okt 2023, 10:36:03] Filesystems sync: 0.001 seconds
[Di, 24. Okt 2023, 10:36:03] Freezing user space processes
[Di, 24. Okt 2023, 10:36:03] Freezing user space processes completed (elapsed 0.001 seconds)
[Di, 24. Okt 2023, 10:36:03] OOM killer disabled.
[Di, 24. Okt 2023, 10:36:03] Freezing remaining freezable tasks
[Di, 24. Okt 2023, 10:36:03] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[Di, 24. Okt 2023, 10:36:03] printk: Suspending console(s) (use no_console_suspend to debug)
[Di, 24. Okt 2023, 10:36:03] ACPI: EC: interrupt blocked
[Di, 24. Okt 2023, 10:36:04] ACPI: EC: interrupt unblocked
[Di, 24. Okt 2023, 10:36:04] [drm] PCIE GART of 1024M enabled (table at 0x000000F43FC00000).
[Di, 24. Okt 2023, 10:36:04] amdgpu 0000:33:00.0: amdgpu: SMU is resuming…
[Di, 24. Okt 2023, 10:36:04] amdgpu 0000:33:00.0: amdgpu: SMU is resumed successfully!
[Di, 24. Okt 2023, 10:36:05] nvme nvme0: 12/0/0 default/read/poll queues
[Di, 24. Okt 2023, 10:36:05] nvme nvme0: Ignoring bogus Namespace Identifiers
[Di, 24. Okt 2023, 10:36:05] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[Di, 24. Okt 2023, 10:36:05] [drm] JPEG decode initialized successfully.
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring vcn_dec_0 uses VM inv eng 0 on hub 8
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring vcn_enc_0.0 uses VM inv eng 1 on hub 8
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring vcn_enc_0.1 uses VM inv eng 4 on hub 8
[Di, 24. Okt 2023, 10:36:05] amdgpu 0000:33:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 8
[Di, 24. Okt 2023, 10:36:05] OOM killer enabled.
[Di, 24. Okt 2023, 10:36:05] Restarting tasks … done.
[Di, 24. Okt 2023, 10:36:05] random: crng reseeded on system resumption
[Di, 24. Okt 2023, 10:36:05] PM: suspend exit
–
the GPU is:
33:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt [Radeon 680M] [1002:1681] (rev d2)