Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[display] Add automatic cpu governor policy #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions inifiles/cpu-governor.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Configuration file for MCE - CPU Governor control data
#
# Having configuration is completely optional.
#
# Also note that defining a configuration might not work
# as expected for example when:
# - there is some other daemon adjusting frequencies
# (adjustments get overridden / otherwise out of sync)
# - sysfs control files appear/disapper dynamically
# (configured files do not exist when they would be written to)
#
# The mode can be selected explicitly or automatically based
# on device state
#
# mcetool --set-cpu-scaling-governor=<mode>
#
# Where mode is one of:
# - disabled - The feature is disabled
# - performance - "Default" configuration is applied
# - interactive - "Interactive" configuration is applied
# - inactive - "Inactive" configuration is applied
# - idle - "Idle" configuration is applied
# - automatic - Configuration is selected based on device state

# "Default" values are applied when:
# - device is booting up / shutting down
# - mce is starting up / about to exit
[CPUScalingGovernorDefault]
path1=/sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq
data1=432000

# Up to 32 path/data pairs can be defined. Writing is done
# in the given order. Each block is handled as-defined, i.e.
# if it is somehow benefitial they can have different sets
# of files to write to.
#path2=xxx
#data2=yyy
# :
#path32=xxx
#data32=yyy

# When the "Default" is not enforced, other values can be
# either selected explicitly, or automatically based on
# device state.

# In automatic mode "Interactive" values are applied when:
# - display is on and there is user activity
# - during display power up / down
[CPUScalingGovernorInteractive]
path1=/sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq
data1=432000

# In automatic mode "Inactive" values are applied when:
# - display is on and there is no user activity
[CPUScalingGovernorInactive]
path1=/sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq
data1=384000

# In automatic mode "Idle" values are applied when:
# - display is off
[CPUScalingGovernorIdle]
path1=/sys/devices/system/cpu/cpu*/cpufreq/scaling_min_freq
data1=216000
Loading