Bug 208095

Summary: Cant use sleep/hibernate (hibernate now works, sleep does not) - HP envy x360, AMD Ryzen 5 3500U
Product: ACPI Reporter: Luis (luis)
Component: Power-Sleep-WakeAssignee: acpi_power-sleep-wake
Status: RESOLVED IMPLEMENTED    
Severity: high CC: bob.hepple, mario.limonciello, rui.zhang
Priority: P1    
Hardware: Other   
OS: Linux   
Kernel Version: 5.7.7-arch1-1 Subsystem:
Regression: No Bisected commit-id:

Description Luis 2020-06-07 07:06:01 UTC
I have a HP envy x360 ds-0155ng laptop with a AMD Ryzen 5 3500U APU (Vega 8)
I installed Arch on it sucesfully but noticed that sleep/hibernate does not work.
As I installed Arch without a swapfile I created one since hibernate needs one (I normally dont create a swap file and sleep has always worked on my older machines). But with no improvemnt. Whenever I try to go into sleep/hibernate, the Power LED stays on and nothing happens. If I then try closing and opening the lid I sometimes get my cursor to show and some graphical glitches but always the same result I have to force my laptop to restart. After some testing I found that apperently no S states exept S0 (power on) are supported?

dmesg | grep -i acpi | grep supports
[    0.698332] ACPI: (supports S0)
[    0.712058] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI HPX-Type3]

➜  ~ cat /sys/power/state
freeze mem disk
➜  ~ cat /sys/power/mem_sleep
[s2idle]
there should be deep sleep there as an option but it isnt there. I tried asking in different forums but no one was able to help me. I am using the open source meta drivers that are in the Arch repositorys.
I tried the install usbs of multiple distros to see if it was a problem with my install but all with the same Results.
Comment 1 Luis 2020-06-09 05:10:07 UTC
Using Kernel 5.7 Hibernation now works. Suspend has the same issue
Comment 2 Luis 2020-06-11 06:00:23 UTC
Kernel 5.7.2-arch1-1 same problem. Hibernation works but suspend does not.
Comment 3 Luis 2020-06-18 10:12:57 UTC
Kernel 5.7.3-arch1-1 same problem
Comment 4 Luis 2020-06-19 14:43:28 UTC
Kernel 5.7.4-arch1-1 same problem
Comment 5 Bob Hepple 2020-08-18 07:16:12 UTC
Sounds kinda like my bug https://bugzilla.kernel.org/show_bug.cgi?id=208871

Can you try 5.6.19?
Comment 6 Bob Hepple 2020-08-18 23:40:31 UTC
I just tried today latest (https://github.com/torvalds/linux.git commit 18445bf405cb331117bc98427b1ba6f12418ad17) - which is a 5.9 pre-release - and suspend started to work again!