F5 and F6 keys on Macbook Air (and possibly other macbooks)

Bug #248230 reported by Henrik Rydberg
10
Affects Status Importance Assigned to Milestone
Mactel Support
Fix Released
Low
Unassigned
Debian
Fix Released
Medium
linux (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: linux-image-2.6.24-19-generic

2.6.24-19 kernel:

In drivers/hid/hid-input.c, the apple_fn_keys translation table
contains no entries for the F5 and F6 keys. This patch maps the F5 and
F6 keys to KBDILLUMDOWN and KBDILLUMUP, respectively, which make them
work as keyboard backlight control keys.

I am also attaching the patch sent to kernel.org, for reference.

http://bugzilla.kernel.org/show_bug.cgi?id=10947

Revision history for this message
Henrik Rydberg (rydberg) wrote :

This is the patch against linux-next sent to kernel.org.

Revision history for this message
Henrik Rydberg (rydberg) wrote :

(this patch was submitted with the original bug report, but was dropped somehow)

description: updated
description: updated
Revision history for this message
Alex Karpenko (alexkarpenko) wrote :

I can confirm the bug, and that the fix resolves the issue. The keyboard layout for Macbook Pros and Macbook Airs can be viewed here: http://support.apple.com/kb/HT1117
It should also be noted that KEY_FN_F* produce no keycodes (according to xev), which means that previously no secondary functionality could be defined for F4-F6.

Currently input.h does not define a keycode for the dashboard key (fn+F4), IMHO this should be fixed by either defining a new keycode, or picking an existing sensible substitute (this will at least allow the user to remap the key functionality using keyboard shortcuts).

Changed in mactel-support:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Just including the upstream git commit id for reference. This should be making it's way into the upcoming Intrepid Ibex 8.10 kernel automatically.

commit 6a250778c79d6d14db9ed8e1f86f7b934e2bf3dc
Author: Henrik Rydberg <email address hidden>
Date: Tue Jul 22 15:54:05 2008 +0200

    HID: apple_fn_keys F5 and F6

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
oss_test_launchpad (oss-test-launchpad) wrote :

I choose "MacBook / MacBook Pro (Intel)" keyboard in System > Preferences -> Keyboard. F3, F4 and F5 work as they should: F3 mutes all sound, F4 turns down the volume and F5 turns it up. Testing with Ubuntu 8.10 Alpha 4+.

Changed in linux:
status: Triaged → Fix Released
Changed in mactel-support:
status: Confirmed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Changed in debian:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.