You are not logged in.

#1 2011-10-11 18:34:16

captainnochords
Member
Registered: 2011-10-11
Posts: 2

xfce4-power-manager will not run under regular user

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

#2 2011-10-11 20:36:38

scarecrow
Member
From: Greece
Registered: 2004-11-18
Posts: 715

Re: xfce4-power-manager will not run under regular user

Get sure you are running some sort of polkit, and/or add yourself to the "power" group.


Microshaft delenda est

Offline

#3 2011-10-11 20:55:30

HeSaid
Member
From: southwest Florida USA
Registered: 2010-07-02
Posts: 53

Re: xfce4-power-manager will not run under regular user

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

#4 2011-10-12 14:13:36

captainnochords
Member
Registered: 2011-10-11
Posts: 2

Re: xfce4-power-manager will not run under regular user

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

#5 2011-10-16 05:30:59

idupree
Member
Registered: 2010-02-21
Posts: 10

Re: xfce4-power-manager will not run under regular user

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

#6 2011-10-26 23:54:05

idupree
Member
Registered: 2010-02-21
Posts: 10

Re: xfce4-power-manager will not run under regular user

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

#7 2011-10-30 11:14:19

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: xfce4-power-manager will not run under regular user

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

Board footer

Powered by FluxBB