Re: sysrq problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

nidhi mittal hada wrote:
Hi All
I want to use magic sysrq key functioning

I have enabled in /etc/sysctl.conf
kernel.sysrq = 1

but when i press alt + sysrq it asks me to take a screenshot


on my Logitech keyboard i have prntscreen / sysrq on same key
and i dont have any fn key on it


How do i enable sysrq key ; i have googled for it but no answer
that could solve it
if anyone has faed same prob and got solution too
pl answer





--
Thanks & Regards
Nidhi Mittal Hada
Scientific officer D
Computer Division
Bhabha Atomic Research Center
Mumbai


Magic SysRequest = Alt + SysRq + <key>


First you have to make sure your kernel supports this feature, otherwise you have to enable it:

Kernel hacking -> Magic SysRq key (CONFIG_MAGIC_SYSRQ)

In some kernel versions you then have an active Magic SysRequest key, but in other kernels you first have to do

echo 1 > /proc/sys/kernel/sysrq

to activate this key. A command is given by pressing three keys simultaneously: Alt-SysRq-X, where X is the command letter. (On a serial console one gives a Break, followed by the command letter.)

Since Linux 2.4.21/2.5.66 it is also possible to do

echo X > /proc/sysrq-trigger

with the same effect as the keystroke.

Command letters

   * r Set kbd mode to XLATE (not RAW)
   * k SAK (Secure Attention Key)
   * b Immediate reboot, no umount, no sync
   * o Shut Off system
   * s Sync
   * u Remount all filesystems read-only
   * p Print registers on console, like Show_Registers below.
   * t Print tasks on console, like Show_State below.
   * m Print memory info on console, like Show_Memory below.
   * 0-9 Set console loglevel
   * e Send every process SIGTERM
   * i Send every process SIGKILL

One should make sure that this facility is always switched off in a production environment.


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux