Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/temperature


Modified Files:
        e_mod_main.c e_mod_main.h 


Log Message:
Path from Kent (der_Metzger) <[EMAIL PROTECTED]> to add Intel Core2
temperature sensor support to the temperature module.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/temperature/e_mod_main.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -3 -r1.83 -r1.84
--- e_mod_main.c        11 Jul 2007 23:17:13 -0000      1.83
+++ e_mod_main.c        16 Jul 2007 21:27:22 -0000      1.84
@@ -241,6 +241,11 @@
                  inst->sensor_type = SENSOR_TYPE_LINUX_MACMINI;
                  inst->sensor_name = evas_stringshare_add("dummy");
               }
+            else if 
(ecore_file_exists("/sys/devices/platform/coretemp.0/temp1_input"))
+              {
+                 inst->sensor_type = SENSOR_TYPE_LINUX_INTELCORETEMP;
+                 inst->sensor_name = evas_stringshare_add("dummy");
+              }
             else
               {
                   therms = temperature_get_i2c_files();
@@ -296,6 +301,9 @@
           case SENSOR_TYPE_LINUX_PBOOK:
                  inst->sensor_path = 
evas_stringshare_add("/sys/devices/temperatures/sensor1_temperature");
              break;
+          case SENSOR_TYPE_LINUX_INTELCORETEMP:
+                 inst->sensor_path = 
evas_stringshare_add("/sys/devices/platform/coretemp.0/temp1_input");
+             break;
           case SENSOR_TYPE_LINUX_I2C:
              therms = ecore_file_ls("/sys/bus/i2c/devices");
              if (therms)
@@ -391,6 +399,7 @@
         else
           goto error;
         break;
+      case SENSOR_TYPE_LINUX_INTELCORETEMP:
       case SENSOR_TYPE_LINUX_I2C:
         f = fopen(inst->sensor_path, "r");
         if (f)
===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/temperature/e_mod_main.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- e_mod_main.h        11 Jul 2007 23:17:13 -0000      1.28
+++ e_mod_main.h        16 Jul 2007 21:27:22 -0000      1.29
@@ -21,7 +21,8 @@
    SENSOR_TYPE_LINUX_MACMINI,
    SENSOR_TYPE_LINUX_I2C,
    SENSOR_TYPE_LINUX_ACPI,
-   SENSOR_TYPE_LINUX_PBOOK
+   SENSOR_TYPE_LINUX_PBOOK,
+   SENSOR_TYPE_LINUX_INTELCORETEMP
 } Sensor_Type;
 
 struct _Config_Face



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to