What does HackerNews think of auto-cpufreq?

Automatic CPU speed & power optimizer for Linux

Language: Python

#87 in Linux
#5 in Monitoring
#13 in Monitoring
A laptop I use for this function draws 10W on average, and that is without any additional tooling like:

https://github.com/AdnanHodzic/auto-cpufreq

AMD does automatically switch to a "power saving" profile on battery that lowers power consumption significantly vs on charger, but if you want, you can tweak even further with a fantastic tool: https://github.com/FlyGoat/RyzenAdj - it's a simple CLI util so easy to set up w/ udev rules to run automatically. On my old Ryzen laptop, I have it set to run `ryzenadj -f 48` when I go on battery, which limits the temperature below my laptop's fan hysteresis for a very efficient and totally silent system, and `ryzenadj -f 95` to set it back, but you can also adjust most power and clock parameters (not everything works on Ryzen 6000 yet, but the basics should). The docs/wiki are also great and has lots of charts illustrating what each setting does: https://github.com/FlyGoat/RyzenAdj/wiki/Renoir-Tuning-Guide

The other tool you could check out (and use in conjunction or instead of ryzenadj) is a tool called auto-cpufreq: https://github.com/AdnanHodzic/auto-cpufreq - it lets you switch governor and turbo/clock speeds automatically base on battery if you're just looking for a simpler way to set that.

5.19 has a bunch of amdgpu fixes that might fix some things https://lists.freedesktop.org/archives/dri-devel/2022-April/... but sadly there are often also sometimes regressions/weird bugs: https://gitlab.freedesktop.org/drm/amd/-/issues?page=90&sort...

Have you tried using TLP? https://linrunner.de/tlp/

There is also "Auto CPUfreq", but I have not tried it yet. Automatic CPU speed & power optimizer for Linux: https://github.com/AdnanHodzic/auto-cpufreq

Best way to find out if it'll help you is to try it out! It has 2 modes, "monitor" which help you evaluate what it would do for you without making any actual changes.

If you like what it suggest you can run it in "live" mode, which will make the suggested changes. But after you stop "live" mode after reboot all settings will go back to defaults.

If you're happy with results then and want to run it in background all the time proceed with "install".

Reference: https://github.com/AdnanHodzic/auto-cpufreq/#how-to-run-auto...

Also I suggest you watch auto-cpufreq demo Youtube video which explains it all: https://www.youtube.com/watch?v=QkYRpVEEIlg