[Pommed-commits] [SCM] pommed - hotkeys handler for Apple laptops branch, master, updated. 1.36-7-g7e00acb

Julien BLACHE jb at jblache.org
Sat Feb 5 17:27:36 UTC 2011


The following commit has been merged in the master branch:
commit c0b5ac88cc7c51551e72e039824d244d141c086c
Author: Julien BLACHE <jb at jblache.org>
Date:   Sat Feb 5 17:51:56 2011 +0100

    Fix oversight in applesmc probing change
    
    The smcpath must include "/light" for ambient light sensors polling.

diff --git a/ChangeLog b/ChangeLog
index 121de1f..09e9ee1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,9 @@
 ChangeLog for pommed
 --------------------
 
+version 1.37:
+	- pommed: fix oversight in applesmc probing change.
+
 version 1.36:
 	- pommed: probe for applesmc through /sys/class/hwmon.
 	- pommed: add support for the MacBook7,1 (April 2010).
diff --git a/pommed/mactel/ambient.c b/pommed/mactel/ambient.c
index 75699e1..267a9bf 100644
--- a/pommed/mactel/ambient.c
+++ b/pommed/mactel/ambient.c
@@ -146,6 +146,12 @@ ambient_init(int *r, int *l)
 
 	      logmsg(LOG_INFO, "Dereferenced applesmc to %s", smcpath);
 
+	      smcpath = realloc(smcpath, strlen(smcpath) + 1 + 6);
+	      if (!smcpath)
+		break;
+
+	      strcat(smcpath, "/light");
+
 	      break;
 	    }
 	}

-- 
pommed - hotkeys handler for Apple laptops



More information about the Pommed-commits mailing list