Package Details: hid-apple-patched-dkms-git 20250909.1c6b787-1

Git Clone URL: https://aur.archlinux.org/hid-apple-patched-dkms-git.git (read-only, click to copy)
Package Base: hid-apple-patched-dkms-git
Description: Swaping the Fn and left Control keys and some other mapping tweaks on Macbook Pro and Apple keyboards (DKMS)
Upstream URL: https://github.com/free5lot/hid-apple-patched
Licenses: GPL2
Submitter: Asuranceturix
Maintainer: Asuranceturix
Last Packager: Asuranceturix
Votes: 1
Popularity: 0.000077
First Submitted: 2024-04-07 22:01 (UTC)
Last Updated: 2025-09-12 22:06 (UTC)

Latest Comments

Asuranceturix commented on 2025-09-12 22:23 (UTC)

@jbhardman When I published the previous version, it was necessary to add a patch for the driver to compile against kernels versions >= 6.12. Now it is already included upstream, and therefore the patch fails to apply, as the trace you sent says. I have updated the package to remove the now unnecessary patch.

jbhardman commented on 2025-09-12 03:51 (UTC) (edited on 2025-09-12 03:56 (UTC) by jbhardman)

Getting the following error: ==> Starting prepare()... patching file hid-apple.c Hunk #1 FAILED at 422. 1 out of 1 hunk FAILED -- saving rejects to file hid-apple.c.rej patching file hid-apple.c Hunk #1 succeeded at 14 with fuzz 1. Hunk #2 FAILED at 423. 1 out of 2 hunks FAILED -- saving rejects to file hid-apple.c.rej ==> ERROR: A failure occurred in prepare(). Aborting... error: failed to build 'hid-apple-patched-dkms-git-20230422.46f3457-2': error: packages failed to build: hid-apple-patched-dkms-git-20230422.46f3457-2

rej file reads: --- hid-apple.c +++ hid-apple.c @@ -422,7 +422,7 @@ static int apple_event(struct hid_device *hdev, struct hid_field *field, /* * MacBook JIS keyboard has wrong logical maximum */ -static __u8 *apple_report_fixup(struct hid_device *hdev, __u8 *rdesc, +static const __u8 *apple_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) { struct apple_sc *asc = hid_get_drvdata(hdev); --- hid-apple.c +++ hid-apple.c @@ -423,8 +424,13 @@ static int apple_event(struct hid_device *hdev, struct hid_field *field, /* * MacBook JIS keyboard has wrong logical maximum */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 12, 0) +static __u8 *apple_report_fixup(struct hid_device *hdev, __u8 *rdesc, + unsigned int *rsize) +#else static const __u8 *apple_report_fixup(struct hid_device *hdev, __u8 *rdesc, unsigned int *rsize) +#endif { struct apple_sc *asc = hid_get_drvdata(hdev);

My linux: Linux 6.16.6-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 10 Sep 2025 00:38:07 +0000 x86_64 GNU/Linux

I don't know how to format this text. I've tried, it's all just one block. No line breaks.

Asuranceturix commented on 2025-02-15 02:00 (UTC) (edited on 2025-02-19 10:47 (UTC) by Asuranceturix)

@kuringasan Sorry about the delay. The kernel tree does have an hid-apple module, but it does not support as many options as this patched version does. Apparently the authors of the patch have been trying to get the kernel developers to merge their contributions to no avail.

Anyhow, the package failed to build because kernel 6.12 changed the signature of a function, causing the old code not to build against newer kernels ( https://github.com/free5lot/hid-apple-patched/pull/100 ). Upstream has yet to accept this PR, so I have updated this package to apply the patch in the meantime.

kuringasan commented on 2024-12-16 17:27 (UTC)

i couldn't install this package so i found a native solution

change parameters on files inside this directory and be happy

/sys/bus/hid/drivers/apple/module/parameters

dbedrenko commented on 2024-06-16 18:54 (UTC)

This is awesome, thank you so much for submitting this package!

yochananmarqos commented on 2024-04-07 16:59 (UTC)

Create the new hid-apple-patched-dkms-git package, then submit a request to merge this package into it.

Asuranceturix commented on 2024-04-07 12:41 (UTC)

Ok, no problem, I just bumped version and republished the old package because I still had a local copy. How do I do that, is it something I must do in this repo or I just submit it as new with the new name (after adjusting PKGBUILD and .SRCINFO, of course)?

yochananmarqos commented on 2024-04-07 02:19 (UTC)

The -git is a suffix. Please resubmit as hid-apple-patched-dkms-git.