You are not logged in.
I tried searching the forums, googling the problem and the error messages I got for a few hours but I really don't know what to do here.
A few days ago the power manager applet in xfce stopped appearing. Pulling up the application finder allows me to search for power manager settings. If I try to run it I get a message that "Xfce4 Power Manager is not running, do you want to launch it now?" with the options "No" and "Run". Choosing run does nothing. Running "xfce4-power-manager" does nothing. Running "xfce4-power-manager-settings" brings up "Xfce power manager is not running" in the terminal and the same dialog box as before. I have tried the terminal options as user and as root. If I log in as root the applet automatically comes up.
I found https://bbs.archlinux.org/viewtopic.php?id=84816 so I tried adding "ck-launch-session" to my ~/.xinitrc to no effect.
The laptop is a Lenovo Thinkpad Edge E420s, Arch is the only OS installed, using SLiM and Xfce.
Thanks for helping.
Offline
Get sure you are running some sort of polkit, and/or add yourself to the "power" group.
Microshaft delenda est
Offline
One of my installations is a Levovo thinkpad Edge with slim and xfce4. I will check it as soon as possible for this issue and report back if there if it is present.
Have you these lines in your ~/.xinitrc ?
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
###if [ -d /etc/X11/xinit/xinitrc.d ]; then
### for f in /etc/X11/xinit/xinitrc.d/*; do
### [ -x "$f" ] && . "$f"
### done
### unset f
###fi
# exec gnome-session
# exec startkde
exec ck-launch-session startxfce4
# ...or the Window Manager of your choice
User permission problems arise if those 6 lines (###) are not commented out.
--
Neal
Registered Linux User 159445.
Offline
Those lines were not commented out, but changing that has not solved the problem.
I am part of the power group.
When I first installed Arch I was using Gnome 3 and later moved to xfce. I do have a process called polkit-gnome-authentication-agent-1. I don't really know anything about polkit so I'll try to do some research on that to see if I can figure out if there are any issues with it.
The thing is this happened very recently so I would think a polkit issue shouldn't just appear, should it?
Offline
For what it's worth, I have this issue too. (I found this post by searching for my issue.)
I've been using XFCE for a while (used to use GNOME). XFCE power manager is in the GUI autostart list. Since upgrading -Syu from Sept 29 to Oct. 13, it fails to start with the symptoms described above. I start X with startx and an xinitrc that contains `exec ck-launch-session startxfce4` (it has been this way for ages).
I checked /var/log/pacman.log and nothing XFCE was even upgraded in that upgrade. Perhaps it quietly depended on some GTK/GNOME component that changed in the GNOME 3.0->3.2 upgrade that happened in that upgrade?
TODO:
-Syu again (and reboot) to check whether it's been recently fixed. If not, file in bugs.archlinux.org (That is the recommended place for non-upstream bugs. (I hope it's just a packaging bug, not an upstream bug!))
Offline
I found an upstream bug report: https://bugzilla.xfce.org/show_bug.cgi?id=7999
That bug report mentions "xfce4-power-manager --no-daemon" followed by a particular error message which I get too when I run that command, so I think it is the same bug.
Offline
Working here with the same setup on a Lenovo X220. Not exactly sure what was required for power manager to work as regular user. It was a work in progress from an Arch Newbie.
Here is my /home/~/.xinitrc
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
exec startxfce4
# ...or the Window Manager of your choice
# start xbindkeys
exec xbindkeys
Here is my login command in /etc/slim.conf;
login_cmd exec ck-launch-session /bin/bash -login ~/.xinitrc %session
Here is my Daemons line in /etc/rc.conf:
DAEMONS=(hwclock syslog-ng network netfs crond dbus avahi-daemon cupsd acpid nvram)
Here are the groups my user belongs to:
lp kmem wheel games video audio optical storage scanner power users
Here is my /etc/polkit-1/localauthority/50-local.d/org.freedesktop.upower.pkla
[Local hibernate]
Identity=unix-user:myself
Identity=unix-group:power
Action=org.freedesktop.upower.hibernate
ResultAny=yes
ResultInactive=no
ResultActive=yes
[Local suspend]
Identity=unix-user:myself
Identity=unix-group:power
Action=org.freedesktop.upower.suspend
ResultAny=yes
ResultInactive=no
ResultActive=yes
And finally, here is my /etc/polkit-1/localauthority/50-local.d/org.freedesktop.consolekit.pkla
[Local restart]
Identity=unix-user:myself
Identity=unix-group:power
Action=org.freedesktop.consolekit.system.restart
ResultAny=yes
ResultInactive=no
ResultActive=yes
[Local shutdown]
Identity=unix-user:myself
Identity=unix-group:power
Action=org.freedesktop.consolekit.system.stop
ResultAny=yes
ResultInactive=no
ResultActive=yes
[Local restart - multiple]
Identity=unix-user:myself
Identity=unix-group:power
Action=org.freedesktop.consolekit.system.restart-multiple-users
ResultAny=yes
ResultInactive=no
ResultActive=yes
[Local shutdown - multiple]
Identity=unix-user:myself
Identity=unix-group:power
Action=org.freedesktop.consolekit.system.stop-multiple-users
ResultAny=yes
ResultInactive=no
ResultActive=yes
Last edited by David Batson (2011-10-30 11:19:14)
Offline