Using xorg+slim+xfce4 on Gentoo linux, SUSPEND is ok, but SHUTDOWN and REBOOT fail. When click on Shutdown/Reboot button in logout dialog, it goes back to slim login screen.
Created attachment 3823 Enable xfsm_shutdown_helper_send_command execute when shutdown_type is XFSM_SHUTDOWN_HALT or XFSM_SHUTDOWN_REBOOT. XFSM did nothing for them, I think. patch for the bug.
Can you reproduce this with 4.9, because large portions of the code changed.
I've reproduced it in 4.9, (using lxdm) but only when working on an ext2 partition (this behavior was the same in 4.8). Other filesystems appear to exit normally on my end. When I was using slim, the slim logs made it look to me like the xorg server was crashing on xfce logout (this would happen on all filesystems). Xorg would then try to recover, and load the login manager. I don't get the same log information with lxdm, however. If there's any testing I could do to get you more useful information, please let me know. Thank you for looking into this!
Created attachment 4317 Drop sync code Well the sync code is just crazy, so could you try this patch?
Many thanks, Nick! I've applied the patch and recompiled. When shutting down or rebooting, my screen flashes to the login manager for a (very) brief instant before dropping to the CLI and shutting down. I've posted an updated package containing this patch and asked our community member who was initially experiencing the bug to test it on his hardware and report back. I'll let you know how it goes.