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.
24 lines
850 B
24 lines
850 B
--- a/src/module_pmac.c
|
|
+++ b/src/module_pmac.c
|
|
@@ -990,7 +990,9 @@
|
|
}
|
|
} else {
|
|
if ((fd = open ("/sys/module/usbhid/parameters/pb_fnmode", O_RDONLY)) < 0)
|
|
- fd = open ("/sys/module/hid/parameters/pb_fnmode", O_RDONLY);
|
|
+ if ((fd = open ("/sys/module/hid/parameters/pb_fnmode", O_RDONLY)) < 0)
|
|
+ fd = open("/sys/module/hid_apple/parameters/fnmode", O_RDONLY);
|
|
+
|
|
|
|
if (fd >= 0) {
|
|
if ((n = read (fd, ADBBuffer, ADB_BUFSIZE-1)) > 0) {
|
|
@@ -1025,7 +1027,8 @@
|
|
}
|
|
} else {
|
|
if ((fd = open ("/sys/module/usbhid/parameters/pb_fnmode", O_WRONLY)) < 0)
|
|
- fd = open ("/sys/module/hid/parameters/pb_fnmode", O_WRONLY);
|
|
+ if ((fd = open ("/sys/module/hid/parameters/pb_fnmode", O_WRONLY)) < 0)
|
|
+ fd = open ("/sys/module/hid_apple/parameters/fnmode", O_WRONLY);
|
|
|
|
if (fd >= 0) {
|
|
sprintf ((char*)ADBBuffer, "%d", config);
|