[Bug 1222179] New: openSUSE Tumbleweed 20240328 breaks power-profiles-daemon
https://bugzilla.suse.com/show_bug.cgi?id=1222179 Bug ID: 1222179 Summary: openSUSE Tumbleweed 20240328 breaks power-profiles-daemon Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Major Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: eazyvg@gmail.com QA Contact: qa-bugs@suse.de Target Milestone: --- Found By: --- Blocker: --- Since the update the Power Profile stopped working, it is not being loaded during the boot up. Previously it was working fine on KDE. [code] vg@VG-835G10Nix:~> sudo systemctl status power-profiles-daemon.service [sudo] password for root: × power-profiles-daemon.service - Power Profiles daemon Loaded: loaded (/usr/lib/systemd/system/power-profiles-daemon.service; enabled; preset: disabled) Active: failed (Result: exit-code) since Sat 2024-03-30 07:54:35 MSK; 15min ago Duration: 264us Process: 1633 ExecStart=/usr/libexec/power-profiles-daemon (code=exited, status=1/FAILURE) Main PID: 1633 (code=exited, status=1/FAILURE) CPU: 16ms Mar 30 07:54:35 VG-835G10Nix systemd[1]: power-profiles-daemon.service: Scheduled restart job, restart counter is at 5. Mar 30 07:54:35 VG-835G10Nix systemd[1]: power-profiles-daemon.service: Start request repeated too quickly. Mar 30 07:54:35 VG-835G10Nix systemd[1]: power-profiles-daemon.service: Failed with result 'exit-code'. Mar 30 07:54:35 VG-835G10Nix systemd[1]: Failed to start Power Profiles daemon. [/code] -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222179 Vichar B <eazyvg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Found By|--- |Other -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222179 https://bugzilla.suse.com/show_bug.cgi?id=1222179#c3 --- Comment #3 from Vichar B <eazyvg@gmail.com> --- Yes, downgrading did initiate the power-profile-daemon as it should and thus is working. The question is could it be the issue as Power-Profiles-Daemon 0.20 is now living under the UPower umbrella ... switch project to the freedesktop ‘Upower’ group? Hope soon a fix will be released/updated in the tumbleweed repo. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222179 https://bugzilla.suse.com/show_bug.cgi?id=1222179#c5 --- Comment #5 from Vichar B <eazyvg@gmail.com> --- (In reply to Florian from comment #4)
Xiang Fan <sfanxiang@gmail.com> already found the cause of the issue over at boo#1219956:
Hi all, this service currently fails to start with the following error message:
$ sudo bash -c 'STATE_DIRECTORY=/var/lib/power-profiles-daemon G_MESSAGES_DEBUG=all /usr/libexec/power-profiles-daemon' power-profiles-daemon is already running, or it cannot own its D-Bus name. Verify installation.
This is because power-profiles-daemon tries to acquire both the legacy dbus name "net.hadess.PowerProfiles" and the new name "org.freedesktop.UPower.PowerProfiles" on startup:
https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/blob/0.20/src/...
Note that L988 installs the `name_lost_handler`. When the legacy name fails, the entire service exits with error:
https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/blob/0.20/src/...
I'd expect that carefully removing all references to POWER_PROFILES_LEGACY_* in power-profiles-daemon.c would fix this. I haven't tested this solution though.
I've submitted https://build.opensuse.org/request/show/1163727 which just re-adds the missing "net.hadess.PowerProfiles" dbus service. Simply doing what upstream does seems more reasonable than "heavy" patching.
The package might need an additional security review according to rpmlint, but it should work (well, at least seems to on my machine), altho I haven't tested it thoroughly.
Thanks for creating the request! -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222179 Chenzi Cao <chcao@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|screening-team-bugs@suse.de |badshah400@gmail.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222179 Emiliano Langella <emiliano.langella@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |emiliano.langella@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222179 https://bugzilla.suse.com/show_bug.cgi?id=1222179#c7 --- Comment #7 from Taroe Leohearts <leohearts@leohearts.com> --- (In reply to Florian from comment #6)
Btw, if anyone is also running power-profiles-deamon 0.20, have you noticed that its seemingly unable to store/reload it's previous state and always falls back to "Balanced" on reboot, or is that an issue on my side?
When I was running 0.20, this didn't happen on my machine. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222179 https://bugzilla.suse.com/show_bug.cgi?id=1222179#c8 --- Comment #8 from H <leodream2008@gmail.com> --- (In reply to Florian from comment #6)
Btw, if anyone is also running power-profiles-deamon 0.20, have you noticed that its seemingly unable to store/reload it's previous state and always falls back to "Balanced" on reboot, or is that an issue on my side?
Same behavior and I had to manually switch to "performance" mode after every reboot. Thinkpad x1 carbon gen9. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com