Results 1 to 3 of 3

Thread: HOW-TO: Enable SYSRQ in macbooks!

  1. #1
    Join Date
    May 2006
    Location
    BH, Brazil
    Beans
    338

    HOW-TO: Enable SYSRQ in macbooks!

    This how-to will allow you to remap the SYSRQ key, that is absent in macbooks,
    to any other key on the keyboard, allowing you to REISUB properly in the
    moments of hard crashes.


    Warning: To use this tip you MUST recompile your kernel.
    You can use either the vanilla source or the ubuntu source.



    Step 1. 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

    Step 2. Enable Magic SYSRQ

    Be sure to enable the Magic SYSRQ in:
    Code:
    [*] Kernel hacking -> Magic SysRq key

    Step 3. Recompile the kernel and enjoy

    Just recompile the kernel as usual.
    Next time you boot, hold ALT + NEW_KEY and press REISUB slowly!
    Last edited by volanin; April 28th, 2009 at 03:51 PM.

  2. #2
    Join Date
    May 2006
    Location
    BH, Brazil
    Beans
    338

    Re: HOW-TO: Enable SYSRQ in macbooks!

    Weird.
    After testing a little more I found out that this does not work in X.
    You must access a terminal (CTRL+ARL+F1) and then it works fine.
    I'll research this a little more.

  3. #3
    Join Date
    Aug 2005
    Location
    Huntsville, AL, USA
    Beans
    7,526
    Distro
    Ubuntu

    Re: HOW-TO: Enable SYSRQ in macbooks!


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •