tuned-ppd: fails because of unknown profile
Nixpkgs version
- Unstable (26.05)
Describe the bug
when using tuneD on KDE plasma, it should work with the GUI which expects power-profiles-daemon. It worked fine on Fedora, but on NixOS it says "unsupported"
Steps to reproduce
use kde plasma 6 with tuned as powersave and tuned-ppd enabled
it is unsupported and I get following log in journalctl -r
Expected behaviour
it should translate tuned to ppd correctly or the other way around
Screenshots
No response
Relevant log output
journalctl -r
Mär 01 01:02:14 PC systemd[1]: tuned-ppd.service: Consumed 2.159s CPU time over 3.002s wall clock time, 45.6M memory peak, 41.1M read from disk.
Mär 01 01:02:14 PC systemd[1]: Failed to start PPD-to-TuneD API Translation Daemon.
Mär 01 01:02:14 PC systemd[1]: tuned-ppd.service: Failed with result 'exit-code'.
Mär 01 01:02:14 PC systemd[1]: tuned-ppd.service: Main process exited, code=exited, status=1/FAILURE
Mär 01 01:02:14 PC tuned-ppd[91410]: tuned.exceptions.TunedException: Unknown TuneD profiles in the configuration file: powersave-battery, performance-battery
Mär 01 01:02:14 PC tuned-ppd[91410]: raise TunedException("Unknown TuneD profiles in the configuration file: " + ", ".join(unknown_tuned_profiles))
Mär 01 01:02:14 PC tuned-ppd[91410]: File "/nix/store/48xjvv718ap4wkmihmb91zsgmcqr4q4f-tuned-2.26.0/lib/python3.13/site-packages/tuned/ppd/config.py", line 130, in load_from_file
Mär 01 01:02:14 PC tuned-ppd[91410]: ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
Mär 01 01:02:14 PC tuned-ppd[91410]: self.load_from_file(config_file)
Mär 01 01:02:14 PC tuned-ppd[91410]: File "/nix/store/48xjvv718ap4wkmihmb91zsgmcqr4q4f-tuned-2.26.0/lib/python3.13/site-packages/tuned/ppd/config.py", line 47, in __init__
Mär 01 01:02:14 PC tuned-ppd[91410]: ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mär 01 01:02:14 PC tuned-ppd[91410]: self._config = PPDConfig(PPD_CONFIG_FILE, self._tuned_interface)
Mär 01 01:02:14 PC tuned-ppd[91410]: File "/nix/store/48xjvv718ap4wkmihmb91zsgmcqr4q4f-tuned-2.26.0/lib/python3.13/site-packages/tuned/ppd/controller.py", line 374, in initialize
Mär 01 01:02:14 PC tuned-ppd[91410]: ~~~~~~~~~~~~~~~^^
Mär 01 01:02:14 PC tuned-ppd[91410]: self.initialize()
Mär 01 01:02:14 PC tuned-ppd[91410]: File "/nix/store/48xjvv718ap4wkmihmb91zsgmcqr4q4f-tuned-2.26.0/lib/python3.13/site-packages/tuned/ppd/controller.py", line 237, in __init__
Mär 01 01:02:14 PC tuned-ppd[91410]: controller = controller.Controller(bus, tuned_iface)
Mär 01 01:02:14 PC tuned-ppd[91410]: File "/nix/store/48xjvv718ap4wkmihmb91zsgmcqr4q4f-tuned-2.26.0/bin/.tuned-ppd-wrapped", line 54, in <module>
Mär 01 01:02:14 PC tuned-ppd[91410]: Traceback (most recent call last):
Mär 01 01:02:11 PC systemd[1]: Starting PPD-to-TuneD API Translation Daemon...
Additional context
No response
System metadata
- system:
"x86_64-linux" - host os:
Linux 6.18.13, NixOS, 26.05 (Yarara), 26.05.20260223.2fc6539 - multi-user?:
yes - sandbox:
yes - version:
nix-env (Nix) 2.31.3 - channels(root):
"nixos" - nixpkgs:
/nix/store/zkrz054gvl1dcxkw25d8lgx8l10px665-source
Notify maintainers
@getchoo
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
- [x] I assert that this is a bug and not a support request.
- [x] I assert that this is not a duplicate of an existing issue.
- [x] I assert that I have read the NixOS Code of Conduct and agree to abide by it.
Is this issue important to you?
Add a :+1: reaction to issues you find important.
these seem to be similar
https://github.com/NixOS/nixpkgs/issues/437649
https://github.com/NixOS/nixpkgs/issues/437649
I suppose it is because of these settings. When they are not enabled, it works:
services.tuned.ppdSettings = {
profiles = {
balanced = "balanced";
performance = "throughput-performance";
power-saver = "powersave";
};
battery = {
balanced = "balanced-battery";
performance = "performance-battery";
powersave = "powersave-battery";
};
main = {
default = "balanced";
battery_detection = true;
};
};
You have to change powersave to power-saver in the battery section... This config here works for me, I have the bazzite tuned profiles placed in /etc/tuned as per this config.
services.tlp.enable = false;
services.tuned.enable = true;
services.tuned.settings.daemon = true;
services.tuned.ppdSupport = true;
services.tuned.settings.profile_dirs = "/etc/tuned/";
services.tuned.ppdSettings = {
profiles = {
balanced = "balanced-bazzite";
performance = "throughput-performance-bazzite";
power-saver = "powersave-bazzite";
};
battery = {
balanced = "balanced-battery-bazzite";
performance = "balanced-bazzite";
power-saver = "powersave-battery-bazzite";
};
main = {
default = "balanced";
battery_detection = true;
};
};