Hacker News new | past | comments | ask | show | jobs | submit login

When waiting for units to shut down, have you tried pressing Ctrl+Alt+Delete 7 times? It forces a reboot, and you can turn the machine off before linux has taken over again.



> have you tried pressing Ctrl+Alt+Delete 7 times? It forces a reboot

Not sure if serious? At that point, how is that any better than just using Windows? "Press Ctrl+Alt+Delete 7 times" has long been SOP there.


See https://cgit.freedesktop.org/systemd/systemd/tree/NEWS?id=2d...

Color me as part of the anti-systemd crowd, but i still got to support it on machines where i didn't get to choose.


Ah, someone scooped me! Just confirmed it in the docs https://www.freedesktop.org/software/systemd/man/systemd.htm...

I didn't even know Windows did this. This is going to save my butt some day.


Pressing Ctrl+Alt+Delete 8 times (I think, 7 times to increment the counter, then 1 more time to trigger a force reboot) sends SIGTERM or something to all processes. But many wedged processes (like kwin calling a Nvidia libglx function trying and failing to acquire an spinlock) ignore the signal and can only be killed with SIGKILL, which systemd sends a few minutes after you press Ctrl+Alt+Delete 8 times. I work around this by enabling Alt+SysRq and pressing Alt+PrintScr+R (raw input), E (SIGTERM), I (SIGKILL) whenever systemd gets wedged.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: