[RESPONDED] AMD 7040 Sleep States

Is there any chance for an expansion in available sleep states via firmware or future AMD CPU’s? I only have access to s2idle, while the intel boards have both s2idle and deep options. I’d prefer to utilize deep to preserve more battery.

2 Likes

We’re using s2idle on the AMD boards. I am not sure what will or will not be in the future. I usually suspend to save my work, connect to power, leave my office.

1 Like

Not sure I understand this correctly. Does this mean that there is no suspend-to-ram or hibernation under Linux on the AMD Framework ? Does anyone have any numbers already on battery drain during s2idle on this platform ? I may have missed it, but a quick search did not turn up anything as far as I can tell. Leaving the laptop plugged in when not in use won’t work for me - it will be in my bag most of the time or used on-the-go. I usually only plug my laptop in when using it at my desk.

@JanW this is not scientific at all, but on Manjaro with the 6.1.55 kernel and the Ryzen 5 I lose about 6% per hour during sleep. No idea if this is bad or not, but I assumed it would be better. I have resorted to hibernate for now so it will actually get through a day.

Thanks for the info! As long as hibernate works, I assume I’ll be fine. I probably misunderstood the previous posts as meaning that hibernate is not supported on Linux.

Loosing 6% per hour in s2idle would not work for me, as that means that a fully charged battery barely lasts from 5pm to 9am the next morning.

1 Like

On a 55Wh battery that comes out to 3.3W, that’s pretty horrible, hell my t480s uses less idling with the screen on and that thing uses pretty old tech.

Hibernate is mostly software (store state to disk, load state from disk on boot), sleep needs more hardware support.

3 Likes

@Harrison_Asmar you might want to look into this, even if you aren’t using arch linux: Framework Laptop 13 - ArchWiki

3 Likes

Thanks for the pointer, that looks useful! I’ll keep the info around for when I get my laptop (batch 3 here).

I don’t have the 13" AMD (actually have a 16 for pre-order), but claims of 6% hourly battery life loss in standby make me suspect that the laptop might not be entering s0ix fully.

Intel has a S0ix self-test tool to check if their CPUs are entering s0ix. I remember running into a script that worked on AMD and required Secure Boot to be off on my previous Rembrandt-based ThinkPad, but I cannot find it anywhere. If anyone is able to find it, could anybody with the laptop run the test and report the results back?

All I can find is this, which is a good pointer, but I have not looked into it yet.

2 Likes

@Luca2 thanks for sharing! I’m not dealing with anywhere near that kind of power drain on s2idle with my amd 7040 framework 13, so I’m betting it’s either kernel config issue or some piece of hardware is causing the power drain and can be configured to be powered down in a dbus script or something similar.

Following up on my unscientific test before, I came across this -
https://community.frame.work/t/guide-linux-battery-life-tuning/6665/394
After removing TLP and re-enabling power-profile-daemon, I got 5% loss over a 7 hour period, which is much more reasonable.

7 Likes

Thanks for testing and reporting back here. This is very helpful!

Correct, for AMD only, you will want to use PPD.

PPD (power-profiles-daemon) (AMD ONLY)

For Framework Laptop 13 AMD Ryzen™ 7040 Series configurations, you will absolutely want to use power-profiles-daemon for the absolute best experience. Do NOT use TLP. Without getting too detailed, there are things happening behind the scenes that require PPD for the best experience for our Linux customers.

4 Likes

Are there instructions for disabling TLP and configuring power-profiles-daemon?
I see the recommendation for power-profiles-daemon for AMD in this Fedora article:

but no instructions for power-profiles-daemon use like there are for TLP

I’m on Ryzen 5 7640 and Fedora 39.

1 Like

On a vanilla installation, TLP would need to be installed. So no, there is no instructions for disabling something that you would have needed to install.

If you have manually installed TLP, you would want to remove it and reboot.

As it comes installed as a default, you have your three power modes available from the pull down menu, performance, balanced and power save. Not much more to add unless you have a specific question I can answer about using those modes?

Could you maybe elaborate a bit what problems are expected when using tlp on an AMD Framework? I set up my machine with tlp, probably following an old/not yet updated guide, and I have not encountered any problems yet. TLP seems to have increased battery life for me, so I have kept it installed until now, but I would like to know what kind of errors could be caused by it.

Hi @Marvin ,

We are just seeing PPD to be more optimized for AMD Ryzen 7040 Series for now, no apparent errors for TLP/Ryzen in my short observation in the forums.

cheers!

2 Likes

Correct, and the biggest optimization is that PPD doesn’t interfere with suspend.

My contact at AMD expressed that TLP will likely interfere with proper suspend behavior.

3 Likes

Thank you both for the fast reply! I have not noticed any problems with suspend. Until now the laptop has stayed suspended and is losing less than 1% battery per hour when suspended. But I will keep my eyes open.

1 Like

Sounds good :slight_smile:

1 Like