After a reboot the first suspend / resume works fine. After the second resume, I can move the mouse cursor for a few seconds on a black screen before everything freezes.
I have currently no idea which logs to post. I assume the issue is similar to the one in post 44544 but I cannot use the patch linked there as the ACPI won’t recompile even unmodified. I have a Dell G5 5505.
I also don’t know any way to unlock the hidden options in a DELL BIOS, so I cannot enable S3 there.
I tried amd_iommu=fullflush but it doesn’t change anything.
I also tried enabling S3 by editing the EFI variable like shown here (yes I know it’s a different model):
It should be “setup_var AMD_PBS_SETUP 0x38 0x0” but it won’t survive a reboot. Unfortunately I don’t know how to modify the BIOS to enable the extra menus to change the value there.
Here are the dmsg entries for one try to suspend (wakes up by itself immediately)
[ 401.226708] audit: type=1130 audit(1613762931.636:122): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=NetworkManager-dispatcher comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 401.263036] r8169 0000:04:00.0 enp4s0: Link is Down
[ 401.871015] PM: suspend entry (deep)
[ 401.880744] Filesystems sync: 0.009 seconds
[ 402.087903] Freezing user space processes ... (elapsed 0.002 seconds) done.
[ 402.089992] OOM killer disabled.
[ 402.089993] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[ 402.091296] printk: Suspending console(s) (use no_console_suspend to debug)
[ 402.224678] [drm] free PSP TMR buffer
[ 402.241373] [drm] free PSP TMR buffer
[ 402.304156] ACPI: EC: interrupt blocked
[ 402.421188] ACPI: Preparing to enter system sleep state S3
[ 402.428145] ACPI: EC: event blocked
[ 402.428146] ACPI: EC: EC stopped
[ 402.428147] PM: Saving platform NVS memory
[ 402.428515] Disabling non-boot CPUs ...
[ 402.430205] smpboot: CPU 1 is now offline
[ 402.432306] smpboot: CPU 2 is now offline
[ 402.434281] smpboot: CPU 3 is now offline
[ 402.436540] smpboot: CPU 4 is now offline
[ 402.438750] smpboot: CPU 5 is now offline
[ 402.440764] smpboot: CPU 6 is now offline
[ 402.442783] smpboot: CPU 7 is now offline
[ 402.444511] smpboot: CPU 8 is now offline
[ 402.446346] smpboot: CPU 9 is now offline
[ 402.448243] smpboot: CPU 10 is now offline
[ 402.450251] smpboot: CPU 11 is now offline
[ 402.452195] smpboot: CPU 12 is now offline
[ 402.454077] smpboot: CPU 13 is now offline
[ 402.456031] smpboot: CPU 14 is now offline
[ 402.457937] smpboot: CPU 15 is now offline
[ 402.457984] ACPI: Low-level resume complete
[ 402.457984] ACPI: EC: EC started
[ 402.457984] PM: Restoring platform NVS memory
[ 402.457984] LVT offset 0 assigned for vector 0x400
[ 402.457984] Enabling non-boot CPUs ...
[ 402.457984] x86: Booting SMP configuration:
[ 402.457984] smpboot: Booting Node 0 Processor 1 APIC 0x1
[ 402.454437] microcode: CPU1: patch_level=0x08600104
[ 402.459023] ACPI: \_SB_.PLTF.C001: Found 3 idle states
[ 402.459288] CPU1 is up
[ 402.459545] smpboot: Booting Node 0 Processor 2 APIC 0x2
[ 402.458764] microcode: CPU2: patch_level=0x08600104
[ 402.459956] ACPI: \_SB_.PLTF.C002: Found 3 idle states
[ 402.460225] CPU2 is up
[ 402.460453] smpboot: Booting Node 0 Processor 3 APIC 0x3
[ 402.459738] microcode: CPU3: patch_level=0x08600104
[ 402.460919] ACPI: \_SB_.PLTF.C003: Found 3 idle states
[ 402.461261] CPU3 is up
[ 402.461512] smpboot: Booting Node 0 Processor 4 APIC 0x4
[ 402.460710] microcode: CPU4: patch_level=0x08600104
[ 402.462387] ACPI: \_SB_.PLTF.C004: Found 3 idle states
[ 402.462706] CPU4 is up
[ 402.462937] smpboot: Booting Node 0 Processor 5 APIC 0x5
[ 402.462120] microcode: CPU5: patch_level=0x08600104
[ 402.463296] ACPI: \_SB_.PLTF.C005: Found 3 idle states
[ 402.463483] CPU5 is up
[ 402.463704] smpboot: Booting Node 0 Processor 6 APIC 0x6
[ 402.463137] microcode: CPU6: patch_level=0x08600104
[ 402.464200] ACPI: \_SB_.PLTF.C006: Found 3 idle states
[ 402.464563] CPU6 is up
[ 402.464791] smpboot: Booting Node 0 Processor 7 APIC 0x7
[ 402.454438] microcode: CPU7: patch_level=0x08600104
[ 402.465199] ACPI: \_SB_.PLTF.C007: Found 3 idle states
[ 402.465401] CPU7 is up
[ 402.465580] smpboot: Booting Node 0 Processor 8 APIC 0x8
[ 402.465000] microcode: CPU8: patch_level=0x08600104
[ 402.466215] ACPI: \_SB_.PLTF.C008: Found 3 idle states
[ 402.466744] CPU8 is up
[ 402.466924] smpboot: Booting Node 0 Processor 9 APIC 0x9
[ 402.465942] microcode: CPU9: patch_level=0x08600104
[ 402.467567] ACPI: \_SB_.PLTF.C009: Found 3 idle states
[ 402.468075] CPU9 is up
[ 402.468259] smpboot: Booting Node 0 Processor 10 APIC 0xa
[ 402.467397] microcode: CPU10: patch_level=0x08600104
[ 402.468858] ACPI: \_SB_.PLTF.C00A: Found 3 idle states
[ 402.469308] CPU10 is up
[ 402.469483] smpboot: Booting Node 0 Processor 11 APIC 0xb
[ 402.468553] microcode: CPU11: patch_level=0x08600104
[ 402.469988] ACPI: \_SB_.PLTF.C00B: Found 3 idle states
[ 402.470415] CPU11 is up
[ 402.470601] smpboot: Booting Node 0 Processor 12 APIC 0xc
[ 402.469778] microcode: CPU12: patch_level=0x08600104
[ 402.471147] ACPI: \_SB_.PLTF.C00C: Found 3 idle states
[ 402.471605] CPU12 is up
[ 402.471797] smpboot: Booting Node 0 Processor 13 APIC 0xd
[ 402.470902] microcode: CPU13: patch_level=0x08600104
[ 402.472240] ACPI: \_SB_.PLTF.C00D: Found 3 idle states
[ 402.472536] CPU13 is up
[ 402.472719] smpboot: Booting Node 0 Processor 14 APIC 0xe
[ 402.472033] microcode: CPU14: patch_level=0x08600104
[ 402.473249] ACPI: \_SB_.PLTF.C00E: Found 3 idle states
[ 402.473778] CPU14 is up
[ 402.473964] smpboot: Booting Node 0 Processor 15 APIC 0xf
[ 402.473009] microcode: CPU15: patch_level=0x08600104
[ 402.474335] ACPI: \_SB_.PLTF.C00F: Found 3 idle states
[ 402.474701] CPU15 is up
[ 402.476166] ACPI: Waking up from system sleep state S3
[ 402.516582] ACPI: EC: interrupt unblocked
[ 402.786064] ACPI: EC: event unblocked
[ 402.786944] [drm] PCIE GART of 1024M enabled (table at 0x000000F400900000).
[ 402.786995] [drm] PSP is resuming...
[ 402.787218] [drm] PCIE GART of 512M enabled (table at 0x0000008000000000).
[ 402.787239] [drm] PSP is resuming...
[ 402.791439] nvme nvme0: Shutdown timeout set to 10 seconds
[ 402.793358] nvme nvme0: 8/0/0 default/read/poll queues
[ 402.807039] [drm] reserve 0x400000 from 0xf41f800000 for PSP TMR
[ 402.881352] [drm] reserve 0x900000 from 0x800f400000 for PSP TMR
[ 403.004680] amdgpu 0000:07:00.0: amdgpu: RAS: optional ras ta ucode is not available
[ 403.024661] amdgpu 0000:07:00.0: amdgpu: RAP: optional rap ta ucode is not available
[ 403.024667] amdgpu 0000:07:00.0: amdgpu: SMU is resuming...
[ 403.025315] amdgpu 0000:07:00.0: amdgpu: dpm has been disabled
[ 403.026169] amdgpu 0000:07:00.0: amdgpu: SMU is resumed successfully!
[ 403.027480] [drm] kiq ring mec 2 pipe 1 q 0
[ 403.041423] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[ 403.042086] [drm] DMUB hardware initialized: version=0x01000000
[ 403.061162] amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
[ 403.061167] amdgpu 0000:03:00.0: amdgpu: SMU is resuming...
[ 403.061176] amdgpu 0000:03:00.0: amdgpu: smu driver if version = 0x00000036, smu fw if version = 0x00000037, smu fw version = 0x002a3d00 (42.61.0)
[ 403.061177] amdgpu 0000:03:00.0: amdgpu: SMU driver if version not matched
[ 403.096716] amdgpu 0000:03:00.0: amdgpu: SMU is resumed successfully!
[ 403.099055] ata2: SATA link down (SStatus 0 SControl 300)
[ 403.102171] ata1: SATA link down (SStatus 0 SControl 300)
[ 403.156418] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[ 403.156551] [drm] JPEG decode initialized successfully.
[ 403.156743] amdgpu 0000:07:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[ 403.156744] amdgpu 0000:07:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[ 403.156744] amdgpu 0000:07:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[ 403.156745] amdgpu 0000:07:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[ 403.156746] amdgpu 0000:07:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[ 403.156746] amdgpu 0000:07:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[ 403.156747] amdgpu 0000:07:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[ 403.156747] amdgpu 0000:07:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[ 403.156748] amdgpu 0000:07:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[ 403.156749] amdgpu 0000:07:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[ 403.156749] amdgpu 0000:07:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 1
[ 403.156750] amdgpu 0000:07:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 1
[ 403.156751] amdgpu 0000:07:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 1
[ 403.156751] amdgpu 0000:07:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 1
[ 403.156752] amdgpu 0000:07:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 1
[ 403.170740] usb 1-4: reset low-speed USB device number 2 using xhci_hcd
[ 403.282443] [drm] kiq ring mec 2 pipe 1 q 0
[ 403.293162] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[ 403.294237] [drm] JPEG decode initialized successfully.
[ 403.294256] amdgpu 0000:03:00.0: amdgpu: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[ 403.294257] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[ 403.294258] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[ 403.294258] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[ 403.294259] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[ 403.294260] amdgpu 0000:03:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[ 403.294260] amdgpu 0000:03:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[ 403.294261] amdgpu 0000:03:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[ 403.294261] amdgpu 0000:03:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[ 403.294262] amdgpu 0000:03:00.0: amdgpu: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[ 403.294263] amdgpu 0000:03:00.0: amdgpu: ring sdma0 uses VM inv eng 12 on hub 0
[ 403.294263] amdgpu 0000:03:00.0: amdgpu: ring sdma1 uses VM inv eng 13 on hub 0
[ 403.294264] amdgpu 0000:03:00.0: amdgpu: ring vcn_dec uses VM inv eng 0 on hub 1
[ 403.294264] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 1 on hub 1
[ 403.294265] amdgpu 0000:03:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 4 on hub 1
[ 403.294265] amdgpu 0000:03:00.0: amdgpu: ring jpeg_dec uses VM inv eng 5 on hub 1
[ 403.955236] acpi LNXPOWER:03: Turning OFF
[ 403.955300] OOM killer enabled.
[ 403.955301] Restarting tasks ... done.
[ 404.008080] PM: suspend exit
[ 404.308175] audit: type=1130 audit(1613762935.846:123): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 404.308183] audit: type=1131 audit(1613762935.846:124): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-suspend comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 404.337791] Generic FE-GE Realtek PHY r8169-400:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-400:00, irq=IGNORE)
[ 404.521285] r8169 0000:04:00.0 enp4s0: Link is Down
[ 406.208318] audit: type=1100 audit(1613762937.746:125): pid=6407 uid=1000 auid=1000 ses=2 subj==unconfined msg='op=PAM:unix_chkpwd acct="admin" exe="/usr/bin/unix_chkpwd" hostname=? addr=? terminal=? res=success'
Currently I don’t know if it’s easier to disable S3 again and try to solve the “modern standby” issue or leave S3 enabled and solve the “auto-wakeup” issue. I think the general issue with modern standby and AMDGPU should be solved as more and more hardware will have S3 disabled “thanks” to pressure from M$.
S3 suspend seems to work if I close the lid immediately after sending it to suspend. However, I usually leave the lid open. Any way to disable the auto-resume on lid open?