I don't know why, but usually when I disconnect an external monitor from my framework laptop running Manjaro Sway, the system crashes fully. The device stays on, but neither SysRq sequences nor tty switching works. Not even previously started shutdown timers act anymore. Only a hard reset makes it usable again. I suspect a relation to Wayland.
Thus there seem to be two ways around it, things to do before disconnecting to avoid the issue:
- Putting the system to sleep (
systemctl suspend
) - Switching to a tty session
This does not solve it, but at least saves me from rebooting my computer regularly until I can investigate a proper solution.