Bug 204445 - suspend not working with Asus X370-PRO - AMD Ryzen 7 1700
Summary: suspend not working with Asus X370-PRO - AMD Ryzen 7 1700
Status: RESOLVED INVALID
Alias: None
Product: Power Management
Classification: Unclassified
Component: Hibernation/Suspend (show other bugs)
Hardware: x86-64 Linux
: P1 normal
Assignee: Rafael J. Wysocki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-03 14:30 UTC by Peter
Modified: 2020-05-26 07:25 UTC (History)
4 users (show)

See Also:
Kernel Version: 5.2.4
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Peter 2019-08-03 14:30:39 UTC
Hello,

I'm unable to use suspend to ram with my computer.

When calling "systemctl suspend", the system just powers off.

How could I make it work please? Is this a known issue with my MB?

The test with "echo core >/sys/power/pm_test" does not fail.

Here are more details: https://bugzilla.opensuse.org/show_bug.cgi?id=1143295

TIA for any hints, Peter
Comment 1 Borislav Petkov 2020-02-07 21:01:34 UTC
Can you build latest kernel - 5.5 - boot with "no_console_suspend" and do as root:

# echo "suspend" > /sys/power/disk
# echo "mem" > /sys/power/state

To check whether it suspends?

But it is an ASUS BIOS so I wouldn't put my hopes up. ;-\
Comment 2 Peter 2020-03-20 10:12:47 UTC
(In reply to Borislav Petkov from comment #1)
> Can you build latest kernel - 5.5 - boot with "no_console_suspend" and do as
> root:
> 
> # echo "suspend" > /sys/power/disk
> # echo "mem" > /sys/power/state
> 
> To check whether it suspends?
> 
> But it is an ASUS BIOS so I wouldn't put my hopes up. ;-\

The system just powers off...

Tested with linux-5.5.7 (openSUSE-Tumbleweed-KDE-Live-x86_64-Snapshot20200314-Media.iso).

Could you please recommend an MB for me, where s2ram works?

TIA, Peter
Comment 3 Borislav Petkov 2020-03-20 10:44:09 UTC
(In reply to Peter from comment #2)
> The system just powers off...

This is expected.

Question is, does it wake up after you press the Fn or the Power button?

Also, check your BIOS whether there are settings about suspend and
they're enabled.

> Tested with linux-5.5.7
> (openSUSE-Tumbleweed-KDE-Live-x86_64-Snapshot20200314-Media.iso).
> 
> Could you please recommend an MB for me, where s2ram works?

Hard to say. I've had good experience with MSI boards but that doesn't
mean a whole lot.
Comment 4 Peter 2020-03-20 11:16:31 UTC
(In reply to Borislav Petkov from comment #3)

> Question is, does it wake up after you press the Fn or the Power button?

No, and the green led is not blinking. I need to power-cycle the whole unit.


> Also, check your BIOS whether there are settings about suspend and
> they're enabled.

Yes, I've already done that. I've spent very much time with looking and testing various Bios setting. Even the Asus assistance could not help...
Comment 5 Borislav Petkov 2020-03-20 11:28:51 UTC
You could have a look at https://www.kernel.org/doc/html/latest/power/index.html

and especially try:

https://www.kernel.org/doc/html/latest/power/basic-pm-debugging.html
https://www.kernel.org/doc/html/latest/power/swsusp.html

and see what works, maybe you'll be able to debug it more.

Also, do not use a live CD but a properly installed kernel on a distro partition.

HTH.
Comment 6 Peter 2020-03-28 11:24:50 UTC
(In reply to Borislav Petkov from comment #5)

> You could have a look at
> https://www.kernel.org/doc/html/latest/power/index.html
> 
> and especially try:
> 
> https://www.kernel.org/doc/html/latest/power/basic-pm-debugging.html
> https://www.kernel.org/doc/html/latest/power/swsusp.html
> 
> and see what works, maybe you'll be able to debug it more.

Thanks. But I've spent already too much time with this issue and now I've found this page:

https://www.reddit.com/r/AMD_Linux/comments/6iwyc2/asus_prime_x370_pro_linux_support/#CommentTopMeta--Created--t1_djg4w3j

So it seems, that normally it works and my board is just broken.
I think, I'll give up and look for another MB...
Comment 7 Peter 2020-05-26 07:25:26 UTC
Hello,

I've found the solution: after changing the power supply, everything works as expected!

Sorry for the noise...

Kind regards, Peter

Note You need to log in before you can comment on or make changes to this bug.