xfce4-session-logout --halt does not shutdown; appears to suspend
Versions
Running openSUSE Tumbleweed
$ head /etc/os-release
NAME="openSUSE Tumbleweed"
# VERSION="20221224"
...
$ xfce4-session-logout --version
xfce4-session 4.18.0 (Xfce 4.18)
I have an Alienware 17 R4, with an nvidia graphics card installed.
I am using the nvidia
drivers, and I have added some kernel parameters because of this:
$ cat /etc/default/grub
...
GRUB_CMDLINE_LINUX_DEFAULT="security=apparmor nosimplefb=1 nvidia_drm.modeset=1 resume=UUID=[snip] mitigations=auto"
Problem
I am unable to use xfce4-session-logout --halt
to shut down my laptop.
It instead almost always hangs. When it is in this state, I have to force power-off the laptop by pressing and holding the power button.
sudo journalctl -b -1
yields (beginning from the issuance of the command): journalctl.txt.
If it does not hang, it does not shutdown; it appears to have suspended, and pressing the laptop button resumes from suspend.
Workaround / What's Working
I am able to sudo shutdown now
without any problems; shutdown is successful.
I'm also able to xfce4-session-logout --suspend
and xfce4-session-logout --hibernate
without issue.
System either suspends or hibernates as-expected, and I am able to resume without loss of data.
Reproduction
Every time, with xfce4-session-logout --halt
or xfce4-session-logout
then clicking the "Shutdown" button.
What I've Tried
Under the theory that this is a problem with systemd-logind
, I've created /etc/systemd/logind.conf.d/alienware.conf
[Login]
HandleLidSwitch=ignore # otherwise `xfce4-session-logout --halt` suspends instead
HandleLidSwitchExternalPower=ignore # otherwise `xfce4-session-logout --halt` suspends instead
HandleSuspendKey=ignore
HandleSuspendKeyLongPress=ignore
HandleHibernateKey=ignore
Followed by systemctl restart systemd-logind.service
.
However, this has not altered the described problem behavior.