Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Macbook + sysrq key

  1. #1
    Join Date
    Apr 2008
    Beans
    10

    Macbook + sysrq key

    Obviously, my macbook keyboard has no sysrq key. Is there an equivalent key combination I can press instead? If not, is there any way I can remap sys rq to some other key combination that goes unused, like Fn+eject?

  2. #2
    Join Date
    Oct 2007
    Location
    Hollyweird, CA
    Beans
    197
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Macbook + sysrq key

    bump

  3. #3
    Join Date
    Sep 2007
    Beans
    8

    Re: Macbook + sysrq key

    bump. need an answer.

  4. #4
    Join Date
    Oct 2007
    Location
    Hollyweird, CA
    Beans
    197
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Macbook + sysrq key

    bumpity bump bump

  5. #5
    Join Date
    Nov 2008
    Beans
    35

    Re: Macbook + sysrq key

    I hate to do this, but
    bump.

    Since the sysrq key commands are part of the kernel, would that mean one would have to change the source code to use them on a computer without a sysrq key?

  6. #6
    Join Date
    Jun 2008
    Beans
    2

    Re: Macbook + sysrq key

    It seems that SysRq is broken in gnome on Intrepid.
    Works only in console. SO, the prescription below will only
    help if you are able to go to console (Ctrl-Alt-Fn)
    after gnome freezes. It is not always possible.

    The solution requires installing the keyfuzz program.


    The keycodes are in
    /usr/include/linux/input.h

    The input devices are in /proc/bus/input/devices
    for example:
    I: Bus=0003 Vendor=05ac Product=0204 Version=0110
    N: Name="Mitsumi Electric Apple Extended USB Keyboard"
    P: Phys=usb-0000:00:1d.7-5.3.1/input0
    S: Sysfs=/devices/pci0000:00/0000:00:1d.7/usb5/5-5/5-5.3/5-5.3.1/5-5.3.1:1.0/input/input3
    U: Uniq=
    H: Handlers=kbd event3
    B: EV=120013
    etc.


    decimal for 0x00070068 is 458856

    See the word "event3" in line H? This is system dependent.
    Use in argument of keyfuzz:

    sudo su
    echo "458856 99" | keyfuzz -s -d/dev/input/event3

    This maps F13 to PrintScreen, and Alt-F13 will REISUB
    Here 458856 stands for F13, and 99 stands for Print/SysRq

    But on Intrepid gnome this only works in console.
    Somehow gnome intercepts SysRq. This is a separate problem.

  7. #7
    Join Date
    Oct 2007
    Location
    Hollyweird, CA
    Beans
    197
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Macbook + sysrq key

    Unfortunatley Macbooks lack a SysRq key as well as an F13 key. Thanks for the post though.

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

    Re: Macbook + sysrq key

    Quote Originally Posted by flaggh View Post
    Unfortunatley Macbooks lack a SysRq key as well as an F13 key. Thanks for the post though.
    I have an F13, F14, F15, F16, F17, F18, F19 key on my Mac. I think that the process could be applied to another key though since the macbooks do not have such a large keyboard.

  9. #9
    Join Date
    Oct 2007
    Location
    Hollyweird, CA
    Beans
    197
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Macbook + sysrq key

    I see, so he's remapping the SysRq to F13. So using this method, we should be able to map the key to any key we like?

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

    Re: Macbook + sysrq key

    Quote Originally Posted by flaggh View Post
    I see, so he's remapping the SysRq to F13. So using this method, we should be able to map the key to any key we like?
    yep, you just have to replace the 458856 code with the keycode for the key you want. This is just a guess as I have never used this, but from the format of the command, and the other information given, that is all you have to do.

Page 1 of 2 12 LastLast

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
  •