You are not logged in.

#1 2024-08-27 23:09:44

Mezzy12
Member
Registered: 2022-01-14
Posts: 41

[SOLVED] Thinkpad T14 Gen 5 AMD consumes too much power in sleep mode

Hello!

I recently purchased a Lenovo T14 Gen 5 with AMD 8840U CPU and I'm having trouble with power consumption while the computer sleeps. (i.e. I close the lid)

The laptop stays warm as if I am using it and guzzles battery power (drained about 50% in two-ish hours). The laptop seems to be to be warmer than expected at idle, too.

The mem_sleep states are as follows.

# cat /sys/power/mem_sleep
[s2idle]

So, 'modern sleep' only.

cpupower shows the following:

cpupower frequency-info
analyzing CPU 6:
  driver: amd-pstate-epp
  CPUs which run at the same hardware frequency: 6
  CPUs which need to have their frequency coordinated by software: 6
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 400 MHz - 5.13 GHz
  available cpufreq governors: performance powersave
  current policy: frequency should be within 400 MHz and 5.13 GHz.
                  The governor "powersave" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 4.03 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: yes
    AMD PSTATE Highest Performance: 196. Maximum Frequency: 5.13 GHz.
    AMD PSTATE Nominal Performance: 126. Nominal Frequency: 3.30 GHz.
    AMD PSTATE Lowest Non-linear Performance: 42. Lowest Non-linear Frequency: 1.10 GHz.
    AMD PSTATE Lowest Performance: 16. Lowest Frequency: 400 MHz.

I am on Linux 6.10.6.
Running sway window manager.
Updated my firmware with fwupdmgr. No difference.
Can't find any options in bios what would expose S3 sleep.

Thanks in advance for any help!

EDIT: Issue solved. See ektor's post below.

Last edited by Mezzy12 (2024-09-12 18:40:22)

Offline

#2 2024-09-02 11:56:11

Wereii
Member
Registered: 2024-06-25
Posts: 6

Re: [SOLVED] Thinkpad T14 Gen 5 AMD consumes too much power in sleep mode

You could try debugging it with this script:

https://gitlab.freedesktop.org/drm/amd/ … _s2idle.py

Last edited by Wereii (2024-09-02 11:56:22)

Offline

#3 2024-09-02 18:40:37

Mezzy12
Member
Registered: 2022-01-14
Posts: 41

Re: [SOLVED] Thinkpad T14 Gen 5 AMD consumes too much power in sleep mode

Hey, just tried that there. The script reports back that, "suspend must be initiated by root."

What's the proper way to fix this for s2idle to work?

And thanks for getting back to me, was beginning to worry that my post slipped through the cracks!
Cheers mate.

Offline

#4 2024-09-03 19:24:13

linuxsimpleton43
Member
Registered: 2022-03-24
Posts: 33

Re: [SOLVED] Thinkpad T14 Gen 5 AMD consumes too much power in sleep mode

The s2idle test script requires the root user to function. Run

sudo amd_s2idle-analysis

Offline

#5 2024-09-09 15:32:48

Mezzy12
Member
Registered: 2022-01-14
Posts: 41

Re: [SOLVED] Thinkpad T14 Gen 5 AMD consumes too much power in sleep mode

It does work when run as root, but I'm still getting the problem where the laptop runs warm and consumes too much power when in sleep mode. I was under the impression that for whatever reason the tool was telling me it needed the requirements met as a user in order to properly initiate s2idle.

EDIT: When run as user, the script also says:

netlink error: Operation not permitted
? MSR checks unavailable

Last edited by Mezzy12 (2024-09-09 16:26:18)

Offline

#6 2024-09-11 13:05:09

Ektor-5
Member
Registered: 2010-01-27
Posts: 3

Re: [SOLVED] Thinkpad T14 Gen 5 AMD consumes too much power in sleep mode

There is a known problem in the firmware: https://lore.kernel.org/all/ZnFYpWHJ5Ml724Nv@ohnotp/

To workaround add `acpi.ec_no_wakeup=1` to the kernel cmdline.
 
Ek5

EDIT: I already tried it with a similar laptop build (P14s Gen5 AMD) that had the same issue and solved it

Last edited by Ektor-5 (2024-09-11 13:07:53)

Offline

#7 2024-09-12 13:30:25

Mezzy12
Member
Registered: 2022-01-14
Posts: 41

Re: [SOLVED] Thinkpad T14 Gen 5 AMD consumes too much power in sleep mode

Thanks ektor. I will try that and get back to you on how that works out for me!

EDIT: It worked! big_smile

Last edited by Mezzy12 (2024-09-12 18:39:45)

Offline

Board footer

Powered by FluxBB