Closed JCGoran closed 3 years ago
I also saw this already - it might be that upowerd (I think) is not properly available in the container? (System dbus not available?) But additionally the plug-in should not crash if a situation like this occurs...
After some time experimenting, I unfortunately didn't manage to run the power manager using this repo alone, however I did manage to make it work with x11docker by running x11docker schuellerf/xfce-test --init=systemd --sudouser --desktop startxfce4
, installing upower
and starting upower.service
as root. This makes my laptop's battery fully transparent to the container, which I'm guessing is a security risk, but works nicely.
Only thing I can't figure out is how to restart the already running instance of the power manager without crashing, seems to segfault when I call it with the --restart
flag.
The --restart
flag seems to works now, must've been doing something wrong before...still, not sure if I should close the issue as what I'm doing to run it is more of a workaround than a usable patch for the repo.
It actually seems to work for me / now.
I just tested the power manager plugin again and also for me it seems to work. @JCGoran please check and reopen the issue, maybe with some more debug output if it still does not work on your desk.
It seems to not segfault anymore on startup, but it won't display the battery info.
However, the same error occurs as above when I try to restart it using xfce4-power-manager --no-daemon
, without any other instances running.
I guess this can remain closed since it doesn't segfault anymore, but it's still somewhat annoying. I'm also attaching the debug log in case it's of any use.
P.S. maybe the upower
package should be installed by default in the container to get the battery info? Or is libupower-glib-dev
sufficient for that?
I created the followup #42
I am unable to get the power manager plugin to work in the container. Running
dmesg
reveals that it segfaults somewhere, and runningxfce4-power-manager --no-daemon
gives the following output:Any ideas what's causing this?