You are not logged in.

#1 2008-03-04 15:35:40

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Xfce, slim: no restart, no shutdown, just logout

Hi, everybody,

Using Wiki and forum search, installed slim; all is nice enough, except for the Xfce Quit dialog. The only available option is Log Out: neither Restart nor Shut Down for me. How to enable the rest?

Moreover, logout ends up with another login screen; just as it should, I guess smile

Last edited by Llama (2008-03-04 15:39:07)

Offline

#2 2008-03-04 16:09:54

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: Xfce, slim: no restart, no shutdown, just logout

I've not tested it lately but I always as a habit add users to the group "power"; at least it has been a requirement in the past.

If you installed xfce4 and xfce4-goodies you have all the packages needed. Instead of making some difficult configuration, all what should be needed is that HAL is added to the daemon section in "rc.conf" (if adding HAL you don't need to list dbus, because it will be loaded by HAL).

For XFCE4 4.4 this should allow you to as a user shutdown or restart the computer as much as like to.

Offline

#3 2008-03-04 16:35:55

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Xfce, slim: no restart, no shutdown, just logout

DAEMONS=(... ... hal) ? It's a newbie corner, after all smile .

Offline

#4 2008-03-04 16:45:56

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Xfce, slim: no restart, no shutdown, just logout

Can you post your .xinitrc?

Offline

#5 2008-03-04 17:00:55

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: Xfce, slim: no restart, no shutdown, just logout

Sorry Llama, it wasn't my intent to talk over your head.

If HAL alone doesn't allow shutdown/restart (from root): gpasswd -A your_user_name power

You're correct about where to add the daemon: /etc/rc.conf
I don't know if you start SLiM as a daemon as well, but if so put "hal fam" before "slim" (you need "fam", otherwise you desktop won't refresh).

Keep on asking if it doesn't make sense.

Offline

#6 2008-03-04 17:35:51

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: Xfce, slim: no restart, no shutdown, just logout

Thank you very much, KimTjik! The HAL makes no difference in this respect, though it must make a lot of difference in general smile . Adding myself to the power group did the thing; what is the meaning of this group (a newbie question smile )? What is fam? By the way, when I push either Restart or Shut Down buttons, and the desktop goes away, I see the console login prompt instead of the shutdown script output. Why?

Offline

#7 2008-03-04 17:49:17

KimTjik
Member
From: Sweden
Registered: 2007-08-22
Posts: 715

Re: Xfce, slim: no restart, no shutdown, just logout

I have to go now, but a short answer: look for the inittab method in the Wiki. Besides that, make sure you don't use both slim as a daemon and also getting slim started by the inittab method.

Bye, I have to go!

Offline

#8 2008-03-04 18:07:59

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: Xfce, slim: no restart, no shutdown, just logout

The wiki page on groups:  http://wiki.archlinux.org/index.php/Groups.

Offline

#9 2008-03-04 18:21:45

/devnull.nsb
Member
From: USA
Registered: 2008-03-03
Posts: 10

Re: Xfce, slim: no restart, no shutdown, just logout

WOW, Not to take our llama thread here... I was wondering the exact same thing...  Gotta love the forum so much info and the WIKI is awesome to boot.  smile

Offline

#10 2008-03-04 20:51:49

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Xfce, slim: no restart, no shutdown, just logout

What used to work for me when I used Xfce was to add a line to the /etc/sudoers file as root:

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

After doing that the shutdown and restart buttons show up when you quit.  Or at least it used to work that way.

Edit: Duh... and of course you would have to add yourself to a group called shutdown in /etc/group.

Last edited by bgc1954 (2008-03-05 15:57:17)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#11 2008-03-27 12:03:28

ST.x
Member
From: Sydney, Australia
Registered: 2008-01-25
Posts: 363
Website

Re: Xfce, slim: no restart, no shutdown, just logout

yea, I actually used the power group method when I first installed and forgot about it and just saw the sudoers file method. So if I do logout of xfce and X to do something in console then I cant reboot or shutdown while im a user right. The power group method only works if im in xfce?.. or just that if hal is running then I can shutdown reboot from the console anyway?

Offline

Board footer

Powered by FluxBB