xfce4-session: Unable to shutdown, reboot, and suspend with OpenRC
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.
Updated by bill-auger 19 days 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:
# rc-update add elogind default # rc-update add xdm default
then reboot - and select "Xfce Session" from the "Desktop" menu before signing in
Need some clarity to answer that question.
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
Updated by bill-auger 17 days 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