Tell me more ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

On occasion my laptop has become stuck so I've used the magic key combination of Alt + SysRq + REISUB to perform a safe reboot. However, it doesn't seem to work for me as when I press the B key to complete the magic key command it simply says resetting... and doesn't do anything.

All the other keys seem to work fine as it resets the keyboard layout, kills all tasks etc, but doesn't seem to complete with a reboot.

I was under the impression that my laptop should reboot after the magic keys have all been pressed in the order of REISUB

share|improve this question

5 Answers

up vote 7 down vote accepted

Alt+SysRq has been disabled since Ubuntu 10.10 maverick. To re-enable it you have to modify the respective kernel parameter like this:

echo 1 | sudo tee /proc/sys/kernel/sysrq 

To enable it permanently, you must edit the file /etc/sysctl.conf to include the line

kernel.sysrq=1
share|improve this answer
Thanks, wasn't aware of that. – James Dec 15 '10 at 17:45
2  
No it hasn't. It works just fine on maverick, natty, oneiric, and precise. – psusi Mar 8 '12 at 3:59

Keyboards are the issue here!

  • Some just don't like the 4-keys-down at the same time and just stop being a keyboard until you release some.
  • All keyboards turn into QWERTY layout when you send the SysRq signal. This makes it hard to find the right commands on keyboards with another layout. Wikipedia: SysRq commands shows a table to find the right ones for common alternative layouts.
  • Some have SysRq on another key than PrtSc to hold with a function key. On my laptop this is Fn+End. Holding Alt + PrtSc only works if some system process (window manager?) translates it for me. On total crash, only the real SysRq works!
  • Some only trigger SysRq key once you hold the right Alt + PrtSc (by hardware). The left Alt-key won't work in such a case, for the same reason as above. This is how my USB keyboard works.
  • Tip: try out hitting Shift + Alt + SysRq to see a 'help' output on a virtual terminal. This is useful to see if it's working without doing any harm:

    SysRq : HELP : loglevel(0-9) reBoot Crash terminate-all-tasks(E) memory-full-oom-kill(F) kill-all-tasks(I) thaw-filesystems(J) saK show-backtrace-all-active-cpus(L) show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount show-blocked-tasks(W) dump-ftrace-buffer(Z)

In all cases I've come across it didn't work, swapping the keyboard worked perfectly and showed that nothing was wrong with any kernel setting.

share|improve this answer

I ran into this the other day and it took a few seconds to work. I may have even done the entire REISUB sequence twice.

Also, make sure you're using the sysrq key (most laptops will require you to hold down function, so you're really holding down 4 keys at once)

share|improve this answer
Thanks for your reply Scott. I do indeed have to hold down the function key (fn) along with alt and sysrq. Once I press the final B key to finish the REISUB sequence my laptop seems to lockup after it displays: Resetting As going through the magic key sequence again doesn't do anything, nor is anything displayed on screen after. So it looks like the system locks up when it's meant to reboot. – James Nov 2 '10 at 21:26

A few years back I used to use Alt+SysRq+S,U,B,O to reboot or power off a stuck machine, because like for you, Alt+SysRq+B sometimes didn't want to work.

(Also, I need to get into the habit of using Alt+SysRq+E,I first. I don't see much point of using Alt+SysRq+R, since why does keyboard mode matter if it's going to reboot and reset it anyway?)

share|improve this answer

Look here: reisub-the-gentle-linux-restart then here en.wikipedia.org/wiki/System_request

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.