Skip to content

profiles: Add balanced-battery profile, since profiles cant be mapped#4

Open
ptr1337 wants to merge 1 commit intocachyosfrom
fix-config
Open

profiles: Add balanced-battery profile, since profiles cant be mapped#4
ptr1337 wants to merge 1 commit intocachyosfrom
fix-config

Conversation

@ptr1337
Copy link
Member

@ptr1337 ptr1337 commented Mar 20, 2026

Currently tuned is broken since passing same profile, twice which is blocked by tuned.

Add an own battery profile for balanced.

Logs:

Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]: Traceback (most recent call last):
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:   File "/usr/bin/tuned-ppd", line 53, in <module>
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:     controller = controller.Controller(bus, tuned_iface)
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/controller.py", line 237, in __init__
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:     self.initialize()
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:     ~~~~~~~~~~~~~~~^^
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/controller.py", line 386, in initialize
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:     self._config = PPDConfig(PPD_CONFIG_FILE, self._tuned_interface)
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:                    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/config.py", line 47, in __init__
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:     self.load_from_file(config_file)
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/config.py", line 139, in load_from_file
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]:     raise TunedException("Duplicate profile mapping in the configuration file '%s'" % config_file)
Mär 20 17:22:56 cachyos-x8664 tuned-ppd[1497]: tuned.exceptions.TunedException: Duplicate profile mapping in the configuration file '/etc/tuned/ppd.conf'
Mär 20 17:22:56 cachyos-x8664 systemd[1]: tuned-ppd.service: Main process exited, code=exited, status=1/FAILURE
Mär 20 17:22:56 cachyos-x8664 systemd[1]: tuned-ppd.service: Failed with result 'exit-code'.
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]: Traceback (most recent call last):
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:   File "/usr/bin/tuned-ppd", line 53, in <module>
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:     controller = controller.Controller(bus, tuned_iface)
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/controller.py", line 237, in __init__
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:     self.initialize()
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:     ~~~~~~~~~~~~~~~^^
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/controller.py", line 386, in initialize
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:     self._config = PPDConfig(PPD_CONFIG_FILE, self._tuned_interface)
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:                    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/config.py", line 47, in __init__
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:     self.load_from_file(config_file)
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/config.py", line 139, in load_from_file
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]:     raise TunedException("Duplicate profile mapping in the configuration file '%s'" % config_file)
Mär 20 17:23:07 cachyos-x8664 tuned-ppd[2157]: tuned.exceptions.TunedException: Duplicate profile mapping in the configuration file '/etc/tuned/ppd.conf'
Mär 20 17:23:07 cachyos-x8664 systemd[1]: tuned-ppd.service: Main process exited, code=exited, status=1/FAILURE
Mär 20 17:23:07 cachyos-x8664 systemd[1]: tuned-ppd.service: Failed with result 'exit-code'.
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]: Traceback (most recent call last):
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:   File "/usr/bin/tuned-ppd", line 53, in <module>
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:     controller = controller.Controller(bus, tuned_iface)
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/controller.py", line 237, in __init__
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:     self.initialize()
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:     ~~~~~~~~~~~~~~~^^
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/controller.py", line 386, in initialize
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:     self._config = PPDConfig(PPD_CONFIG_FILE, self._tuned_interface)
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:                    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/config.py", line 47, in __init__
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:     self.load_from_file(config_file)
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:     ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:   File "/usr/lib/python3.14/site-packages/tuned/ppd/config.py", line 139, in load_from_file
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]:     raise TunedException("Duplicate profile mapping in the configuration file '%s'" % config_file)
Mär 20 17:23:08 cachyos-x8664 tuned-ppd[2383]: tuned.exceptions.TunedException: Duplicate profile mapping in the configuration file '/etc/tuned/ppd.conf'

… twice

Signed-off-by: Peter Jung <admin@ptr1337.dev>
@1Naim
Copy link
Member

1Naim commented Mar 20, 2026

maybe something like below is preferable

[main]
summary=CachyOS balanced battery profile
include=cachyos-powersave

[acpi]
platform_profile=balanced

[video]
panel_power_savings=0 # or 1

also not sure what video.radeon_powersave should be set at. I would say we keep dpm-battery for now and bump it to balanced if its harming performance too much.

@ventureoo
Copy link
Member

I prefer @1Naim solution, since I really don't want to create too many profiles for PPD only.

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

Successfully merging this pull request may close these issues.

3 participants