You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qubes-linux-kernel/patches.suse/ppc-powerbook-usb-fn-key-de...

33 lines
1.1 KiB

Subject: Default value of usbhid.pb_fnmode module parameter
From: olh@suse.de
References: 220266
Patch-mainline: not yet
The kernel default value for usbhid.pb_fnmode is 1, which means that pressing
the Fn keys (F1..F10) without the fn key triggers the special functions
decrease/increase brightness, mute, decrease/increase volume, etc., which is
the default under MacOS.
At least under 10.2 Beta2, only the volume related special functions work at
all. In addition, Ctrl-Alt-Fx is used to switch between consoles. with
pb_fnmode==1, the fn key needs to be pressed in addition.
Therefore, pb_fnmode==2 (F1..F10 by default trigger Fn rather than the special
functions) makes more sense under Linux.
drivers/hid/hid-apple.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/hid/hid-apple.c
+++ b/drivers/hid/hid-apple.c
@@ -36,7 +36,7 @@
#define APPLE_FLAG_FKEY 0x01
-static unsigned int fnmode = 1;
+static unsigned int fnmode = 2;
module_param(fnmode, uint, 0644);
MODULE_PARM_DESC(fnmode, "Mode of fn key on Apple keyboards (0 = disabled, "
"[1] = fkeyslast, 2 = fkeysfirst)");