[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Powerbook5,8: FN key mode



Hello Matthias

On Sat, Jan 21, 2006 at 11:52:12PM +0100, Matthias Grimm wrote:
> It would be nice if you could test this feature and tell me the results.

It didn't work from the start, but the patch below fixes it. After
applying the patch, it works.

Btw.: The illumination patch I wrote was based on work by René
Nussbaumer, who found out that the LMU is not on the I²C bus anymore on
the PowerBook5,8. Maybe you want to put that into the ChangeLog, because
not all of the credit should go to me.

Greets,
Michael

diff -urp pbbuttonsd-0.7.3-6g.orig/src/module_pmac.c pbbuttonsd-0.7.3-6g/src/module_pmac.c
--- pbbuttonsd-0.7.3-6g.orig/src/module_pmac.c	2006-01-22 17:48:40.000000000 +0100
+++ pbbuttonsd-0.7.3-6g/src/module_pmac.c	2006-01-22 20:31:02.000000000 +0100
@@ -120,7 +120,7 @@ pmac_init ()
 				TRACKPAD_NOTAP_NAME, TRACKPAD_TAP_NAME, TRACKPAD_DRAG_NAME, TRACKPAD_LOCK_NAME, NULL);
 		registerCfgOptionList (sid, "KBDMode", TAG_KBDMODE, 0,
 				N_("'"KEYBOARD_FNDISABLED_NAME"', '"KEYBOARD_FNBACK_NAME"' or '"KEYBOARD_FNTOP_NAME"'"),
-				KEYBOARD_FNDISABLED, KEYBOARD_FNBACK_NAME, KEYBOARD_FNTOP_NAME, NULL);
+				KEYBOARD_FNDISABLED_NAME, KEYBOARD_FNBACK_NAME, KEYBOARD_FNTOP_NAME, NULL);
 		registerCfgOptionList (sid, "Batlog", TAG_BATLOG, 0,
 				N_("'"BATLOG_NONE_NAME"', '"BATLOG_CYCLE_NAME"' or '"BATLOG_LOG_NAME"'"),
 				BATLOG_NONE_NAME, BATLOG_CYCLE_NAME, BATLOG_LOG_NAME, NULL);
diff -urp pbbuttonsd-0.7.3-6g.orig/src/module_pmac.h pbbuttonsd-0.7.3-6g/src/module_pmac.h
--- pbbuttonsd-0.7.3-6g.orig/src/module_pmac.h	2006-01-22 17:48:40.000000000 +0100
+++ pbbuttonsd-0.7.3-6g/src/module_pmac.h	2006-01-22 20:30:58.000000000 +0100
@@ -28,7 +28,7 @@
 #define DEFAULT_ADB		"/dev/adb"
 #define DEFAULT_BATLOG		"/var/lib/pbbuttons/%03d_battery.log"
 #define DEFAULT_BATCYCLE	"/var/lib/pbbuttons/battery.cycle"
-#define PATH_FNMODE		"/sys/modules/usbhid/parameters/pb_fnmode"
+#define PATH_FNMODE		"/sys/module/usbhid/parameters/pb_fnmode"
 
 /* definitions for input device config */
 #define TRACKPAD_NOTAP_NAME	"notap"

-- 
Gentoo Linux developer, http://hansmi.ch/, http://forkbomb.ch/
Unix weanies are as bad at this as anyone.
             -- Larry Wall in <199702111730.JAA28598@wall.org>

Attachment: pgpqPTqLMU80e.pgp
Description: PGP signature


Reply to: