Omnibook laptop support for temperature module. These lappys cannot use

Linux ACPI correctly.


SVN revision: 25375
This commit is contained in:
Christopher Michael 2006-09-02 23:46:59 +00:00
parent f77fc06ecb
commit 270329ecbf
1 changed files with 14 additions and 0 deletions

View File

@ -198,6 +198,19 @@ _temperature_cb_check(void *data)
}
}
#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 @@ _temperature_cb_check(void *data)
}
ecore_list_destroy(therms);
}
# endif
#endif
if (temperature_config->units == FAHRENHEIT)