HID: apple: add fnmode=4 to disable translation of fkeys and make it default on Macs...
authorAditya Garg <gargaditya08@live.com>
Mon, 19 May 2025 12:16:21 +0000 (17:46 +0530)
committerJiri Kosina <jkosina@suse.com>
Tue, 10 Jun 2025 19:22:29 +0000 (21:22 +0200)
commita23ff6080e7197922e3a9fd8856e142b612eb50a
treeb523445074302d741b0f877f248f9292ff8a1cc8
parent4604baafaaeeb131dfb8d9325b1e8e90f364c468
HID: apple: add fnmode=4 to disable translation of fkeys and make it default on Macs with Touch Bar

The kernel now has a dedicated driver for Touch Bar on Macs. Since
function keys can now be accessed via the Touch Bar, emulating them
using non standard ways like Fn+1=F1 should be avoided.

This patch adds an fnmode=4 which ignores only the Function key
translation, and is enabled by default on MacBook Pros with a Touch
Bar.

Signed-off-by: Aditya Garg <gargaditya08@live.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-apple.c