You are not logged in.

#1 2012-07-29 08:37:06

ares952
Member
Registered: 2009-11-08
Posts: 50

[solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

Hi,
I use xfce4 with slim manager.
After some of last update (I do not know what update, but may be it was caused by the yesterday update) something has broken and I can not poweroff, reboot or suspend to ram as a normal user.
Yesterday, I updated

btrfs-progs, chromium, libcups, libsystemd, cups, dnsutils, iana-etc, filesystem, systemd-tools, initscripts, iptables, leptonica, live-media, mpg123, netcfg, python2-numpy, texlive-bin, transmission-cli, transmission-gtk, virtualbox, whois 

.
The suspend to ram and poweroff are grayed (disabled), reboot is missing completely in menu.
The only action I am able to do is to logout and to lock screen.
I was searching on this forum, but with no success (e.g. to add in /etc/polkit-1/localauthority/50-local.d files org.freedesktop.restart.pkla, org.freedesktop.shutdown.pkla etc., what usually helps, but not in my case).

Do you have any idea how to fix it?

Thanks a lot.

Last edited by ares952 (2012-08-01 14:40:35)

Offline

#2 2012-07-29 08:54:27

ares952
Member
Registered: 2009-11-08
Posts: 50

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

I tried to manually dongrade systemd-tools and libsystemd, and it started working.
So I upgraded system again (with lib32-dbus-core, lib32-glib2, lib32-gtk2, lib32-readline) and it works again.
However, still I can not see reboot item in menu.

Offline

#3 2012-07-29 10:01:35

min
Member
Registered: 2011-05-14
Posts: 46

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

That is strange. I also have up to date systemd-tools and libsystemd and I still have those menu enabled. I don't use slim though. I just use this inside xinitrc

exec ck-launch-session dbus-launch startxfce4

Offline

#4 2012-07-29 14:47:33

ares952
Member
Registered: 2009-11-08
Posts: 50

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

min wrote:

That is strange. I also have up to date systemd-tools and libsystemd and I still have those menu enabled. I don't use slim though. I just use this inside xinitrc

exec ck-launch-session dbus-launch startxfce4

I tried this too (according to some advice in forum), however, it did not help, and wiki does not recomend this with slim.

I think this is not caused by slim, because when I start startxfce from commandline, the result is the same as with start using slim (even when I start it using

exec ck-launch-session dbus-launch startxfce4

)

Offline

#5 2012-07-29 14:53:54

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

Why are you using "exec ck-launch-session dbus-launch startxfce4" in your ~/.xinitrc?

https://wiki.archlinux.org/index.php/Xfce

If you are running an Xfce older than 4.10, you will have to use exec ck-launch-session startxfce4

Are you are running Xfce older than 4.10?


This is the correct, last line from your ~/.xinitrc:

exec startxfce4 --with-ck-launch

(unless you're using SLiM)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-07-29 15:33:10

ares952
Member
Registered: 2009-11-08
Posts: 50

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

I don't use exec ck-launch-session startxfce4 in my .xinitrc, but I tried it (according to some advice here). I know, that wiki does not recommend it.
When I use

exec startxfce4 --with-ck-launch

the items are disabled again and restart item is not still available.

Offline

#7 2012-07-29 21:14:03

min
Member
Registered: 2011-05-14
Posts: 46

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

DSpider wrote:

Why are you using "exec ck-launch-session dbus-launch startxfce4" in your ~/.xinitrc?

Are you are running Xfce older than 4.10?

Yes, It was leftover from xfce 4.8.  I don't know that xfce 4.10, should not use that one anymore. Thanks for the information.

Offline

#8 2012-07-30 13:03:09

ares952
Member
Registered: 2009-11-08
Posts: 50

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

Thank you, I think, the first problem was solved, however, the second, how to add reboot item to menu still is not. Does anybody know how to do it?

Offline

#9 2012-07-30 20:14:26

kett
Member
Registered: 2008-04-21
Posts: 104

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

I got it the shutdown/restart buttons to work with slim using the following command in ~/.xinitrc

exec dbus-launch --exit-with-session startxfce4

Offline

#10 2012-07-31 17:10:51

ares952
Member
Registered: 2009-11-08
Posts: 50

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

Unfortunately, it did not help :-(

Offline

#11 2012-07-31 17:27:15

kett
Member
Registered: 2008-04-21
Posts: 104

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

You also may need to add the user to the power group.

Offline

#12 2012-08-01 02:34:51

martadinata
Member
Registered: 2012-01-26
Posts: 26

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

somehow i just need exec dbus-launch startxfce4 on my ~/.xinitrc with slim

Offline

#13 2012-08-01 05:58:43

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

ares952 wrote:

Thank you, I think, the first problem was solved, however, the second, how to add reboot item to menu still is not. Does anybody know how to do it?

Try this (again, at the very end of your ~/.xinitrc):

exec dbus-launch startxfce4 --with-ck-launch

Last edited by DSpider (2012-08-01 05:59:36)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#14 2012-08-01 14:36:34

ares952
Member
Registered: 2009-11-08
Posts: 50

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

still nothing, with this command

exec dbus-launch startxfce4 --with-ck-launch

the available items for suspend to RAM and shutdown become grayed (disabled, but visible)

but there is no influence for item reboot or suspend to disk (still invisible)

Offline

#15 2012-08-01 14:40:12

ares952
Member
Registered: 2009-11-08
Posts: 50

Re: [solved] Xfce4 - user can not poweroff, reboot or suspend to ram ....

I am ashamed :-D
Sorry, but everything is my mistake, it is enough to enable these items in properties of the applet to make them visible :-D
I do not know how, but those items were disabled in properties.
Sorry, for this, my mistake.

solved :-)

Offline

Board footer

Powered by FluxBB