Enlightenment CVS committal

Author  : devilhorns
Project : e17
Module  : apps/e

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


Modified Files:
        e_mod_main.c 


Log Message:
Omnibook laptop support for temperature module. These lappys cannot use
Linux ACPI correctly.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/temperature/e_mod_main.c,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -3 -r1.67 -r1.68
--- e_mod_main.c        23 Aug 2006 04:02:03 -0000      1.67
+++ e_mod_main.c        2 Sep 2006 23:46:59 -0000       1.68
@@ -198,6 +198,19 @@
          }
      }
 #else  
+# ifdef HAVE_OMNIBOOK
+   FILE *f;
+   char dummy[256];
+   
+   f = fopen("/proc/omnibook/temperature", "r");
+   if (f) 
+     {
+       fgets(buf, sizeof(buf), f); buf[sizeof(buf) - 1] = 0;
+       if (sscanf(buf, "%s %s %i", dummy, dummy, &temp) == 3)
+         ret = 1;
+       fclose(f);
+     }
+# else
    therms = ecore_file_ls("/proc/acpi/thermal_zone");
    if ((!therms) || ecore_list_is_empty(therms))
      {
@@ -283,6 +296,7 @@
          }
        ecore_list_destroy(therms);
      }
+# endif
 #endif   
    
    if (temperature_config->units == FAHRENHEIT)



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to