Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Xfce power manager plugin crash
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Astronome
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 148

PostPosted: Thu Jul 21, 2016 5:50 pm    Post subject: [Solved] Xfce power manager plugin crash Reply with quote

I installed xfce-extra/xfce4-powermanager in order to get a brightness indicator in the panel. Now, when I try to add the power manager plugin to the panel, it crashes with the following message:

Code:

Plugin "Power Manager Plugin" unexpectedly left the panel, do you want to restart it?

The plugin restarted more than once in the last 60 seconds. If you press Execute the panel will try to restart the plugin otherwise it will be permanently removed from the panel.


If I hit "Execute" it does the same thing.

xfce4-power-man is running:

Code:

$ pgrep -l xfce
2541 xfce4-session
2558 xfce4-panel
2570 xfce4-power-man
2640 xfce4-terminal


If I run xfce4-power-manager from the command line, nothing happens. But if I run xfce4-power-manager-settings it throws up:

Code:

$ xfce4-power-manager-settings

(xfce4-power-manager-settings:2665): libupower-glib-WARNING **: Couldn't connect to proxy: Could not connect: No such file or directory

(xfce4-power-manager-settings:2665): GLib-GIO-CRITICAL **: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed


Sorry if this is a duplicate. I've searched around but can't find this exact error message. I figure it's related to either dbus, consolekit, policykit or upower. I'm trying to avoid systemd creep with the following USE flags:

Code:

USE="alsa bindist gtk3 X -gnome -introspection


Also, the restart, shut down, suspend and hibernate options are greyed out in the session menu. It might be related.


Last edited by Astronome on Fri Jul 22, 2016 6:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
Astronome
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jan 2016
Posts: 148

PostPosted: Fri Jul 22, 2016 6:19 pm    Post subject: Reply with quote

Derp, I read this part of the wiki but didn't register it:

Quote:
When experiencing authorization or permissions issues within xfce4 in a OpenRC profile (symptoms include being unable to open power manager and unable to suspend/hibernate) be sure the sys-auth/consolekit package has been merged with the pm-utils flag set.


I had to change my USE flags to the following:

Code:
USE="alsa bindist consolekit dbus gtk gtk3 policykit X -gnome -introspection"


The consolekit, dbus and policykit flags pull in their respective packages and add support for lxdm and xfce to do authentication magic stuff:

Code:

$ equery h consolekit
 * Searching for USE flag consolekit ...
[IP-] [  ] lxde-base/lxdm-0.4.1-r9:0
[IP-] [  ] sys-auth/pambase-20150213:0

$ equery h policykit
 * Searching for USE flag policykit ...
[IP-] [  ] sys-auth/consolekit-1.1.0:0
[IP-] [  ] sys-block/gparted-0.26.0:0
[IP-] [  ] xfce-base/xfce4-session-4.12.1:0
[IP-] [  ] xfce-extra/xfce4-power-manager-1.5.2:0


The gtk flag is necessary for polkit to display a graphical password prompt - not really related to this issue but it allows me to launch e.g. gparted from the system menu instead of the terminal.

Also, I had to add this to package.use:

Code:
sys-auth/consolekit pm-utils


Finally, I had to add dbus and consolekit services to default runlevel.

Sytemd creep be damned. I'm fine with this.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum