#include <config_pm.h>
Inheritance diagram for PS_Config:
Public Types | |
typedef map< string, Event >::iterator | EventIter |
Public Member Functions | |
PS_Config () | |
constructor | |
virtual | ~PS_Config () |
destructor | |
virtual Event & | getEvent (const string &event_name) |
virtual int | readConfigFile (const std::string &file="") |
virtual void | assignConfigEntries () |
Public Attributes | |
ThermalDev | thermal_zones [MAX_THERMAL_ZONES] |
string | SCHEME_NAME |
a scheme name | |
string | SCHEME_DESCRIPTION |
the scheme description | |
CPUFREQ_CONTROL_MODE | CPUFREQ_CONTROL |
cpufreq should be controlled by userspace or kernel | |
int | CPU_HIGH_LIMIT |
cpu load percentage at which we increase the cpu speed | |
THERMAL_MANAGEMENT_DELIGATION | ENABLE_THERMAL_MANAGEMENT |
unsigned long | POLL_INTERVAL |
how long our event loop sleeps (in miliseconds) | |
unsigned long | CPU_IDLE_TIMEOUT |
timeout (seconds) after which an additional idle event is thrown | |
int | CPU_IDLE_LIMIT |
cpu limit (in percent) under which after CPU_IDLE_TIMEOUT the idle event is thrown | |
int | MAX_CPUS_ONLINE |
how many CPUs should be only at max | |
int | CONSIDER_NICE |
should niced processes count for cpufreq calculation, too? | |
int | USER_SUSPEND2DISK_DISABLED |
if suspend to disk is disabled | |
int | USER_SUSPEND2RAM_DISABLED |
if suspend to ram is disabled | |
int | USER_STANDBY_DISABLED |
if standby is disabled | |
int | SUSPEND2DISK_DELAY |
the time to delay when a suspend to disk event is executed until the suspend is actually performed | |
int | SUSPEND2RAM_DELAY |
the time to delay when a suspend to ram event is executed until the suspend is actually performed | |
int | STANDBY_DELAY |
the time to delay when a standby event is executed until the standby is actually performed | |
int | DISPLAY_BRIGHTNESS |
absolute brightness level (depends on driver) or: -1 ignore -2 low -3 medium -4 high | |
int | POWER_BUTTON_DELAY |
time an button/power acpi event is delayed until going on | |
int | BAT_WARN_LIMIT |
int | BAT_LOW_LIMIT |
int | BAT_CRIT_LIMIT |
int | JUMP_CPU_FREQ_MAX_LIMIT |
percent on which the cpu frequency is set immediately to maximum | |
bool | CPUFREQ_ENABLED |
whether cpufrequency scaling is enabled | |
bool | DPM_ENABLED |
if dpm is enabled | |
int | CPUFREQ_HYSTERESIS |
string | BATTERY_SCHEME |
filename of the battery scheme without the leading scheme_* | |
string | AC_SCHEME |
filename of the ac scheme without the leading scheme_* | |
bool | ALLOW_THROTTLING |
if throttling is allowed | |
int | MAX_CPU_THROTTLING |
the maximum percent to which get throttled | |
bool | ALWAYS_THROTTLE |
if we should always throttle | |
CPUFREQ_MODE | CPUFREQUENCY |
one of dynamic, powersave or performance | |
_COOLING_POLICY | COOLING_POLICY |
the cooling policy, either active or passive | |
map< string, Event > | eventMap |
std::list< DPM_DEVICE_CLASS > | dpmClasses |
Private Types | |
typedef std::map< std::string, std::string > | StringMap |
an array that can be accessed by string name | |
Private Member Functions | |
void | strtointErr (char *str, int line, const char *file) |
predefined message for debugging string to int conversion | |
int | checkValue (const std::string &what, int min, int max) |
checks a value from a configuration file | |
int | checkValue (const std::string &what, int min) |
checks a value from a configuration file | |
int | checkValue (int def, const std::string &what, int min, int max) |
checks a value from a configuration file | |
int | checkValue (int def, const std::string &what, int min) |
checks a value from a configuration file | |
int | checkYes (const std::string &what) |
checks a value from a configuration file for yes/no | |
int | checkYes (int def, const std::string &what) |
checks a value from a configuration file for yes/no | |
void | splitLine (std::string line, std::list< std::string > &strings) |
split a line into single strings | |
Private Attributes | |
StringMap | data |
holds all configuration variables |
|
map that contains all EVENT objects. All EVENT objects are initialised in PM_Interface constructor. |
|
an array that can be accessed by string name
|
|
constructor
|
|
destructor
|
|
|
|
checks a value from a configuration file
|
|
checks a value from a configuration file
|
|
checks a value from a configuration file
|
|
checks a value from a configuration file
|
|
checks a value from a configuration file for yes/no
|
|
checks a value from a configuration file for yes/no
|
|
|
|
|
|
split a line into single strings
|
|
predefined message for debugging string to int conversion
|
|
filename of the ac scheme without the leading scheme_* Do not mix up with the SCHEME_NAME variable inside the scheme |
|
if throttling is allowed
|
|
if we should always throttle
|
|
|
|
|
|
|
|
filename of the battery scheme without the leading scheme_* Do not mix up with the SCHEME_NAME variable inside the scheme |
|
should niced processes count for cpufreq calculation, too?
|
|
the cooling policy, either active or passive
|
|
cpu load percentage at which we increase the cpu speed
|
|
cpu limit (in percent) under which after CPU_IDLE_TIMEOUT the idle event is thrown
|
|
timeout (seconds) after which an additional idle event is thrown
|
|
cpufreq should be controlled by userspace or kernel
|
|
whether cpufrequency scaling is enabled
|
|
The hysteresis for calculating the CPU load limit to switch to the next lover CPU frequency. Increasing this value lowers the load percentage at which the deamon switches down one step. This might be useful if you notice that the frequency continuously oscilates at a almost constant CPU usage (e.g. when watching a movie). 5 is default, you should not set it higher than 40. Zero is not allowed. |
|
one of dynamic, powersave or performance
|
|
holds all configuration variables
|
|
absolute brightness level (depends on driver) or: -1 ignore -2 low -3 medium -4 high
|
|
if dpm is enabled
|
|
list containing device classes DPM_DEVICE_CLASS which should get suspended |
|
what't that. I can't find word deligation |
|
Actions for events as specified in events config file or maybe specialised in a scheme configuration |
|
percent on which the cpu frequency is set immediately to maximum Set the CPU load difference limit for which the highest available frequency is set immediately (e.g. if set to 60, it switches to full speed if the CPU load jumps from 5% to 66% or higher instead of ramping up through all available frequencies). Disable the direct triggering of the highest frequency by setting a value of 0. |
|
the maximum percent to which get throttled
|
|
how many CPUs should be only at max 0 means all |
|
how long our event loop sleeps (in miliseconds)
|
|
time an button/power acpi event is delayed until going on
|
|
the scheme description
|
|
a scheme name this will only be assigned with valid value for schemes |
|
the time to delay when a standby event is executed until the standby is actually performed
|
|
the time to delay when a suspend to disk event is executed until the suspend is actually performed
|
|
the time to delay when a suspend to ram event is executed until the suspend is actually performed
|
|
holds all thermal info coming from powerlib.h. It is initialised with kernel/BIOS values that could be overridden by config files |
|
if standby is disabled
|
|
if suspend to disk is disabled
|
|
if suspend to ram is disabled
|