tuned icon indicating copy to clipboard operation
tuned copied to clipboard

tuned-ppd EPP setting on AC/DC

Open spandruvada opened this issue 1 year ago • 4 comments

This issue is for tuned-ppd.

The EPP is not set correctly as power-profiles-daemon was doing. On AC power-profiles-daemon was setting balanced-performance and on DC balanced-power (I think this is relatively new change in PPD). But the new tuned-ppd package only sets balanced-performance always.

This commit from PPD, which implemented this: The PPD commit 3b4249d8e90f24c3aa910af83ab349ebf23935e5 sets balanced-power and balanced-performance for DC and AC, respectively.

spandruvada avatar Jun 20 '24 04:06 spandruvada

Hi! What version of TuneD are you running? This was implemented in the most recent version, 2.23.0, see #616.

zacikpa avatar Jun 20 '24 08:06 zacikpa

For me it does set up balance_power on battery (which is annoying due to https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/issues/151 )

ghost avatar Jun 21 '24 05:06 ghost

@stereomato You can fix that using the following /etc/tuned/ppd.conf:

[main]
# The default PPD profile
default=balanced
battery_detection=true

[profiles]
# PPD = TuneD
power-saver=powersave
balanced=balanced
performance=throughput-performance

[battery]
# PPD = TuneD
balanced=balanced

You then need to restart tuned and (I think) tuned-ppd.

This ensures that when you're on battery power, the energy performance preference is set to balance_performance instead of balance_power.

yorickpeterse avatar Jul 14 '24 23:07 yorickpeterse

@yorickpeterse yes, exactly, thank you for the response. Just to clarify, only tuned-ppd needs to be restarted for the change to take effect.

Alternatively, one can simply leave out the [battery] section from the configuration file and set battery_detection=false; the result will be the same.

@stereomato Using the configuration file, you can also experiment with other mappings to TuneD profiles, if the default ones do not suit you.

zacikpa avatar Jul 15 '24 09:07 zacikpa