-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.h
35 lines (29 loc) · 1.64 KB
/
config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* See LICENSE file for copyright and license details. */
/* seconds to sleep(3) before adjusting the system */
static const unsigned int interval = 15;
/* Usual avaliable governors:
* performance - powersave - userspace - ondemand - conservative - schedutil
* Check supported govenors:
* cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
*
* NOTE FOR INTEL USERS: (modern) intel CPUs have a pstate, which is preferable
* over the cpufreq. As a suggestion, these 'intel specific' governors are:
* balance_performance - balance_power
* Check if the path /sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost exist */
/* default governor to use when using the battery */
static const char batgovernor[] = "powersave";
/* default governor to use when AC adapter is connected */
static const char acgovernor[] = "performance";
/* Always: turbo boost will always be on.
* Never: turbo boost will never be on.
* Auto: depending on the cpu usage, system load and temperature, turbo boost
* will be on/off. */
static const unsigned int batturbo = Auto; /* value to use in battery */
static const unsigned int acturbo = Auto; /* value to use in AC */
/* values used in Auto mode (turbo boost) */
static const unsigned int mincpu = 20; /* percentage of cpu usage where turbo boost is enabled */
static const unsigned int mintemp = 70; /* degrees celsius where turbo boost is enabled */
/* Path to the sensors, in order to fetch the overall temperature.
* Usually at /sys/class/thermal/thermal_zone0/temp or
* /sys/class/hwmon/hwmon0/device/temp1_input */
static const char thermal[] = "/sys/class/thermal/thermal_zone0/temp";