You are not logged in.

#1 2012-04-07 22:42:06

Winblowz99
Member
Registered: 2007-03-24
Posts: 27

Unable to shutdown, suspend, hibernate, or reboot from XFCE4

As the title says, XFCE4 does not give me the option to shutdown, suspend, hibernate, or reboot from XFCE4 - only to logout.  I use a login manager - LXDM. In addition, when I try to shutdown or reboot from LXDM it will not work for whatever reason, so basically I must use the command line right now to shutdown.  I read the XFCE wiki and it says to add "exec ck-launch-session startxfce4" to ~/.xinitrc, which I have done. I have also added both my user and the root user to the "power" group.  I have searched everywhere on these forums, and have seen some similar problems posted from other people, but cannot find a resolution to my own problem.

Offline

#2 2012-04-07 22:55:52

andesho91
Member
From: London, UK
Registered: 2011-11-20
Posts: 71

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

I'm not going to be of much help as I am busy revising for my exam at the moment, but I'm pretty sure that you need either policykit or consolekit running on login to XFCE4 to get the shutdown, reboot and suspend from XFCE4. I will get back to you when I have a rummage around my own XFCE4 in arch.

EDIT: I can confirm that I have polkit, polkit-gnome and consolekit installed and in the session and startup, I have the ``PolicyKit Authentication Agent'' ticked. So, unless you have already done this, you need to enable PolicyKit (although I use mate by default, so don't take my word for it).

Last edited by andesho91 (2012-04-07 23:08:59)


Laptop: AMD A4-3305M, 4GB RAM, Archlinux 64bit with XFCE4 and Linux Mint Maya with MATE.

Offline

#3 2012-04-08 00:04:40

Winblowz99
Member
Registered: 2007-03-24
Posts: 27

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

It appears I already have polkit and consolekit installed (but not gnome-polkit since I'm using xfce)...

Offline

#4 2012-04-08 03:07:37

johnsonlg9
Member
Registered: 2012-04-08
Posts: 1

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

Have you tried commenting out the if statement in ~/.xinitrc, as suggusted in the XFCE wiki page here, right above this:

https://wiki.archlinux.org/index.php/Xf … ithin_Xfce

Something like this:

#!/bin/sh

#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 ck-launch-session startxfce4

If I remember right that's what eventually fixed it for me.

Offline

#5 2012-04-08 06:08:29

oboedad55
Member
From: Baku
Registered: 2011-04-05
Posts: 392

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

Winblowz99 wrote:

As the title says, XFCE4 does not give me the option to shutdown, suspend, hibernate, or reboot from XFCE4 - only to logout.  I use a login manager - LXDM. In addition, when I try to shutdown or reboot from LXDM it will not work for whatever reason, so basically I must use the command line right now to shutdown.  I read the XFCE wiki and it says to add "exec ck-launch-session startxfce4" to ~/.xinitrc, which I have done. I have also added both my user and the root user to the "power" group.  I have searched everywhere on these forums, and have seen some similar problems posted from other people, but cannot find a resolution to my own problem.

I think you just need to add "dbus-launch" after "ck-launch-session".


Registered Linux user #436067

Offline

#6 2012-04-09 10:33:16

andesho91
Member
From: London, UK
Registered: 2011-11-20
Posts: 71

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

I just had a look for my own ~/.xinitrc file and just to make things even better for you, my system doesn't have one and yet both mate an XFCE4 run perfectly... Should I be worried? I will say that I do have d-bus as a daemon though. I also use gdm-old from the AUR, so that may be why it all works.

Last edited by andesho91 (2012-04-09 10:34:48)


Laptop: AMD A4-3305M, 4GB RAM, Archlinux 64bit with XFCE4 and Linux Mint Maya with MATE.

Offline

#7 2012-04-09 12:26:44

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,436
Website

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

You need to install polkit-gnome and restart.  Without it Xfce doesn't have a policykit authentication agent and policykit controls mounts, restart, etc.

Offline

#8 2012-04-09 13:34:13

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

andesho91 wrote:

I also use gdm-old from the AUR, so that may be why it all works.

Correct. gdm-old (and the new gdm too I think) don't use the ~/.xinitrc file.

Offline

#9 2012-04-09 18:13:34

andesho91
Member
From: London, UK
Registered: 2011-11-20
Posts: 71

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

anonymous_user wrote:
andesho91 wrote:

I also use gdm-old from the AUR, so that may be why it all works.

Correct. gdm-old (and the new gdm too I think) don't use the ~/.xinitrc file.

Oh, so that's it. As dtw says, I think this maybe it, since I remember having a load of difficulties with this until I installed something polkit in my previous installation (which I broke quite epically), with SLiM and LXDE.


Laptop: AMD A4-3305M, 4GB RAM, Archlinux 64bit with XFCE4 and Linux Mint Maya with MATE.

Offline

#10 2012-04-11 03:42:20

Winblowz99
Member
Registered: 2007-03-24
Posts: 27

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

dtw wrote:

You need to install polkit-gnome and restart.  Without it Xfce doesn't have a policykit authentication agent and policykit controls mounts, restart, etc.

I tried this, and still, no success. Granted, i'm not sure if there are any additional steps I must take after installing that package?...

Offline

#11 2012-04-13 01:07:55

Winblowz99
Member
Registered: 2007-03-24
Posts: 27

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

I've tried searching and tinkering some more, and I found out that when I do /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 to manually start gnome-polkit, I get the following output:

 (polkit-gnome-authentication-agent-1:8238): polkit-gnome-1-WARNING **: Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ExecFailed: Failed to execute program /usr/lib/dbus-1.0/dbus-daemon-launch-helper: Success 

Offline

#12 2012-04-13 10:29:57

rbjlls
Member
Registered: 2012-04-13
Posts: 2

Re: Unable to shutdown, suspend, hibernate, or reboot from XFCE4

XFCE4 does not need polkit-gnome. I had the same problem last night after and update, however after an update this morning with a new polkit package everything is working fine again.

Offline

Board footer

Powered by FluxBB