# \[Tip\] Enable Magic SysRq Key (REISUB)

**URL:** <https://forum.endeavouros.com/t/tip-enable-magic-sysrq-key-reisub/7576>\
**Category:** Kernel, boot, graphics & hardware\
**Created:** [August 31, 2020, 3:22pm UTC](https://forum.endeavouros.com/t/tip-enable-magic-sysrq-key-reisub/7576 "2020-08-31T15:22:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Kresimir](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/kresimir/32/73739_2.png) [@Kresimir](https://forum.endeavouros.com/u/Kresimir)\
**Post date:** [August 31, 2020, 3:22pm UTC](https://forum.endeavouros.com/t/tip-enable-magic-sysrq-key-reisub/7576/1 "2020-08-31T15:22:53Z")

</div>

The Linux kernel authors have provided a very nice feature of issuing low-level commands to the kernel directly, regardless of the state the system is in. This is called the “Magic SysRq Key”, because these commands are issued by pressing the SysRq key on the keyboard (if you can’t find it, typically, it shares the same physical key as the Print Screen key, but on some laptops it can be elsewhere).

A common use is to reboot when the computer freezes and becomes unresponsive due to some software or hardware exception, without having to push the hardware reset button or to cut power to the computer, which runs the risk of corrupting the filesystem and does not give the chance to processes which are still responsive to terminate gracefully. The magic SysRq key lets us do this elegantly and safely.

On EndeavourOS, like on vanilla Arch, this functionality is disabled by default, because it is a potential security concern (however, since it requires physical access to the keyboard, it’s not a big security concern). This is how you enable it:

- Run this command in the terminal:

- Reboot for the change to take place.

- If you want to disable this functionality, just remove the file created in the first step (`sudo rm /etc/sysctl.d/99-reisub.conf`)

Now, when you want to hard-reboot the computer, perform the following key combination:  
press and hold the Alt key the entire time. Now, one after another, with about a second in between, press (tap) the following keys: SysRq, R, E, I, S, U, B. Your computer should reboot if everything was done correctly (you can let go of the Alt key now 😉 ).

This sequence issues the following low-level commands to the kernel:

- R = Switch the keyboard from raw mode to XLATE mode
- E = Send the signal `SIGTERM` to gracefully terminate all processes (except `PID 1`)
- I = Send the signal `SIGKILL` to kill all processes that didn’t terminate gracefully
- S = Sync data to disk (flush)
- U = Unmount the filesystem (and remount as read-only)
- B = Reboot

Just remember that the letters spell REISUB (a good mnemonic is “Reboot Even If System Utterly Broken”).

For more info, see:  
[https://wiki.archlinux.org/index.php/Keyboard\_shortcuts#Kernel](https://wiki.archlinux.org/index.php/Keyboard_shortcuts#Kernel)

[https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html](https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html)

---

_[View the full topic](https://forum.endeavouros.com/t/tip-enable-magic-sysrq-key-reisub/7576)._
