What does HackerNews think of auto-cpufreq?
Automatic CPU speed & power optimizer for Linux
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...
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
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