Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622902 - genpatches Please add patch to hid-apple.c (attached)
Summary: genpatches Please add patch to hid-apple.c (attached)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-28 09:25 UTC by Pavel Kozlov
Modified: 2021-02-16 12:58 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
hid-apple.patch (gentoo-sources-hid-apple.patch,3.11 KB, patch)
2017-06-28 09:25 UTC, Pavel Kozlov
Details | Diff
Patch updated for Kernel 5.8.x (hid_apple.patch,3.43 KB, patch)
2020-08-20 23:26 UTC, Jorge Millán
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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