Project

General

Profile

Bug #2520

xfce4-session: Unable to shutdown, reboot, and suspend with OpenRC

Case_Of - over 4 years ago - . Updated over 4 years ago.

Status:
not-a-bug
Priority:
bug
Assignee:
-
% Done:

0%


Description

I’ve followed OpenRC wiki page te get best conditions possible, but I’m not able to shutdown, reboot and suspend from xfce4-session on xfce4-panel item to logout and with xfce4-session-logout command.

History

#1

Updated by bill-auger over 4 years ago

what is printed to the terminal when you run the xfce4-session-logout command in a terminal ?

#2

Updated by Case_Of over 4 years ago

typing `xfce4-session-logout` in terminal show the dialog you get when clicking logout on xfce4-panel.
typing `xfce4-session-logout --halt` or `xfce4-session-logout --reboot` just log out the session.

#3

Updated by bill-auger over 4 years ago

an ACPI issue maybe? is the acpi service running?

#4

Updated by bill-auger over 4 years ago

i just installed XFCE with openrc and it can restart and shutdown as execpted - which DM are you using?

#5

Updated by Case_Of over 4 years ago

I tried with lxdm.
lightdm is crashing.

#6

Updated by bill-auger over 4 years ago

lightdm crashed for me too; but LXDM works - try uninstalling all of the other DMs that you tried and install only LXDM

this is probably overkill; but i installed all of these:

pacman -S xorg xorg-drivers lxde xfce4 openrc-desktop system-dummy system-libs-dummy polkit-elogind

and makes sure you have it setup as on the wiki guide

in file /etc/conf.d/xdm:

DISPLAYMANAGER="lxdm" 

and run:

# rc-update add elogind default
# rc-update add xdm default

then reboot - and select "Xfce Session" from the "Desktop" menu before signing in

#7

Updated by Case_Of over 4 years ago

I already tried that.
That was how I tested lxdm.
Also elogind service is running since the beginning.

#8

Updated by bill-auger over 4 years ago

would you try installing all of the packages i have listed above, and see if LXDE behaves as expected? - and then try XFCE again without removing any of those packages

#9

Updated by bill-auger over 4 years ago

did you also create the x-wrapper file? - the wiki guide sugests that this is essential

in /etc/X11/Xwrapper.config

needs_root_rights = yes 

#10

Updated by Case_Of over 4 years ago

acpid is already running and has not changed the situation
/etc/X11/Xwrapper.config contains:

allowed_users=anybody
needs_root_rights=yes

I will now try LXDE.

#11

Updated by Case_Of over 4 years ago

With LXDE, I'm getting this error dialog window:

LXDE can't shutdown either.
Maybe it's not an XFCE issue?

#12

Updated by bill-auger over 4 years ago

i get that too - i forgot how to fix it; but that error is not the problem in this case - the LXDE logout GUI does restart and shutdown for me with openrc

#13

Updated by Case_Of over 4 years ago

Ok, except XFCE, what could cause this issue then?

#14

Updated by freemor over 4 years ago

Need some clarity to answer that question.

Does

shutdown -h now

outside of X completely shut down the machine

Does that same command in a terminal in X shutdown the machine?

I have seen cases where running daemons/services (such as rygel under mate) will hang the GUI shutting down by not exiting.

I have also seen machines that actually go into the "Halt" state instead of powering off which will look as if they have not shutdown

#15

Updated by Case_Of over 4 years ago

poweroff works.
I will try shutdown -h now.

#16

Updated by bill-auger over 4 years ago

i think you need to use `openrc-shutdown` instead on an openrc system

#17

Updated by Case_Of over 4 years ago

shutdown -h now works as root.
But the computer hang at the end of the shutdown with kernel saying that target shutdown has been reached.

#18

Updated by bill-auger over 4 years ago

what about `openrc-shutdown -p` ? - that should do exactly what `poweroff` does; and likewise, `shutdown -P`

the -h switch stands for "halt" - halt is not the same as poweroff - i dont think that `shutdown -h` is intended to power-off the machine - that being said, `xfce4-session-logout --halt` also works for me and does power the machine off

`openrc-shutdown` is an executable; while `shutdown` and `poweroff` are symlinks to their couterparts in /usr/lib/rc/bin/ - those are shell scripts that call `openrc-shutdown` with the args: '--halt', '--poweroff', or '--reboot'

$ pkgfile -l openrc-init | grep -E 'halt|poweroff|reboot|shutdown'
pcr/openrc-init    /usr/bin/halt
pcr/openrc-init    /usr/bin/openrc-shutdown
pcr/openrc-init    /usr/bin/poweroff
pcr/openrc-init    /usr/bin/reboot
pcr/openrc-init    /usr/bin/shutdown
pcr/openrc-init    /usr/lib/rc/bin/halt
pcr/openrc-init    /usr/lib/rc/bin/poweroff
pcr/openrc-init    /usr/lib/rc/bin/reboot
pcr/openrc-init    /usr/lib/rc/bin/shutdown
pcr/openrc-init    /usr/share/man/man8/openrc-shutdown.8.gz
$ file `which openrc-shutdown`
/usr/bin/openrc-shutdown: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=3c1e42cb226bdba8e26041cd45e6439c37ab54c8, stripped
$ file `which shutdown`
/usr/bin/shutdown: symbolic link to /usr/lib/rc/bin/shutdown
$ file `which poweroff`
/usr/bin/poweroff: symbolic link to /usr/lib/rc/bin/poweroff
$ file /usr/lib/rc/bin/shutdown
/usr/lib/rc/bin/shutdown: POSIX shell script, ASCII text executable
$ file /usr/lib/rc/bin/poweroff
/usr/lib/rc/bin/poweroff: POSIX shell script, ASCII text executable
#19

Updated by Case_Of over 4 years ago

nonsystemd/dbus and nonsystemd/polkit new packages replacing dbus-elogind and polkit-elogind packages solved this issue.

#20

Updated by bill-auger over 4 years ago

  • Status changed from unconfirmed to not-a-bug

Also available in: Atom PDF