You are not logged in.

#1 2007-02-14 13:04:06

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

A lot of talk has been done about shutdown in xfce4, but the problem still exist in some or other forms. Till recently i was able to shutdown from from XFCE4-svn GUI without any problem. I tried this http://bbs.archlinux.org/viewtopic.php?id=26369 which was later included in wiki http://wiki.archlinux.org/index.php/All … o_shutdown. Recently, i changed to xfce4.4 and now I'm not able to shutdown/reboot from GUI using quit from menu. Whenever I do so, it asks for password, but if I type halt or reboot on console, it does not ask for any password and works fine. I have tried all the options in wiki. On shutting down using quit from menu and providing password, it does work but also gives the following error:

**(xfce4-session:3110): WARNING **: xfsm-shutdown-helper.c :134: Failed to contact HAL: A security policy in place prevents this sender from seding this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.SystemPowrManagement" member "This MEthodMustNotExistInHal" error name "(unset)" destination "org.freedesktop.hal")
**Message: xfsm-shutdown-helper.c:215: HAL not available or does not permit to shutdown/reboot the computer, trying sudo falback instead.

The application "xfce-mcs-manager" lost its connection to teh display:0.0; most likely the X server was shutdown or you killed/destroyed the application.

Waiting for X server to shutdown .FreeFontPath: FPE "/usr/share/fonts/misc" refcount is 2, should be 1; fixing.

note: I noted down the above error message after logging out and not shutting down or reboot, since after shutting down or reboot, the message is displayed only for few seconds and I am not able to note down, but both the messages are same to my understanding.

There was some suggestion in this thread http://bbs.archlinux.org/viewtopic.php?id=29566, but I could not make out the meaning of restarting dbus.

Offline

#2 2007-02-14 13:35:35

baze
Member
Registered: 2005-10-30
Posts: 393

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

the easiest and preferred way is to make sure that hal is running and add your user to the "power" group.

Offline

#3 2007-02-14 14:30:25

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

If you add the user to power group, does not it make the system a little insure. Also, i have added hal in deamons line in rc.conf and hence hal is running.

Offline

#4 2007-02-14 15:12:08

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

# cat /etc/group | grep hal
optical::93:hal
floppy:x:94:hal
storage:x:95:hal
hal:x:82:

so i'd say u need to be in the hal group; but more liekly s baze suggested.. power ...
i personally don't see how this makes the system insecure ...
if i had to be honest, i run as root exclusively.

and have had hack attempts in the past, but i guess they were too much of a noob to get pass the router.


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#5 2007-02-15 02:53:34

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

but why the methods described in wiki (other than adding user to power group) not working with xfce4.4? any clues.

Offline

#6 2007-02-15 05:53:36

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

I use the fourth option shown in the wiki and it works fine.


I am a gated community.

Offline

#7 2007-02-15 11:28:03

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

 The fourth option, under XFCE is to install sudo. Then add the following line to /etc/sudoers using the visudo -f command. For all users: 
%users hostname=NOPASSWD:/opt/xfce4/libexec/xfsm-shutdown-helper

Incidently, this used to work for me, but not anymore.

Offline

#8 2007-05-08 12:41:37

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

In the wiki, it says to add the following line visudo file

%users hostname=NOPASSWD:/opt/xfce4/libexec/xfsm-shutdown-helper

but I found that xfsm-shutdown-helper is located in /usr/libexce in my system instead of the above said location. So, I changed the path in visudo, but still I cannot shutdown directly from xfce4 and need to supply password. Any sugggestions.

Offline

#9 2007-05-08 15:23:21

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

This works for me:

%shutdown ALL=(root) NOPASSWD: /usr/lib/xfce4/xfsm-shutdown-helper

Either you change %shutdown to %users or you create a new group called shutdown and add your user to it. Don't forget to relogin.

hightower

Offline

#10 2007-05-09 14:03:07

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

Do u have xfsm-shutdown-helper in /usr/lib/xfce4/xfsm-shutdown-helper. In my system, it is in /usr/libexec and I changed the path accordingly but it did not work.

Offline

#11 2007-05-09 16:03:20

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

Yes, my path is right. Which version of xfce do you use? SVN or "normal"?

hightower

Offline

#12 2007-05-10 01:03:22

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

I'm using xfce4 svn.

Offline

#13 2007-05-10 09:22:42

hightower
Member
Registered: 2006-04-02
Posts: 182

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

Have you tried xfce out of the [extra] repository?
Perhaps it's a problem in the SVN trunk *shrug*

hightower

Offline

#14 2007-05-10 13:59:24

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

No, i havent tried that. I will check that.

Offline

#15 2007-05-10 18:50:29

madcircle
Member
Registered: 2007-05-10
Posts: 2

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

I had this error until a few minutes ago!
Something is fishy cause I had to restart and log out and what not to finally get all three buttons lit up in the shutdown-helper-box.
(e.g. xfsm-shutdown-helper finally found Hal.)

* Made sure Hal was installed and able to run.
* Added my user to the "power" group.
* Exited the X-session and logged out the user.
* Ran "/etc/rc.d/hal stop" then "/etc/rc.d/hal start"
* Also rebooted completely after this ('cause it still didn't work).
* Logged in with my user and started XFCE4 and tried to shut down... vóila... didn't work...
* Exited the X-session again, did some policy-file reading, restarted X with startxfce4 (as I always do)... and for some reason shutdown now works...?

I know, very scientific...

I installed the system pretty recently, have current, extra and community enabled for pacman, just installed xfce4 with pacman -S xfce4 and took it all,
don't know which version it defaults to but it seemed to grab the lot from [extra] and I'd guess non-SVN.

Edit: And I missed that you preferred to use the sudo option so just disregard this text-blob.
Edit: Oh, and first post, yay... liking every minute with arch so far! smile

Last edited by madcircle (2007-05-10 19:00:25)

Offline

#16 2007-05-20 05:00:41

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: XFCE4.4 Shutdown does not work from GUI/wiki tips of no help

I uninstalled xfce4-svn and installed xfce4. Then I visudo I added this as recommended in arch wiki

%users hostname=NOPASSWD:/opt/xfce4/libexec/xfsm-shutdown-helper

Still could not get the shutdown thing working.

then i did this:

locate xfsm-shutdown-helper

and it was found in /usr/lib/xfce4 and hence i changed that accordingly in visudo as

%users hostname=NOPASSWD:/usr/lib/xfce4/xfsm-shutdown-helper

still it did not work..

In the bening when this problem started, I remember I had done

chmod +s /sbin/halt

does that affect in anyway.

Also, when i shutdown or reboot after providing the password, it says some policy in hal does not allow shutdown.

I'm confused..

Offline

Board footer

Powered by FluxBB