-
-
Notifications
You must be signed in to change notification settings - Fork 357
Expand file tree
/
Copy pathauto-cpufreq.conf-example.nix
More file actions
134 lines (111 loc) · 5.95 KB
/
Copy pathauto-cpufreq.conf-example.nix
File metadata and controls
134 lines (111 loc) · 5.95 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
services.auto-cpufreq.enable = true; # enable the service
services.auto-cpufreq.settings = {
# settings for when connected to a power source
charger = {
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# preferred governor.
governor = "performance";
# EPP: see available preferences by running: cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences
energy_performance_preference = "performance";
# Intel HWP Dynamic Boost.
# Only available with intel_pstate in active mode and HWP enabled.
# Alters value in: /sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost
# hwp_dynamic_boost = true;
# EPB (Energy Performance Bias) for the intel_pstate driver
# see conversion info: https://www.kernel.org/doc/html/latest/admin-guide/pm/intel_epb.html
# available EPB options include a numeric value between 0-15
# (where 0 = maximum performance and 15 = maximum power saving),
# or one of the following strings:
# performance (0), balance_performance (4), default (6), balance_power (8), or power (15)
# if the parameter is missing in the config and the hardware supports this setting, the default value will be used
# the default value is `balance_performance` (for charger)
# energy_perf_bias = "balance_performance";
# Platform Profiles
# https://www.kernel.org/doc/html/latest/userspace-api/sysfs-platform_profile.html
# See available options by running:
# cat /sys/firmware/acpi/platform_profile_choices
# platform_profile = "performance";
# Controls strict enforcement of the platform profile.
# - true: Constantly enforces the platform profile defined above.
# - false: Sets profile only on AC/Battery changes, allowing manual overrides (e.g., Fn+Q on Legion laptops).
# enforce_platform_profile = true;
# minimum cpu frequency (in kHz)
# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
# to use this feature, uncomment the following line and set the value accordingly
# scaling_min_freq = 800000;
# maximum cpu frequency (in kHz)
# example: for 1GHz = 1000 MHz = 1000000 kHz -> scaling_max_freq = 1000000
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
# to use this feature, uncomment the following line and set the value accordingly
# scaling_max_freq = 1000000;
# turbo boost setting. possible values: always, auto, never
turbo = "auto";
};
# this is for ignoring controllers and other connected devices battery from affecting
# laptop performance
# power_supply_ignore_list = {
# name1 = "this";
# name2 = "is";
# name3 = "an";
# name4 = "example";
# };
# settings for when using battery power
battery = {
# Specify which battery device to use for reading battery information.
# See available power supplies with: ls /sys/class/power_supply/
# If not set, auto-cpufreq prefers a battery with scope = System and otherwise
# falls back to another battery that is not marked with scope = Device.
# battery_device = BAT1
# see available governors by running: cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
# preferred governor
governor = "powersave";
# EPP: see available preferences by running: cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences
energy_performance_preference = "power";
# Intel HWP Dynamic Boost.
# Only available with intel_pstate in active mode and HWP enabled.
# Alters value in: /sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost
# hwp_dynamic_boost = false;
# EPB (Energy Performance Bias) for the intel_pstate driver
# see conversion info: https://www.kernel.org/doc/html/latest/admin-guide/pm/intel_epb.html
# available EPB options include a numeric value between 0-15
# (where 0 = maximum performance and 15 = maximum power saving),
# or one of the following strings:
# performance (0), balance_performance (4), default (6), balance_power (8), or power (15)
# if the parameter is missing in the config and the hardware supports this setting, the default value will be used
# the default value is `balance_power` (for battery)
# energy_perf_bias = "balance_power";
# Platform Profiles
# https://www.kernel.org/doc/html/latest/userspace-api/sysfs-platform_profile.html
# See available options by running:
# cat /sys/firmware/acpi/platform_profile_choices
# platform_profile = "low-power";
# Controls strict enforcement of the platform profile.
# - true: Constantly enforces the platform profile defined above.
# - false: Sets profile only on AC/Battery changes, allowing manual overrides (e.g., Fn+Q on Legion laptops).
# enforce_platform_profile = true;
# minimum cpu frequency (in kHz)
# example: for 800 MHz = 800000 kHz --> scaling_min_freq = 800000
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
# to use this feature, uncomment the following line and set the value accordingly
# scaling_min_freq = 800000;
# maximum cpu frequency (in kHz)
# see conversion info: https://www.rapidtables.com/convert/frequency/mhz-to-hz.html
# example: for 1GHz = 1000 MHz = 1000000 kHz -> scaling_max_freq = 1000000
# to use this feature, uncomment the following line and set the value accordingly
# scaling_max_freq = 1000000;
# turbo boost setting. possible values: always, auto, never
turbo = "auto";
# experimental
# Add battery charging threshold (currently only available to Lenovo)
# checkout README.md for more info
# enable thresholds true or false
# enable_thresholds = true;
#
# start threshold (0 is off ) can be 0-99
# start_threshold = 0;
#
# stop threshold (100 is off) can be 1-100
# stop_threshold = 100;
};
};