1 |
josejx 08/12/28 02:14:13 |
2 |
|
3 |
Added: fnmode.patch |
4 |
Log: |
5 |
Add patch to fix fnmode with kernel 2.6.28. |
6 |
(Portage version: 2.1.4.5) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 app-laptop/pbbuttonsd/files/fnmode.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/files/fnmode.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-laptop/pbbuttonsd/files/fnmode.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: fnmode.patch |
15 |
=================================================================== |
16 |
--- src/module_pmac.c 2007-07-01 07:05:17.000000000 -0400 |
17 |
+++ src/module_pmac.kbdfix.c 2008-12-27 11:46:36.000000000 -0500 |
18 |
@@ -990,7 +990,9 @@ |
19 |
} |
20 |
} else { |
21 |
if ((fd = open ("/sys/module/usbhid/parameters/pb_fnmode", O_RDONLY)) < 0) |
22 |
- fd = open ("/sys/module/hid/parameters/pb_fnmode", O_RDONLY); |
23 |
+ if ((fd = open ("/sys/module/hid/parameters/pb_fnmode", O_RDONLY)) < 0) |
24 |
+ fd = open("/sys/module/hid_apple/parameters/fnmode", O_RDONLY); |
25 |
+ |
26 |
|
27 |
if (fd >= 0) { |
28 |
if ((n = read (fd, ADBBuffer, ADB_BUFSIZE-1)) > 0) { |
29 |
@@ -1025,7 +1027,8 @@ |
30 |
} |
31 |
} else { |
32 |
if ((fd = open ("/sys/module/usbhid/parameters/pb_fnmode", O_WRONLY)) < 0) |
33 |
- fd = open ("/sys/module/hid/parameters/pb_fnmode", O_WRONLY); |
34 |
+ if ((fd = open ("/sys/module/hid/parameters/pb_fnmode", O_WRONLY)) < 0) |
35 |
+ fd = open ("/sys/module/hid_apple/parameters/fnmode", O_WRONLY); |
36 |
|
37 |
if (fd >= 0) { |
38 |
sprintf ((char*)ADBBuffer, "%d", config); |