Wednesday, April 20, 2011

What is the usage of Sysreq key on your keyboard ??


The magic SysRq key is a key combination understood by the Linux kernel, which allows the user to perform various low level commands regardless of the system's state. It is often used to recover from freezes, or to reboot a computer without corrupting the filesystem.
To be able to use this functionality the CONFIG_MAGIC_SYSRQ option has to be enabled at kernel compile time.


2 comments:

Anonymous said...

How can that key be Enabled?

vamshikrishnamraju said...

@anonymous Like is said in the post it can be enable through setting CONFIG_MAGIC_SYSRQ to true in kernel .

For setting it to true u need to do the following things

Step 1.Goto the path and Edit the file include/linux/input.h

Search for the following line:
Code:
#define KEY_SYSRQ 99
And replace the number 99 with the number of any other key.
I personally prefer 126, the useless right apple key.
So my edited line looks like:
Code:
#define KEY_SYSRQ 126

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Vamshi krishnam raju | Bloggerized by Vamshi krishnam raju - Vamshi krishnam raju | Vamshi krishnam raju