Does Your PC Really Need a SysRq Button Anymore?
An anonymous reader writes "Ever wondered what the SysRq key on your keyboard does? Lenovo has decided it's so rarely used that it has started removing the key from some new Thinkpad Edge laptops. We already know that Lenovo are something of the fastidious scientists when it comes to keyboard design. Last time they fiddled with the age-old key layout, it was after painstaking research to count exactly how many times users press the Delete and Escape keys. Now it seems another relic of computer keyboards is starting to disappear."
I'm pretty sure SysRq is a left over from the terminal days, though I don't recall which terminal (the VT100 doesn't have it). It was basically the equivalent of CTRL-ALT-DEL.
Ahh, Wiki to the rescue; it was from the IBM 3270.
I use the "busier" backwards or "reisub" combination with the sysrq key in order to gently shutdown Ubuntu when it locks up. So yes, I use it, but that has only been in the last couple of years or so. Not sure what else it is used for...
Like a city whose walls are broken down is a man who lacks self-control.
If linux freezes, then Alt-SysRq-S+U+B will do an emergency sync of the disks, unmount them and reboot the system.
Ditto. Alt+PrtScn is your current-dialog-capturing-friend!
Although, it still amazes me the amount of people who still install 'freeware' utilities to take screengrabs of dialogs, when Windows has had that functionality built in for many versions... ... and I kid you not, I did once have this conversation:
User: I need Photoshop CS2 installed, here's my Cost-Code.
Me: Why?
User: I write documentation that needs screenshots.
Me: You know you can screengrab via windows and paste directly into Word?
User: I don't care, Bob has Photoshop, and I want a copy as well.
Me: *sigh* Ok, I'll buy a copy and charge your dept...
-Jar
Together, We Can Make Slashdot Better. I Do NOT Mod ACs. - Check Me Out
Oh heck, I use the SysRq key on an almost daily basis whenever I screw up a kernel compile (and that's often). At least on my keyboards, it's on the same key as PrntScrn. Looking at my keyboard, there's nothing that I don't use on a fairly regular basis:Num Lk - *almost* always on when using a laptop. Almost always off when using a regular keyboard. Pause/Break I've mapped to bring up my task manager. I've also noticed that the paint is actually wearing off the hjkl keys on one keyboard (too much nethack...er vi).
This conflicts badly with Ubuntu's decision to make Alt-Sysrq+K the default way to kill X (as opposed to control-alt-backspace which is too easy to press by mistake), too.
(1)DOCOMEFROM!2~.2'~#1WHILE:1<-"'?.1$.2'~'"':1/.1$.2'~#0"$#65535'"$"'"'&.1$.2'~'#0$#65535'"$#0'~#32767$#1"
I remember editing some documents for a woman who apparently learned this way. The problem is it looks OK in fonts like Courier and Times New Roman, but if you change the font they can stick out like a sore thumb.
SysRQ can be extremely useful in figuring out why a machine has locked up or become unresponsive...
http://www.kernel.org/doc/Documentation/sysrq.txt
Omeganon
SysRq is the print screen button, and I use it all of the time too. It is cut and paste for me, alt-printscreen (or control-printscreen) then shift-printscreen. Fastest screen paste in the west....
Comment removed based on user account deletion
Hold Alt, navigate through the menus with the keyboard, then press PrtSc.
The laptops that are getting this change are the Thinkpad Edge models. They are the low-end consumer level Lenovo laptops, Thinkpads in name only. They are not the regular Thinkpad T or X or R series models. The R series is discontinued now anyway. The regular T and X series are staying as they were (with minor modifications). You can read more details here: http://lenovoblogs.com/insidethebox/?p=349
I look forward to the Thinkpad T series being the solid black square tanks that they have always been.
Ubuntu didn't change the key. On any kernel with the "magic SysRq key" enabled (which Ubuntu has), Alt+SysRq+K kills all running processes on the current VT. Therefore, it kills X.
Ubuntu's recent decision to disable Ctrl+Alt+Backspace by default is a separate issue.
On older versions of Ubuntu, you will find that either key combo will kill X.
Yeah, try that in Solaris and watch all processes die...
killall is used by shutdown(1M) to kill all active processes not directly related to the shutdown procedure.
Use pkill(1).
I think you're confused. Alt+SysRq+K is one of the Linux "Magic Keys" http://en.wikipedia.org/wiki/Magic_SysRq_key it kills all processes on the current VT, not just X. Most modern X implementations will still work with Ctrl+Alt+BkSp but you now need to do it twice and the first time it makes a rather ominous "beeeeeeeeeep" at you to warn you that you maybe about to make a bad decision....
So this is hardly an "Ubuntu decision" (like most distros they just package up what's already there, mix it up with a few good and a few bad ideas of their own and paint it nicely).
They are not actually the same. Ctrl-alt-backspace tells X to quit, which it will do if it's actually well enough to listen. Alt-SysRq-K is a key combo for the kernel, and tells it to kill everything running on the current virtual console (originally so that you could make sure you were typing your password into the getty instead of into a program another user had left running to phish login details).
This has the advantage that it will always kill X, even if X has hung (and will always give you your display back unless the graphics driver has left the adaptor in a weird state), and can also kill whatever (graphical) program had made the system unresponsive, even if it's malfunctioned badly enough to continue eating resources after losing it's connection to the X server.
# cat
Damn, my RAM is full of llamas.