The power-profiles-daemon process tries to save the current state to /var/lib/power-profiles-daemon/state.ini But if that folder does not exist, it gives a warning, and does not create the folder by itself. The workaround is to manually create the /var/lib/power-profiles-daemon directory, but this should be done by the ebuild, for instance: src_install() { ... keepdir /var/lib/power-profiles-daemon }
It is created by the systemd service file , how are you running it?
On openrc, I first ran it manually (and got the error message), then wrote a simple init script
Then I guess the best idea would be to add an init.d script that also creates the dir when needed... for the case you have one... Thanks!
I opened https://github.com/gentoo/gentoo/pull/30166 for this
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40417f0c131cb66e15dc4442a3104a4cfd295a91 commit 40417f0c131cb66e15dc4442a3104a4cfd295a91 Author: Julien Roy <julien@jroy.ca> AuthorDate: 2023-03-16 22:29:38 +0000 Commit: Pacho Ramos <pacho@gentoo.org> CommitDate: 2023-03-19 16:56:32 +0000 sys-power/power-profiles-daemon: add openrc init script Closes: https://bugs.gentoo.org/900901 Signed-off-by: Julien Roy <julien@jroy.ca> Closes: https://github.com/gentoo/gentoo/pull/30166 Signed-off-by: Pacho Ramos <pacho@gentoo.org> .../files/power-profiles-daemon.initd | 14 +++++ .../power-profiles-daemon-0.12-r1.ebuild | 73 ++++++++++++++++++++++ 2 files changed, 87 insertions(+)