linrunner / TLP

TLP - Optimize Linux Laptop Battery Life
https://linrunner.de/tlp
GNU General Public License v2.0
2.51k stars 129 forks source link

AMD cpu with amd_pstate=active using amd-pstate-epp driver doesn't switch energy_performance_preference #742

Closed zyf0330 closed 2 months ago

zyf0330 commented 2 months ago

[x] I've read and accepted the Bug Reporting Howto [x] I've provided all required tlp-stat outputs via Gist (see below)

Describe the bug

I use AMD cpu with kernel option amd_pstate=active and amd-pstate-epp driver. The energy_performance_preference config doesn't switch respecting tlp.conf.

Expected behavior The energy_performance_preference config switch.

To Reproduce

Steps to reproduce the unexpected behavior:

  1. Does the problem occur on battery or AC or both? both

  2. Actions to reproduce the behaviour always exist

  3. Full output of tlp-stat via https://gist.github.com/ for all matching cases of 1 (not as file attachment, no screenshots) https://gist.github.com/zyf0330/1b5d014b089b8cfefd0fa8ec913cdddc Additional context

Add any other context about the problem here.

linrunner commented 2 months ago

EPP for AMD was only added with TLP version 1.6.

Please read the documentation before opening issues:

Thanks for your attention.

Duplicate og #732

zyf0330 commented 2 months ago

Sorry, just tried google search and had no result.

linrunner commented 2 months ago

You are also welcome to use the modest search function on the TLP website: https://linrunner.de/tlp/search.html?q=amd-pstate&check_keywords=yes&area=default

zyf0330 commented 2 months ago

You are also welcome to use the modest search function on the TLP website: https://linrunner.de/tlp/search.html?q=amd-pstate&check_keywords=yes&area=default

Thanks, I did that after then.

nlgranger commented 3 weeks ago

I'm actually hitting this bug with 1.6.1. energy_performance_preference remains in performance mode.

Kernel boot parameter: amd_pstate=active tlp-stat and tlp.conf: https://gist.github.com/nlgranger/cf375a9b7b74eeecc0bf72fb05aea7e0

Is /sys/devices/system/cpu/cpu*/cpufreq/energy_performance_preference supposed to be writable? echoing the desired mode (balance_power) returns write: Unknown error 524.