Use The SysRq Key To Fix Any Linux Freeze-Up


Linux: No system is immune to hangs and freeze-ups, and that includes even the most austere Linux desktop. What sets Linux apart is a key that can call out to the core kernel to un-freeze your desktkop, kill memory-hogging services and cause a clean restart.

You’ll need a full-size keyboard with a SysRq key, of course, or a laptop with the key available through a Function option. If you have that key, check that it’s enabled as a “magic” system-level switch with this terminal command, which should return with a “1”:

cat /proc/sys/kernel/sysrq

Assuming that’s the case, you can then hold Alt+SysRq and tap certain keys to take semi-emergency actions — Alt+SysRq+R, for example, gives you back the keyboard if it’s stopped responding, and you can then restart your system, restart a graphical X server, and so on. The How-To Geek site has a full list of commands and setup instructions for empowering that little-used key.

Use the Magic SysRq Key on Linux to Fix Frozen X Servers, Cleanly Reboot, and Run Other Low-Level Commands [How-To Geek]


The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.

Comments


5 responses to “Use The SysRq Key To Fix Any Linux Freeze-Up”

Leave a Reply