#include "config.h"
#include <time.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <dirent.h>
#include <unistd.h>
#include <stdlib.h>
#include "powerlib_local.h"
#include "powerlib.h"
#include "errno.h"
Defines | |
#define | ACPI_THERMAL_DIR "/proc/acpi/thermal_zone" |
#define | ACPI_THERMAL_TEMP_FILE "temperature" |
#define | ACPI_THERMAL_COOLING_POLICY_FILE "cooling_mode" |
#define | ACPI_THERMAL_TRIP_POINTS_FILE "trip_points" |
#define | ACPI_THERMAL_POLLING_FREQ_FILE "polling_frequency" |
#define | ACPI_THERMAL_STATE_FILE "state" |
Functions | |
int | getThermalZonesNum () |
get the number of thermal zones | |
int | getThermalZoneTemp (int zone) |
get thermal zone temp | |
int | getThermalZoneState (int zone) |
get thermal zone state | |
int | getThermalZone (const int num, ThermalDev *td) |
get a thermal zone | |
int | setThermalTrippoints (const int num, const ThermalDev td) |
set thermal trippoints | |
int | setCoolingMode (const int device_num, const int mode) |
set cooling mode |
|
|
|
|
|
|
|
|
|
|
|
|