{"id":129,"date":"2007-09-09T11:15:56","date_gmt":"2007-09-09T15:15:56","guid":{"rendered":"http:\/\/blogs.n1zyy.com\/n1zyy\/2007\/09\/09\/the-magic-sysrq-key\/"},"modified":"2007-09-09T11:15:56","modified_gmt":"2007-09-09T15:15:56","slug":"the-magic-sysrq-key","status":"publish","type":"post","link":"https:\/\/blogs.n1zyy.com\/n1zyy\/2007\/09\/09\/the-magic-sysrq-key\/","title":{"rendered":"The Magic SysRq Key"},"content":{"rendered":"<p>Today I came across (via Digg) some stuff on Linux&#8217;s <a href=\"http:\/\/en.wikipedia.org\/wiki\/Magic_SysRq_key\">Magic SysRq key<\/a>. I&#8217;m yet to be able to try it, but it&#8217;s apparently a low-level way of controlling the system when it goes haywire. You do need to <a href=\"http:\/\/snafu.freedom.org\/linux2.2\/docs\/sysrq.txt\">enable<\/a> it in the kernel, but I&#8217;m under the impression it&#8217;s enabled by default*.<\/p>\n<p>I&#8217;ve been running Compiz on XGL, both of which are experimental software. Certain obscure combinations of activities will freeze it, and the system appears locked up. I strongly suspect that it&#8217;s not &#8216;truly&#8217; frozen, though, but since it&#8217;s my user interface, short of pulling up another computer and remotely logging in, there&#8217;s not much I can do. Traditionally I just turn the machine off. The &#8220;REISUB&#8221; method will hopefully let you &#8216;cleanly&#8217; shut down the system, by getting the kernel to terminate all processes, unmount disks, and then reboot.<\/p>\n<p>It looks like there&#8217;s more, though&#8230; You could regain control of the keyboard and then just kill everything on the current VT, in theory, at least, letting you just restart X.<\/p>\n<ul>\n<li>You can check if it&#8217;s enabled by checking for a <a href=\"http:\/\/www.developertutorials.com\/tutorials\/linux\/magic-sysrq-050503\/page1.html\">\/proc\/sys\/kernel\/sysrq<\/a>, which should contain &#8220;1&#8221; if enabled. This page also covers making the command &#8216;sticky&#8217; so you&#8217;re not in the awkward situation of trying hold down Alt + SysRq + another key. (And in my case, SysRq is a &#8216;function&#8217; key, so it&#8217;d be Alt+SysRq+Fn+r, for example.)<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Today I came across (via Digg) some stuff on Linux&#8217;s Magic SysRq key. I&#8217;m yet to be able to try it, but it&#8217;s apparently a low-level way of controlling the system when it goes haywire. You do need to enable &hellip; <a href=\"https:\/\/blogs.n1zyy.com\/n1zyy\/2007\/09\/09\/the-magic-sysrq-key\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-129","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/posts\/129","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/comments?post=129"}],"version-history":[{"count":0,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/posts\/129\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/media?parent=129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/categories?post=129"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.n1zyy.com\/n1zyy\/wp-json\/wp\/v2\/tags?post=129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}