]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.suse/ppc-powerbook-usb-fn-key-default.patch
Updated xen patches taken from suse.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.suse / ppc-powerbook-usb-fn-key-default.patch
1 Subject: Default value of usbhid.pb_fnmode module parameter
2 From: olh@suse.de
3 References: 220266
4
5 The kernel default value for usbhid.pb_fnmode is 1, which means that pressing
6 the Fn keys (F1..F10) without the fn key triggers the special functions
7 decrease/increase brightness, mute, decrease/increase volume, etc., which is
8 the default under MacOS.
9
10 At least under 10.2 Beta2, only the volume related special functions work at
11 all. In addition, Ctrl-Alt-Fx is used to switch between consoles. with
12 pb_fnmode==1, the fn key needs to be pressed in addition.
13
14 Therefore, pb_fnmode==2 (F1..F10 by default trigger Fn rather than the special
15 functions) makes more sense under Linux.
16
17
18 drivers/hid/hid-input.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/hid/hid-input.c
22 +++ b/drivers/hid/hid-input.c
23 @@ -32,7 +32,7 @@
24 #include <linux/hid.h>
25 #include <linux/hid-debug.h>
26
27 -static int hid_apple_fnmode = 1;
28 +static int hid_apple_fnmode = 2;
29 module_param_named(pb_fnmode, hid_apple_fnmode, int, 0644);
30 MODULE_PARM_DESC(pb_fnmode,
31 "Mode of fn key on Apple keyboards (0 = disabled, 1 = fkeyslast, 2 = fkeysfirst)");