Enlightenment CVS committal Author : onefang Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/temperature Modified Files: e_mod_main.c e_mod_main.h Log Message: Patch to add PowerBook temperature reading from Paul T. Threshold. =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/temperature/e_mod_main.c,v retrieving revision 1.82 retrieving revision 1.83 diff -u -3 -r1.82 -r1.83 --- e_mod_main.c 25 Mar 2007 22:06:33 -0000 1.82 +++ e_mod_main.c 11 Jul 2007 23:17:13 -0000 1.83 @@ -231,6 +231,11 @@ inst->sensor_type = SENSOR_TYPE_OMNIBOOK; inst->sensor_name = evas_stringshare_add("dummy"); } + else if (ecore_file_exists("/sys/devices/temperatures/sensor1_temperature")) + { + inst->sensor_type = SENSOR_TYPE_LINUX_PBOOK; + inst->sensor_name = evas_stringshare_add("dummy"); + } else if (ecore_file_exists("/sys/devices/temperatures/cpu_temperature")) { inst->sensor_type = SENSOR_TYPE_LINUX_MACMINI; @@ -288,6 +293,9 @@ case SENSOR_TYPE_LINUX_MACMINI: inst->sensor_path = evas_stringshare_add("/sys/devices/temperatures/cpu_temperature"); break; + case SENSOR_TYPE_LINUX_PBOOK: + inst->sensor_path = evas_stringshare_add("/sys/devices/temperatures/sensor1_temperature"); + break; case SENSOR_TYPE_LINUX_I2C: therms = ecore_file_ls("/sys/bus/i2c/devices"); if (therms) @@ -369,6 +377,7 @@ goto error; break; case SENSOR_TYPE_LINUX_MACMINI: + case SENSOR_TYPE_LINUX_PBOOK: f = fopen(inst->sensor_path, "rb"); if (f) { =================================================================== RCS file: /cvs/e/e17/apps/e/src/modules/temperature/e_mod_main.h,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- e_mod_main.h 28 Jan 2007 16:08:12 -0000 1.27 +++ e_mod_main.h 11 Jul 2007 23:17:13 -0000 1.28 @@ -20,7 +20,8 @@ SENSOR_TYPE_OMNIBOOK, SENSOR_TYPE_LINUX_MACMINI, SENSOR_TYPE_LINUX_I2C, - SENSOR_TYPE_LINUX_ACPI + SENSOR_TYPE_LINUX_ACPI, + SENSOR_TYPE_LINUX_PBOOK } 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