TDP Optimization

Let us discuss TDP optimization on battery, with settings which should not affect desktop use much The hhd plugin for TDP now works properly for all ryzen processors and is tuned specifically for the go and ally, It also offers a large bunch of generic options for all AMD APUs that should be fun to tune. With the TDP part now out of the way, lets discuss governors, pstate, epp, GPU clocks etc that should be helpful for energy optimization as well.
No description
No description
37 Replies
antheas
antheas•4mo ago
Not the steam deck APU yet, thats too old I was told the best right now is using AMD pstate EPP with power or balanced power, with the governor powersave then, to adjust CPU/GPU bias, the GPU clock can be used to smother either the CPU or GPU in case a game has a preference to either of those
1/4 Life
1/4 Life•4mo ago
Default tuned behavior
antheas
antheas•4mo ago
what does tuned do
1/4 Life
1/4 Life•4mo ago
It's a replacement for Power Profiles Daemon It's balanced setting will use power save and epp params on any pstate compatible cpu
antheas
antheas•4mo ago
either of those things dont seem like they would help with games
1/4 Life
1/4 Life•4mo ago
Which is the default
antheas
antheas•4mo ago
over just hardcoding the settings
1/4 Life
1/4 Life•4mo ago
It can, EPP will boost single core speed as needed Very cool stuff
antheas
antheas•4mo ago
yeah but is that tuned or epp
1/4 Life
1/4 Life•4mo ago
Powersave behaves completely differently under pstate Tuned is just configuring epp Once it's done it does nothing CPU's job
antheas
antheas•4mo ago
im trying to add cpu options to help with battery use what do i do
1/4 Life
1/4 Life•4mo ago
I would only focus on TDP Let tuned handle further power saving with sysctl stuff
antheas
antheas•4mo ago
what about on non tuned systems
1/4 Life
1/4 Life•4mo ago
That's driven through GNOME & KDE They all are
antheas
antheas•4mo ago
yeah bazzite is
1/4 Life
1/4 Life•4mo ago
Oh you just mean in general
antheas
antheas•4mo ago
whats driven through ? if you want i can add an env variable for you so it gets nuked but you should know that simple decky tdp does this tuning as well right now so its a big mess out there
1/4 Life
1/4 Life•4mo ago
Hold on, I'll get to a more complete answer here shortly
Ripplingsnake
Ripplingsnake•4mo ago
I am using pstate guided and ondemand governor and prefcore the ondemand governor has been tweaked, it default is to wait till a cpu core is 95% loaded before it engages more threads or cores, this is set now to 66. The ally hates sharp increases in cpu usage and tends to tank gpu as a result frame times suffer, by setting this to 66% the cpu is more evenly loaded and makes the frame times so much smoother 🙂 hope this helps
antheas
antheas•4mo ago
im getting more confused
antheas
antheas•4mo ago
find the swear word in this picture
No description
Ripplingsnake
Ripplingsnake•4mo ago
Me too it’s a rats nest I do t think there is going to be a magical setting it’s just trial and error on what works best for the user, some of us play plugged in all the time and want max performance others want to extend battery as long as possible
antheas
antheas•4mo ago
the whole tuned ppd thing is hurting my brain https://gitlab.freedesktop.org/upower/power-profiles-daemon
GitLab
upower / power-profiles-daemon · GitLab
Makes power profiles handling available over D-Bus.
antheas
antheas•4mo ago
i still dont understand what all those daemons do
1/4 Life
1/4 Life•4mo ago
PPD just sets 3 profiles Power save, balanced, and performance It's purely sysctl stuff Tuned does the same sort of thing and more And tuned-ppd is a replacement for PPD that offers the same dbus api But powered by tuned instead PPD is built into both KDE and GNOME That's all it does
antheas
antheas•4mo ago
Sure, will try to work with it Hopefully they let me set governors in-game because they told me management requires some weird stuff
1/4 Life
1/4 Life•4mo ago
ppd/tuned will do that
antheas
antheas•4mo ago
Like power save on full power
1/4 Life
1/4 Life•4mo ago
so all you'd need to do is fire off pdd dbus calls if you want a simple 3-profile selector there's a call to get the current profile too
antheas
antheas•4mo ago
I don't and that will cause problems on the ally Because I have to set the platform profile to adjust the tdp parameters Because it got merged into the kernel and I'm using that So every time I set the tdp ppd will mess with the governors I need to install it and see what it does
1/4 Life
1/4 Life•4mo ago
No description
1/4 Life
1/4 Life•4mo ago
I don't know about PPD, but TuneD has this built in again, driven by PPD dbus
antheas
antheas•4mo ago
Yes that's it I'm using that through sysfs directly since ppd provides basic desktop functionality it will need to be supported I was wondering where those energy dials that were on ubuntu went
antheas
antheas•4mo ago
🤔
No description
antheas
antheas•4mo ago
now who will switch off my wifi when i undock
antheas
antheas•4mo ago
its true it does do that
No description
antheas
antheas•4mo ago
Power profile is only supported by the ally right now, so this setting is just confusing. I actually dont know why my system has a platform profile without a driver yet