Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 622902

Summary: genpatches Please add patch to hid-apple.c (attached)
Product: Gentoo Linux Reporter: Pavel Kozlov <pkozlov.vrn>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: enhancement CC: jlec, jstein
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: hid-apple.patch
Patch updated for Kernel 5.8.x

Description Pavel Kozlov 2017-06-28 09:25:25 UTC
Created attachment 478268 [details, diff]
hid-apple.patch

From here https://github.com/free5lot/hid-apple-patched

A patched version of hid-apple allows GNU/Linux user to swap the FN and left Control keys and some other mapping tweaks on Macbook Pro, external Apple keyboards and probably other Apple devices.

It adds few options to kernel module hid_apple: swap_fn_leftctrl, rightalt_as_rightctrl, ejectcd_as_delete, which are disabled by default.

Very useful for people who used to use windows keyboard for a long time and don't like macbook keyboard.
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2017-07-01 17:39:58 UTC
Hi Pavel

I am using the genpatches. So if at all, we need to include it there.

I will CC the maintainer. Please discuss this with them.
Comment 2 Mike Pagano gentoo-dev 2017-07-02 17:20:52 UTC
This is tee'ed up for 4.12, which according to Linus, we might see today.

commit 593358522f8e378eb4cc0e20efa2e57d6669adfd (HEAD -> 4.12, origin/4.12)
Author: Mike Pagano <mpagano@gentoo.org>
Date:   Sun Jul 2 13:20:10 2017 -0400

    hid-apple patch to enable swapping of the FN and left Control keys and some additional on some apple keyboards. See bug #622902
Comment 3 Pavel Kozlov 2017-07-02 18:21:00 UTC
Awesome! Thank you!
Comment 4 Jorge Millán 2020-08-20 23:26:59 UTC
Created attachment 655834 [details, diff]
Patch updated for Kernel 5.8.x

Updated patch, from the updated remote repo (https://github.com/free5lot/hid-apple-patched/pull/70) to use the 5.8 branch.
Comment 5 Mike Pagano gentoo-dev 2021-02-16 12:58:23 UTC
This functionality is supported by upstream kernel