fixed: Re: polkit does not start
karu.pruun at gmail.com
Sun Jan 25 22:01:03 PST 2015
On Sun, Jan 25, 2015 at 6:01 PM, John Marino wrote:
> On 1/25/2015 09:58, karu.pruun wrote:
>> On Sun, Jan 25, 2015 at 8:36 AM, John Marino wrote:
>>> On 1/25/2015 06:15, karu.pruun wrote:
>>>> Turns out it was supposed to be a UID. In the end, the error was with
>>>> credentials passing in devel/glib20 that polkitd uses. The attached
>>>> patch fixes it:
>>>> - copy the patch to /usr/dports/devel/glib20/dragonfly/
>>>> - make install
>>>> All the problems listed above go away:
>>>> -upowerd crashes
>>>> -ConsoleKit can't make a session active
>>>> -X login is freezing a minute or two
>>>> -The session menu of xfce is freezing also for some time
>>>> -any logoff from xfve is freezing temporarilly and leaves some
>>>> applications opened.
>>>> I haven't tested xdm etc though.
>>>> I'll try to get it to dports on github.
>>> Nice, can you start at https://github.com/DragonFlyBSD/DPorts/issues/26
>>> and see if that's really the same issue? It's one of our oldest
>>> unresolved issues.
>> Sure, can you tell me what is the port it belongs to? Or is it the
>> /usr/local/libexec/upowerd of
>> that you mean? It used to core dump but now (or at least so far) it's
>> running fine with the mate desktop I'm using.
>> I don't have a kde4 desktop on this machine but will get it next week
>> so I can see if it's working with kde4 as well (or if someone has it
>> and can test).
> It's a generic issue.
> I think you misunderstood. I just wanted to know if the issue seen
> there is probably the same one you think you solved. If it is, you'd
> leave your patch on that issue instead of creating a new one.
> the basic issue is that upowerd coredumps due to a misconfigured polkit
> and I never could figure out how to make it happy.
As far as I can see, the KDE4 power management works after applying
the patch to glib20. Before patching I get this error message:
---KDE4---BEFORE glib20 patch---
kded(187211) PowerDevil::BackendLoader::loadBackend: Loading HAL backend...
kded(187211) PowerDevil::BackendLoader::loadBackend: Failed!
kded(187211): KDE Power Management System init failed!
whereas after patching there's success:
---KDE4---AFTER glib20 patch---
kded(213382) PowerDevil::BackendLoader::loadBackend: Loading HAL backend...
kded(213382) PowerDevil::BackendLoader::loadBackend: Success!
kded(213382) KDEDPowerDevil::init: Backend loaded, loading core
kded(213382) PowerDevil::Core::loadCore: Core loaded, initializing backend
kactivitymanagerd(213392)/nepomuk (library): Could not find virtuoso backend
kactivitymanagerd(213392)/nepomuk (library): Could not find virtuoso
to connect to. Aborting
kded(213382) PowerDevil::Core::onBackendReady: Backend is ready, KDE
Power Management system initialized
and you get upowerd running fine. As you say, it goes back to upowerd,
which won't start without polkitd; many other things won't start
either, so after patching and launching system dbus and hald, there
are less errors in the kde log. And the mate desktop log, which now
works nicely with the system dbus and hald.
If you tell me this resolves the issue, I'll submit the patch.
I submitted the patch to the GLib people as well but don't know if
it'll be accepted. If yes, it'll be less work for DPorts.
More information about the Users