You are not logged in.

#1 2024-05-24 14:57:58

Fran314
Member
Registered: 2023-08-12
Posts: 4

81YM IdeaPad 5 14ARE05 immediately wakes up after suspend

(I'm posting this on a separated thread as suggested by a user. Symptoms similar to this thread)

I'm having issues with my laptop remaining in suspend state. More precisely, if I try to suspend with `sudo systemctl suspend` the first time I do this since reboot it actually goes to suspend with no issue. From the second time on, it succesfully goes to suspend but it also wakes up immediately on its own after a couple of seconds. These are the same symptoms shown by another user on reddit un my exact same laptop model, so I'm assuming it's something related to the laptop model.

Relevant info on the system:

Laptop Model: (Lenovo) 81YM IdeaPad 5 14ARE05
Kernel: 6.9.1-arch1-1
CPU: AMD Ryzen 7 4700U with Radeon Graphics (8) @ 2.000GHz
GPU: AMD ATI Radeon RX Vega 6

What I have already tried which didn't work:
- Enabling S3 sleep from the advanced BIOS. I did this a couple of years ago when I switched to linux as otherwise it wouldn't go to sleep at all. That setting is enabled since then but this doesn't seem to help with it waking up from sleep
- disabling NetworkManager and/or bluetooth from systemctl before suspending
- messing with `/proc/acpi/wakeup`. Here is the default content of my /proc/acpi/wakeup

Device	S-state	  Status   Sysfs node
GPP0	  S4	*disabled
GPP1	  S4	*disabled
GPP2	  S4	*disabled
GPP3	  S4	*enabled   pci:0000:00:02.1
GPP4	  S4	*enabled   pci:0000:00:02.2
GP17	  S3	*enabled   pci:0000:00:08.1
GP19	  S4	*disabled
PWRB	  S4	*enabled   platform:PNP0C0C:00

I've tried disabling GPP3, GPP4, GP17 and PWRB (both on their own and all of them at the same time), and still the computer wakes up
- using older kernels: with somewhat old kernels (I think < 6.5 if I'm not mistaken, if it's relevant I can check more precisely) the system just doesn't wake up from suspend, as in the keyboard lights up but the screen remains black. With newer kernels (>= 6.5) I get the same symptoms as with the latest
- suspending from a tty instead of the DE, same symptoms: the first time it suspends just fine, from the second time on it wakes up
- using a fresh arch install. I've tried to use a fresh arch install on a new partition, same symptoms
- using different OSs. So far I've tried fresh installs of Mint (Cinnamon), Pop_OS and NixOS, all of them show the same symptoms

Here is the output of `sudo dmesg` when trying to suspend for the first time after reboot (from start to ~44) and the second time after reboot (from ~46 to end)

[   41.860058] PM: suspend entry (deep)
[   41.864660] Filesystems sync: 0.004 seconds
[   41.991808] Freezing user space processes
[   41.993317] Freezing user space processes completed (elapsed 0.001 seconds)
[   41.993324] OOM killer disabled.
[   41.993326] Freezing remaining freezable tasks
[   41.994420] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[   41.994490] printk: Suspending console(s) (use no_console_suspend to debug)
[   42.095794] amdgpu 0000:05:00.0: amdgpu: psp gfx command UNLOAD_TA(0x2) failed and response status is (0x117)
[   42.126540] ACPI: EC: interrupt blocked
[   42.163388] ACPI: PM: Preparing to enter system sleep state S3
[   42.164025] ACPI: EC: event blocked
[   42.164027] ACPI: EC: EC stopped
[   42.164028] ACPI: PM: Saving platform NVS memory
[   42.164339] Disabling non-boot CPUs ...
[   42.166249] smpboot: CPU 1 is now offline
[   42.168886] smpboot: CPU 2 is now offline
[   42.171281] smpboot: CPU 3 is now offline
[   42.173410] smpboot: CPU 4 is now offline
[   42.175788] smpboot: CPU 5 is now offline
[   42.178110] smpboot: CPU 6 is now offline
[   42.180546] smpboot: CPU 7 is now offline
[   42.180688] ACPI: PM: Low-level resume complete
[   42.180688] ACPI: EC: EC started
[   42.180688] ACPI: PM: Restoring platform NVS memory
[   42.180688] AMD-Vi: Virtual APIC enabled
[   42.180688] AMD-Vi: Virtual APIC enabled
[   42.180688] LVT offset 0 assigned for vector 0x400
[   42.180688] Enabling non-boot CPUs ...
[   42.180688] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   42.181858] ACPI: \_SB_.PLTF.C001: Found 3 idle states
[   42.181866] ACPI: FW issue: working around C-state latencies out of order
[   42.182030] CPU1 is up
[   42.182189] smpboot: Booting Node 0 Processor 2 APIC 0x2
[   42.183029] ACPI: \_SB_.PLTF.C002: Found 3 idle states
[   42.183038] ACPI: FW issue: working around C-state latencies out of order
[   42.183293] CPU2 is up
[   42.183440] smpboot: Booting Node 0 Processor 3 APIC 0x3
[   42.184077] ACPI: \_SB_.PLTF.C003: Found 3 idle states
[   42.184085] ACPI: FW issue: working around C-state latencies out of order
[   42.184346] CPU3 is up
[   42.184492] smpboot: Booting Node 0 Processor 4 APIC 0x4
[   42.185384] ACPI: \_SB_.PLTF.C004: Found 3 idle states
[   42.185396] ACPI: FW issue: working around C-state latencies out of order
[   42.185790] CPU4 is up
[   42.185950] smpboot: Booting Node 0 Processor 5 APIC 0x5
[   42.186702] ACPI: \_SB_.PLTF.C005: Found 3 idle states
[   42.186714] ACPI: FW issue: working around C-state latencies out of order
[   42.187060] CPU5 is up
[   42.187253] smpboot: Booting Node 0 Processor 6 APIC 0x6
[   42.187892] ACPI: \_SB_.PLTF.C006: Found 3 idle states
[   42.187902] ACPI: FW issue: working around C-state latencies out of order
[   42.188261] CPU6 is up
[   42.188439] smpboot: Booting Node 0 Processor 7 APIC 0x7
[   42.189077] ACPI: \_SB_.PLTF.C007: Found 3 idle states
[   42.189088] ACPI: FW issue: working around C-state latencies out of order
[   42.189453] CPU7 is up
[   42.190538] ACPI: PM: Waking up from system sleep state S3
[   42.196274] ACPI: EC: interrupt unblocked
[   42.199955] ACPI: EC: event unblocked
[   42.200437] [drm] PCIE GART of 1024M enabled.
[   42.200438] [drm] PTB located at 0x000000F41FC00000
[   42.200451] amdgpu 0000:05:00.0: amdgpu: PSP is resuming...
[   42.217008] nvme nvme0: D3 entry latency set to 8 seconds
[   42.284570] nvme nvme0: 8/0/0 default/read/poll queues
[   42.384836] nvme nvme1: 8/0/0 default/read/poll queues
[   42.387504] nvme nvme1: Ignoring bogus Namespace Identifiers
[   42.904227] amdgpu 0000:05:00.0: amdgpu: reserve 0x400000 from 0xf41f800000 for PSP TMR
[   43.018350] amdgpu 0000:05:00.0: amdgpu: RAS: optional ras ta ucode is not available
[   43.028886] amdgpu 0000:05:00.0: amdgpu: RAP: optional rap ta ucode is not available
[   43.028889] amdgpu 0000:05:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[   43.028893] amdgpu 0000:05:00.0: amdgpu: SMU is resuming...
[   43.028939] amdgpu 0000:05:00.0: amdgpu: dpm has been disabled
[   43.029827] amdgpu 0000:05:00.0: amdgpu: SMU is resumed successfully!
[   43.030605] [drm] DMUB hardware initialized: version=0x01010028
[   43.762698] [drm] kiq ring mec 2 pipe 1 q 0
[   43.766660] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[   43.766706] [drm] JPEG decode initialized successfully.
[   43.766727] amdgpu 0000:05:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[   43.766729] amdgpu 0000:05:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[   43.766730] amdgpu 0000:05:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[   43.766730] amdgpu 0000:05:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[   43.766731] amdgpu 0000:05:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[   43.766732] amdgpu 0000:05:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[   43.766733] amdgpu 0000:05:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[   43.766733] amdgpu 0000:05:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[   43.766734] amdgpu 0000:05:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[   43.766735] amdgpu 0000:05:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
[   43.766736] amdgpu 0000:05:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 8
[   43.766737] amdgpu 0000:05:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 8
[   43.766737] amdgpu 0000:05:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 8
[   43.766738] amdgpu 0000:05:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 8
[   43.766739] amdgpu 0000:05:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 8
[   43.817478] OOM killer enabled.
[   43.817481] Restarting tasks ... done.
[   43.818312] random: crng reseeded on system resumption
[   44.068543] PM: suspend exit
[   44.153115] Process accounting resumed
[   44.153206] warning: `atop' uses wireless extensions which will stop working for Wi-Fi 7 hardware; use nl80211
[   46.468253] PM: suspend entry (deep)
[   46.474425] Filesystems sync: 0.006 seconds
[   46.478467] Freezing user space processes
[   46.481936] Freezing user space processes completed (elapsed 0.003 seconds)
[   46.481942] OOM killer disabled.
[   46.481944] Freezing remaining freezable tasks
[   46.483031] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[   46.483061] printk: Suspending console(s) (use no_console_suspend to debug)
[   46.632089] ACPI: EC: interrupt blocked
[   46.643707] snd_hda_intel 0000:05:00.6: Refused to change power state from D0 to D3hot
[   46.668157] ACPI: PM: Preparing to enter system sleep state S3
[   46.668627] ACPI: EC: event blocked
[   46.668629] ACPI: EC: EC stopped
[   46.668630] ACPI: PM: Saving platform NVS memory
[   46.669008] Disabling non-boot CPUs ...
[   46.670931] smpboot: CPU 1 is now offline
[   46.672713] smpboot: CPU 2 is now offline
[   46.674532] smpboot: CPU 3 is now offline
[   46.676149] smpboot: CPU 4 is now offline
[   46.677866] smpboot: CPU 5 is now offline
[   46.679679] smpboot: CPU 6 is now offline
[   46.681591] smpboot: CPU 7 is now offline
[   46.681640] ACPI: PM: Low-level resume complete
[   46.681640] ACPI: EC: EC started
[   46.681640] ACPI: PM: Restoring platform NVS memory
[   46.681640] AMD-Vi: Virtual APIC enabled
[   46.681640] AMD-Vi: Virtual APIC enabled
[   46.681640] LVT offset 0 assigned for vector 0x400
[   46.681640] Enabling non-boot CPUs ...
[   46.681640] smpboot: Booting Node 0 Processor 1 APIC 0x1
[   46.682589] ACPI: \_SB_.PLTF.C001: Found 3 idle states
[   46.682597] ACPI: FW issue: working around C-state latencies out of order
[   46.682754] CPU1 is up
[   46.682919] smpboot: Booting Node 0 Processor 2 APIC 0x2
[   46.683495] ACPI: \_SB_.PLTF.C002: Found 3 idle states
[   46.683506] ACPI: FW issue: working around C-state latencies out of order
[   46.683781] CPU2 is up
[   46.683956] smpboot: Booting Node 0 Processor 3 APIC 0x3
[   46.684564] ACPI: \_SB_.PLTF.C003: Found 3 idle states
[   46.684573] ACPI: FW issue: working around C-state latencies out of order
[   46.684852] CPU3 is up
[   46.684990] smpboot: Booting Node 0 Processor 4 APIC 0x4
[   46.685870] ACPI: \_SB_.PLTF.C004: Found 3 idle states
[   46.685882] ACPI: FW issue: working around C-state latencies out of order
[   46.686271] CPU4 is up
[   46.686423] smpboot: Booting Node 0 Processor 5 APIC 0x5
[   46.687427] ACPI: \_SB_.PLTF.C005: Found 3 idle states
[   46.687437] ACPI: FW issue: working around C-state latencies out of order
[   46.687745] CPU5 is up
[   46.687919] smpboot: Booting Node 0 Processor 6 APIC 0x6
[   46.688549] ACPI: \_SB_.PLTF.C006: Found 3 idle states
[   46.688560] ACPI: FW issue: working around C-state latencies out of order
[   46.688930] CPU6 is up
[   46.689133] smpboot: Booting Node 0 Processor 7 APIC 0x7
[   46.689763] ACPI: \_SB_.PLTF.C007: Found 3 idle states
[   46.689774] ACPI: FW issue: working around C-state latencies out of order
[   46.690161] CPU7 is up
[   46.691344] ACPI: PM: Waking up from system sleep state S3
[   46.697181] ACPI: EC: interrupt unblocked
[   46.700339] ACPI: EC: event unblocked
[   46.701006] [drm] PCIE GART of 1024M enabled.
[   46.701008] [drm] PTB located at 0x000000F41FC00000
[   46.701022] amdgpu 0000:05:00.0: amdgpu: PSP is resuming...
[   46.718215] nvme nvme0: D3 entry latency set to 8 seconds
[   46.785804] nvme nvme0: 8/0/0 default/read/poll queues
[   46.886051] nvme nvme1: 8/0/0 default/read/poll queues
[   46.888712] nvme nvme1: Ignoring bogus Namespace Identifiers
[   47.404897] amdgpu 0000:05:00.0: amdgpu: reserve 0x400000 from 0xf41f800000 for PSP TMR
[   47.519008] amdgpu 0000:05:00.0: amdgpu: RAS: optional ras ta ucode is not available
[   47.529731] amdgpu 0000:05:00.0: amdgpu: RAP: optional rap ta ucode is not available
[   47.529734] amdgpu 0000:05:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[   47.529738] amdgpu 0000:05:00.0: amdgpu: SMU is resuming...
[   47.529775] amdgpu 0000:05:00.0: amdgpu: dpm has been disabled
[   47.530752] amdgpu 0000:05:00.0: amdgpu: SMU is resumed successfully!
[   47.531635] [drm] DMUB hardware initialized: version=0x01010028
[   48.246692] [drm] kiq ring mec 2 pipe 1 q 0
[   48.249836] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[   48.249882] [drm] JPEG decode initialized successfully.
[   48.249903] amdgpu 0000:05:00.0: amdgpu: ring gfx uses VM inv eng 0 on hub 0
[   48.249905] amdgpu 0000:05:00.0: amdgpu: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[   48.249906] amdgpu 0000:05:00.0: amdgpu: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[   48.249907] amdgpu 0000:05:00.0: amdgpu: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[   48.249907] amdgpu 0000:05:00.0: amdgpu: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[   48.249908] amdgpu 0000:05:00.0: amdgpu: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[   48.249909] amdgpu 0000:05:00.0: amdgpu: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[   48.249910] amdgpu 0000:05:00.0: amdgpu: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[   48.249910] amdgpu 0000:05:00.0: amdgpu: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[   48.249911] amdgpu 0000:05:00.0: amdgpu: ring kiq_0.2.1.0 uses VM inv eng 11 on hub 0
[   48.249912] amdgpu 0000:05:00.0: amdgpu: ring sdma0 uses VM inv eng 0 on hub 8
[   48.249913] amdgpu 0000:05:00.0: amdgpu: ring vcn_dec uses VM inv eng 1 on hub 8
[   48.249914] amdgpu 0000:05:00.0: amdgpu: ring vcn_enc0 uses VM inv eng 4 on hub 8
[   48.249914] amdgpu 0000:05:00.0: amdgpu: ring vcn_enc1 uses VM inv eng 5 on hub 8
[   48.249915] amdgpu 0000:05:00.0: amdgpu: ring jpeg_dec uses VM inv eng 6 on hub 8
[   48.298588] OOM killer enabled.
[   48.298590] Restarting tasks ... done.
[   48.299741] random: crng reseeded on system resumption
[   48.303777] thermal thermal_zone1: failed to read out thermal zone (-61)
[   48.562073] PM: suspend exit
[   48.612974] Process accounting resumed

When I run `sudo dmidecode | grep Wake-up` (as suggested in other threads) I get the following output

Wake-up Type: Power Switch

In case it matters, both of these outputs (and symptoms) are the same (at least as far as I can tell, but I can provide both versions if needed) whether the laptop is charging or not (though these are from when it's charging).

I'm a bit out of my depth here, and I don't really know how to procede. Anyone knows what could be going wrong? Thank you in advance!


EDIT. Additional symptom which I don't know if it's related or not, but if I'm not mistaken it appears on the same kernels where this symptom appears:

If I do this suspend-twice-to-see-what-happens game, and then shutdown, the laptop actually doesn't shutdown, it powers off and then immediately powers on without any input (so practically a reboot, except that with a reboot the keyboard never turns off, while this way it turns off for a second or so). If I shutdown again from this situation, it keeps doing the same thing (shutdown and then turn on) over and over. The only way to stop it is to actually willingly reboot AND THEN shutdown, and this way it stays off.

Viceversa, if I simply shutdown but without having every put the laptop to sleep since the last reboot, it stays off just fine, so I think the two issues might be related

Last edited by Fran314 (2024-05-24 15:05:55)

Offline

#2 2024-05-27 15:59:47

seth
Member
Registered: 2012-09-03
Posts: 62,677

Re: 81YM IdeaPad 5 14ARE05 immediately wakes up after suspend

https://bbs.archlinux.org/viewtopic.php … 4#p2169074 but these somehow revolve around the lid and the charger.
https://bbs.archlinux.org/viewtopic.php?id=295826 seems about nvidia, but your device doesn't have that, right?

However the users also reported issues (wakeup failure) when switching to S3, have you since then tested the behavior on s2idle?

Online

#3 2024-05-31 19:46:30

Fran314
Member
Registered: 2023-08-12
Posts: 4

Re: 81YM IdeaPad 5 14ARE05 immediately wakes up after suspend

I have tried blacklisting the ideapad_laptop module from the boot parameters like suggested in the first link, but it didn't make any difference. I've also tried using s2idle using `sudo echo s2idle > /sys/power/mem_sleep` and the result is that the computer doesn't wake up from sleep at all

Offline

Board footer

Powered by FluxBB