Red Hat Bugzilla – Bug 195832
Apple specific keys not (fully) usable (Intel MacBook)
Last modified: 2015-01-04 17:27:26 EST
Description of problem:
The apple specific keys on the MacBook are not (fully) usable.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Start xev
2. Press various apple specific keys
Apple specific keys are not properly mapped/assigned
All apple specific keys have keycodes associated.
The proper keymap is probably already there in the PPC build?
It seems that the current git5 patchset for the kernel contains the necesarry
usbhid patch. As soon as the FC6 kernel hits git5 I will test if it resolves the
should be fixed now ?
Hmm, it seems that all the Apple specific keys are now emitting a key code but
in Fedora they are not mapped to anything usefull. 2nd mouse button emulation
would be most welcome, a working eject key as well. Do I need to do some
additional tweaking to get this working? I assume this works out-of-the-box on
the PPC build?
Any progress on this? Adding dev.mac_hid.mouse_button_emulation = 1
to /etc/sysctl.conf does not work.
For hid mouse button emulation you may need to change the keys it's bound to,
use xev to find the keycodes of what key you want - f11, f12 are common choices
then ensure sysctl.conf has:
# Emulate the middle mouse button with F11 and the right with F12.
dev.mac_hid.mouse_button_emulation = 1
dev.mac_hid.mouse_button2_keycode = 87
dev.mac_hid.mouse_button3_keycode = 88
And the appropriate bits are in /proc/sys/dev/mac_hid/
To make the eject key work - go to System->Preferences->Keyboard Shortcuts
scroll to eject, select and hit the appropriate key. That way in GNOME the key
will be bound to eject.
I already added the dev.mac_hid.mouse_button_emulation = 1 line to my
sysctl.conf, unfortunately that is not enough. There is no
/proc/sys/dev/mac_hid/ on my MacBook. Eject works now though.
BTW it seems that F11 and F12 are 95 and 96 on the MacBook.
For comment #5 and #6 see bug #195833
The other Apple specific keys (fn etc) are now working properly.