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
antheasOP•10mo 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
Kyle Gospo
Kyle Gospo•10mo ago
Default tuned behavior
antheas
antheasOP•10mo ago
what does tuned do
Kyle Gospo
Kyle Gospo•10mo 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
antheasOP•10mo ago
either of those things dont seem like they would help with games
Kyle Gospo
Kyle Gospo•10mo ago
Which is the default
antheas
antheasOP•10mo ago
over just hardcoding the settings
Kyle Gospo
Kyle Gospo•10mo ago
It can, EPP will boost single core speed as needed Very cool stuff
antheas
antheasOP•10mo ago
yeah but is that tuned or epp
Kyle Gospo
Kyle Gospo•10mo ago
Powersave behaves completely differently under pstate Tuned is just configuring epp Once it's done it does nothing CPU's job
antheas
antheasOP•10mo ago
im trying to add cpu options to help with battery use what do i do
Kyle Gospo
Kyle Gospo•10mo ago
I would only focus on TDP Let tuned handle further power saving with sysctl stuff
antheas
antheasOP•10mo ago
what about on non tuned systems
Kyle Gospo
Kyle Gospo•10mo ago
That's driven through GNOME & KDE They all are
antheas
antheasOP•10mo ago
yeah bazzite is
Kyle Gospo
Kyle Gospo•10mo ago
Oh you just mean in general
antheas
antheasOP•10mo 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
Kyle Gospo
Kyle Gospo•10mo ago
Hold on, I'll get to a more complete answer here shortly
Ripplingsnake
Ripplingsnake•10mo 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
antheasOP•10mo ago
im getting more confused
antheas
antheasOP•10mo ago
find the swear word in this picture
No description
Ripplingsnake
Ripplingsnake•10mo 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
antheasOP•10mo 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
antheasOP•10mo ago
i still dont understand what all those daemons do
Kyle Gospo
Kyle Gospo•10mo 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
antheasOP•10mo 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
Kyle Gospo
Kyle Gospo•10mo ago
ppd/tuned will do that
antheas
antheasOP•10mo ago
Like power save on full power
Kyle Gospo
Kyle Gospo•10mo 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
antheasOP•10mo 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
Kyle Gospo
Kyle Gospo•10mo ago
No description
Kyle Gospo
Kyle Gospo•10mo ago
I don't know about PPD, but TuneD has this built in again, driven by PPD dbus
antheas
antheasOP•10mo 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
antheasOP•10mo ago
🤔
No description
antheas
antheasOP•10mo ago
now who will switch off my wifi when i undock
antheas
antheasOP•10mo ago
its true it does do that
No description
antheas
antheasOP•10mo 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
Want results from more Discord servers?
Add your server