LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   XFCE 4.6 Cannot shutdown, reboot or suspend system from XFCE (https://www.linuxquestions.org/questions/slackware-14/xfce-4-6-cannot-shutdown-reboot-or-suspend-system-from-xfce-4175431419/)

lpallard 10-09-2012 09:55 PM

XFCE 4.6 Cannot shutdown, reboot or suspend system from XFCE
 
Hi,

running Slack64 13.37 with stock XFCE version 4.6.2 (Xfce 4.6), rebooting, suspend to RAM or shutting down the machine normaly works but randomly and for no apparent reasons, I no longer can perform these actions from within XFCE. When I click the XFCE menu and then "Log Out" and then one of the actions above, I get a pop up asking "Please enter your password".

Typing my user's password doesn't work and I get "Either the password you entered is invalid, or the system administrator disallowed shutting down this machine from your user account" (something similar).

I have to use a console and then use SU's login to launch a "showdown -h now" to halt, or -r to reboot.. not very useful..

I had this issue in the past (I have found my old threads when I was on Slack 13.1 & 12.2), but never found a reliable or working solution.. What normally happens is that the issue suddenly disappears just as it randomly appeared at first. For this time, I have been running the exact same system for 6 months, and everything was fine until about 3 days ago when I got this annoyance again...

Must be a setting somewhere in the system that gets re-written when I log in or out??? Or a bug in XFCE?

People have suggested to add

Code:

%users ALL=(root) NOPASSWD: /usr/libexec/xfsm-shutdown-helper
to /etc/sudoers

but if I do this, when I try to log out I get a large message saying:

Code:

Failed to suspend session

Suspend and Hibernate are only supported through HAL, which is unavailable

Anybody can help?
Thanks!!

animeresistance 10-09-2012 10:18 PM

Think it is a bug in there, but i'm not sure, :|

Wonder if this is in slackware 14's xfce ...

Just a question, your user has priviledge of sudoer ?

ReaperX7 10-09-2012 10:46 PM

Did you add your user account to the Wheel group? If not, add it, and then check. It should work.

kabamaru 10-10-2012 01:11 AM

Is HAL running?
Code:

ps xa | grep hald
If not is it executable?
Code:

ls -l /etc/rc.d/rc.hald
If not:
Code:

su -
chmod +x /etc/rc.d/rc.hald

and:
Code:

/etc/rc.d/rc.hald start

waddles 10-10-2012 02:48 AM

XFCE 4.6 Cannot shutdown, reboot or suspend system from XFCE
 
I am not certain but I believe making users part of wheel is a security problem.
Users are normally needed only on: lp, dialout, audio, video, cdrom, plugdev, and scanner, as needed.
I think I remember this problem was solved for me by reading "mail" which comes with the installation.

AlleyTrotter 10-10-2012 10:41 AM

quick shutdown reboot
 
quit
Code:

ck-launch-session dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop
boot
Code:

ck-launch-session dbus-send --system --print-reply --dest="org.freedesktop.ConsoleKit" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart
I use these two small oneliners in /usr/local/bin
14.0 but should work fine in 13.37
not a fix for your problem, but a work around
john

TobiSGD 10-10-2012 12:08 PM

Quote:

Originally Posted by waddles (Post 4801885)
Users are normally needed only on: lp, dialout, audio, video, cdrom, plugdev, and scanner, as needed.

I would recommend to add the power group to this list, this may solve your problems.

lpallard 10-14-2012 08:03 PM

Quote:

Just a question, your user has priviledge of sudoer ?
Yes

Quote:

Is HAL running?
Yes

Code:

bash-4.1$ ps xa | grep hald
 2241 ?        Ssl    0:00 /usr/sbin/hald --daemon=yes
 2314 ?        S      0:00 hald-runner
 2343 ?        S      0:00 hald-addon-input: Listening on /dev/input/event0 /dev/input/event3 /dev/input/event6 /dev/input/event5 /dev/input/event1 /dev/input/event2 /dev/input/event4
 2350 ?        S      0:00 /usr/libexec/hald-addon-generic-backlight
 2364 ?        S      0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
 2365 ?        S      0:02 hald-addon-storage: polling /dev/sr0 (every 2 sec)
10702 pts/0    R+    0:00 grep hald

Quote:

Did you add your user account to the Wheel group?
Not manually.

Quote:

I would recommend to add the power group to this list, this may solve your problems.
OK. According to KUser, my user is not a member of the power & wheel groups.

Trying to add my user to the "power" & "wheel" groups via command line with:

Code:

useradd -G power userid
useradd -G wheel userid

returns

Code:

useradd: user 'userid' already exists
However

Code:

groups userid
returns only

Code:

userid : users dialout
So apparently KUser does not seems to be too sharp by not talking the same stuff as the rest of the system??? In KUser the checkboxes beside power & wheel for my user are NOT checked.

AlleyTrolley, the commands you suggested will only stop and restart the XFCE environment wont they?? So it will be only a temporary workaround?

EDIT: Now plugging a USB thumbdrive I am getting an error message saying:

Quote:

Failed to mount "8G Removable Volume".
Rejected send message, 1 matched rules; type="method_call", sender=":1.63" (uid=1000 pid=10912 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=2241 comm="/usr/sbin/hald)).
Wouldn't there be something wrong with my HAL???

T3slider 10-14-2012 08:07 PM

Code:

usermod -a -G power userid
is the correct command. useradd tried to create a *new* user, which is obviously not going to work. You may wish to run the following:
Code:

usermod -a -G audio cdrom floppy plugdev video power netdev userid
to add your user to the other recommended groups as well (for other reasons).

lpallard 10-14-2012 08:22 PM

Quote:

is the correct command. useradd tried to create a *new* user, which is obviously not going to work. You may wish to run the following:
Obviously.... Sorry I tried while too tired.. Thats what happens..

But it is still not working.

Maybe reinstalling HAL? is it possible? Which packages should I reinstall ?

T3slider 10-14-2012 08:25 PM

You have to completely log out and back in to reload the user groups. If it doesn't work after that (or a reboot), then I don't know what to say, but I'd just like to make sure it isn't just failing because the group permissions haven't been updated.

lpallard 10-14-2012 08:32 PM

Logged out and back in. Not working.

:(

lpallard 10-16-2012 07:36 AM

Quote:

EDIT: Now plugging a USB thumbdrive I am getting an error message saying:

Quote:
Failed to mount "8G Removable Volume".
Rejected send message, 1 matched rules; type="method_call", sender=":1.63" (uid=1000 pid=10912 comm="exo-mount) interface="org.freedesktop.Hal.Device.Volume" member="Mount" error name="(unset)" requested_reply=0 destination="org.freedesktop.Hal" (uid=0 pid=2241 comm="/usr/sbin/hald)).
Wouldn't there be something wrong with my HAL???
It also happens with inserting a CD or DVD..... Whats wrong with my setup? Everything was working fine until about 2 weeks ago when I started to have problems.. Could it be a package that I installed? If so, is there a way to list all packages by installation date so I can track which one(s) are causing problems??

kabamaru 10-16-2012 08:42 AM

Quote:

Maybe reinstalling HAL? is it possible? Which packages should I reinstall ?
You could try re-installing HAL (although I don't think that's the prob) with:
Code:

slackpkg reinstall hal
How do you login to X11? startx? KDM? If you use startx i.e. a .xinitrc is used, try running xwmconfig to regenerate this file, and see if it helps.

Does root experience the same issues? Btw you can check the groups your user is a member of with:
Code:

groups USERNAME

lpallard 10-16-2012 04:44 PM

Before I reinstall HAL, I will answer some of your questions..

I am logging with KDM (the KDE login screen). To automate the GUI login I have modified the /etc/inittab and modified with

Code:

# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

Root does NOT experience these issues. Thanks for pointing this out... I rarely (if ever) use root's account and I did not think of trying.

my user has the following groups:

Code:

userid : users wheel floppy dialout audio video cdrom plugdev power netdev
Im really not sure whats going on. Then after I logged out and back in as root to try, I rebooted the system to see if root could do this action which seems so, but once I logged back as normal user (after system reboot) I was shown the usual desktop but the bottom panel was gone. First time it happens to me. running xfce4-panel brought it back.

I am not sure if this panel glitch is related to the other problems I am experiencing. If so, then maybe it will help you to help me, if not, then you can just disregard (good for another topic)...

kabamaru 10-17-2012 02:41 AM

I don't think the panel bug (?) is related.

It's rather strange if all this is happening in a stock, proper installation (and not an upgrade from a previous Slack). I cannot reproduce this on my VM. Your user is a member of the right groups. Also KDM, in theory, should take care of stuff regarding user's privileges to mount/shutdown/etc.

Although a long shot, you could try a couple of things:

Switch to init 3, then (as normal user) run xwmconfig and startx.

Create a dummy user and see if it's the same deal:
Code:

useradd -m -g users -G audio,cdrom,floppy,lp,plugdev,power,video -s /bin/bash dummy
passwd dummy


AlleyTrotter 10-17-2012 10:19 AM

Quote:

AlleyTrolley, the commands you suggested will only stop and restart the XFCE environment wont they?? So it will be only a temporary workaround?
Yes just a temporary workaround, but they will shut down the system to halt/power off and/or do a warm reboot of the system. They will not suspend the system, but I would check the website there may be a short onliner for suspend also.
John

lpallard 11-04-2012 06:17 PM

I cannot provide more information unless I dig more, but somehow this problem disappeared. I am not sure if its due to your suggestions, because I cannot recall that it worked immediately.
I will keep an eye and post back here is this starts again.


All times are GMT -5. The time now is 07:51 AM.