How to shutdown system that is frozen/crashed?

Hey,
I just installed (or was in the process of installing) a steam game on my laptop, when my CPU usage went up to 99% and garuda crashed, the only thing that isn't frozen is my mouse (tho I can't click anything).
Now I'm wondering how to shutdown/restart my system?
I could just remove my battery but I don't want that, so is there another way?

Edit: Latte Dock shows it's 17:24pm which indicates that the crash happened nearly 20mins ago (It's 17:43pm in my time).

Solution: Alt + PrtSc + o

try changing your TTY first. It fixes the crash most of the time atleast for me. If the screen is stuck aka you can't change TTY you can first unraw the keyboard using

alt+PrtSc+r
then change the tty and back again using alt + -> and then alt+<-. We can use this shortcut because we can unrawed the keyboard. If that helps and then no need to shutdown the PC just keep playing the game and once done

sudo kbd_mode -s

to put keyboard in scanmode again if you don't want to face shortcut conflicts. Or you can simply reboot too.

If just changing TTY doesn't help then,

alt+PrtSc+s Will attempt to sync all mounted filesystems.
alt+PrtSc+u Will attempt to remount all mounted filesystems read-only.
alt+PrtSc+o Will shut your system off

This is the best way to poweroff your device using SysRq command. On most keyboards alt+PrtSc is what equates to SysRq. You can check if your keyboard does the same too via.

sudo dmesg -w

and then press alt+PrtSc+h this would be equivalent of SysRq+h and should output

sysrq: HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) k
ill-all-tasks(i) thaw-filesystems(j) sak(k) show-backtrace-all-active-cpus(l) show-memory-usage(m) nice-all-RT
-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) for
ce-fb(v) show-blocked-tasks(w) dump-ftrace-buffer(z)

in your dmesg. If it does then you are good to go. SysRq is enabled for your kernel and your keyboard is able to send the SysRq signal to your device. If it doesn't then first try going to garuda boot options and enable SysRq from there and reboot. If it still doesn't work then google what key combo is the equivalent of SysRq for your device.

6 Likes

The clock being stuck suggest the only option is to press reset or turnoff and back on.

Hey, thanks for you comment, sadly I'm on a laptop so PrtSc isn't a button I can press. Do you know a shortcut for a laptop keyboard?

I too am on a laptop and print screen is a button that I do have :thinking:. It's right beside delete key on the function key row. Or check on google what is the equivalent of SysRq on your device. On lenovo Alt+Fn+s or Alt+Fn+PrtSc both mean SysRq.

2 Likes

Ahhh thanks man, I just figured my PrtSc is between the right Alt and ctrl xD

That’s a weird placement but glad you found that out. :+1: Happy gaming to you. :smile:

2 Likes

Yeah it's a Lenovo ThinkPad t470 and I have a german keyboard, so I needed a little while to remind myself that 'Druck' (german=print) the same as PrtSc is... :stuck_out_tongue:
Thanks again for your help, I really appreciate it :heart:

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.