Comment # 5 on bug 1222179 from Vichar B
(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/power-profiles-daemon.c#L988
> > 
> > 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/power-profiles-daemon.c#L954
> > 
> > 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: