[Pommed-commits] r255 - trunk/pommed

Yves-Alexis Perez corsac-guest at alioth.debian.org
Sat Feb 10 20:10:31 CET 2007


Author: corsac-guest
Date: 2007-02-10 20:10:31 +0100 (Sat, 10 Feb 2007)
New Revision: 255

Modified:
   trunk/pommed/pommed.c
   trunk/pommed/pommed.h
Log:
add support for 2.6.20 kernel for fn_mode change


Modified: trunk/pommed/pommed.c
===================================================================
--- trunk/pommed/pommed.c	2007-02-02 17:06:43 UTC (rev 254)
+++ trunk/pommed/pommed.c	2007-02-10 19:10:31 UTC (rev 255)
@@ -214,7 +214,12 @@
   if (fp == NULL)
     {
       logmsg(LOG_INFO, "Could not open %s: %s", KBD_FNMODE_FILE, strerror(errno));
-      return;
+      fp = fopen(KBD_FNMODE_FILE2620, "a");
+      if (fp == NULL)
+        {
+          logmsg(LOG_INFO, "Could not open %s: %s", KBD_FNMODE_FILE2620, strerror(errno));
+          return;
+        }
     }
 
   fprintf(fp, "%d", general_cfg.fnmode);

Modified: trunk/pommed/pommed.h
===================================================================
--- trunk/pommed/pommed.h	2007-02-02 17:06:43 UTC (rev 254)
+++ trunk/pommed/pommed.h	2007-02-10 19:10:31 UTC (rev 255)
@@ -58,6 +58,7 @@
 #define CONFFILE               "/etc/pommed.conf"
 
 #define KBD_FNMODE_FILE        "/sys/module/usbhid/parameters/pb_fnmode"
+#define KBD_FNMODE_FILE2620    "/sys/module/hid/parameters/pb_fnmode"
 
 #define STEP_UP                 1
 #define STEP_DOWN               -1




More information about the Pommed-commits mailing list