You are not logged in.

#1 2015-02-18 20:34:59

Gamonics
Member
From: Rhode Island, USA
Registered: 2015-02-10
Posts: 40
Website

Mapping some key on the MacBookPro9,2 to the SysRq key of PC keyboards

I found this thread, but it describes a situation where the OP has a full keyboard with a number keypad (the Apple aluminum USB keyboard) and F13, F14, and F15 keys included, whereas my MacBook Pro 9,2 (mid-2012) has no such physical keys.

My only real goal is to give myself a SysRq key for making use of these kernel key combinations. I saw the Apple keyboard wiki and noticed the use of keyfuzz to solve this problem, but I think that's for a keyboard with a physical F13 key.

My MBP has on it's top row of keyboard keys from left-to-right only these 14 keys: Escape, F1-F12 (or laptop keyboard backlight and display brightness, multimedia control, mute, volume keys, and some OS X controls when pressed without the Fn-key prefix), and the optical disk drive eject key.

I think having access to the Magic SysRq key combinations would be absolutely wonderful, but I guess at this point I have no SysRq key. How are other MBP Arch users solving this problem?

Last edited by Gamonics (2015-02-18 21:27:18)

Offline

#2 2015-04-19 13:48:02

Wild Penguin
Member
Registered: 2015-03-19
Posts: 399

Re: Mapping some key on the MacBookPro9,2 to the SysRq key of PC keyboards

Hi,

I use arch on my Desktop / HTPC, but on my MBP I have Mint Linux. But that shouldn't change how keyfuzz works.

Try:

echo 0xc00b8 99 | keyfuzz -s -d /dev/input/[yourkbdevnode]

Whis should map the EJECT button to PRINTSCR, and curiously ALT+EJECT will be sufficient to trigger SysRQ. Try 'showkeys' if you want to try other scancodes.

Try to look in by-id if you are not sure which one is your mpb keyboard.

HTH!

Offline

Board footer

Powered by FluxBB