Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tuned-ppd EPP setting on AC/DC #645

Open
spandruvada opened this issue Jun 20, 2024 · 4 comments
Open

tuned-ppd EPP setting on AC/DC #645

spandruvada opened this issue Jun 20, 2024 · 4 comments

Comments

@spandruvada
Copy link

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.

@zacikpa
Copy link
Contributor

zacikpa commented Jun 20, 2024

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

@stereomato
Copy link

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 )

@yorickpeterse
Copy link

@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.

@zacikpa
Copy link
Contributor

zacikpa commented Jul 15, 2024

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants