Skip to content

Instantly share code, notes, and snippets.

@rmeissn
Created November 5, 2024 08:08
Show Gist options
  • Save rmeissn/8e218dc473f389c2dbd2fe0c392bdfc5 to your computer and use it in GitHub Desktop.
Save rmeissn/8e218dc473f389c2dbd2fe0c392bdfc5 to your computer and use it in GitHub Desktop.
Tuned configuration, resembling a tuned TLP profile for Framework 13 12th-gen Intel
[main]
# The default PPD profile
default=balanced
battery_detection=true
[profiles]
# PPD = TuneD
power-saver=powersave
balanced=balanced
performance=performance
[battery]
# PPD = TuneD
balanced=balanced-battery
#
# tuned configuration
#
[main]
summary = Optimize for balanced battery power consumption (custom profile)
[cpu]
priority=10
governor=ondemand|powersave
energy_performance_preference=balance_power
energy_perf_bias=balance-power
max_perf_pct=40
no_turbo=1
[audio]
timeout=1
[sysctl]
vm.laptop_mode=5
vm.dirty_writeback_centisecs = 6000
vm.dirty_expire_centisecs = 6000
#vm.dirty_background_ratio = 10
vm.swappiness = 60
kernel.nmi_watchdog=0
#[scsi_host]
#alpm=medium_power
[usb]
autosuspend=1
[sysfs]
#/sys/devices/system/cpu/intel_pstate/no_turbo=1
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost=1
/sys/devices/system/cpu/cpu[0-7]/cpufreq/scaling_max_freq=2100000
/sys/devices/system/cpu/cpu[0-7]/cpufreq/cpuinfo_max_freq=2100000
/sys/class/drm/card1/gt_max_freq_mhz=700
/sys/class/drm/card1/gt_boost_freq_mhz=1000
/sys/block/nvme0n1/device/power/control=auto
# wifi power management?
/sys/module/snd_hda_intel/parameters/power_save_controller=Y
/sys/module/pcie_aspm/parameters/policy=powersave
/sys/bus/pci/devices/*/power/control=auto
#
# tuned configuration
#
[main]
summary = Optimize for balanced performance consumption (custom profile)
[cpu]
#priority=10
governor=ondemand|performance
energy_performance_preference=balance_performance
energy_perf_bias=normal
#max_perf_pct=100
no_turbo=0
[audio]
timeout=0
[sysctl]
vm.laptop_mode=0
vm.dirty_writeback_centisecs = 1500
vm.dirty_expire_centisecs = 1500
vm.dirty_background_ratio = 10
vm.swappiness = 60
kernel.nmi_watchdog=0
#[scsi_host]
#alpm=medium_power
[usb]
autosuspend=0
[sysfs]
#/sys/devices/system/cpu/intel_pstate/no_turbo=0
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost=1
/sys/devices/system/cpu/cpu[0-7]/cpufreq/scaling_max_freq=4700000
/sys/devices/system/cpu/cpu[0-7]/cpufreq/cpuinfo_max_freq=4700000
#/sys/class/drm/card1/gt_max_freq_mhz=700
#/sys/class/drm/card1/gt_boost_freq_mhz=1000
#/sys/block/nvme0n1/device/power/control=on
# wifi power management?
/sys/module/snd_hda_intel/parameters/power_save_controller=N
/sys/module/pcie_aspm/parameters/policy=default
#/sys/bus/pci/devices/*/power/control=auto
#
# tuned configuration
#
[main]
summary = Optimize for performace (custom profile)
[cpu]
#priority=10
governor=ondemand|performance
energy_performance_preference=performance
energy_perf_bias=performance
#max_perf_pct=100
no_turbo=0
[audio]
timeout=0
[sysctl]
vm.laptop_mode=0
vm.dirty_writeback_centisecs = 1500
vm.dirty_expire_centisecs = 1500
vm.dirty_background_ratio = 10
vm.swappiness = 10
kernel.nmi_watchdog=0
#[scsi_host]
#alpm=max_performance
[usb]
autosuspend=0
[sysfs]
#/sys/devices/system/cpu/intel_pstate/no_turbo=0
#/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost=1
/sys/devices/system/cpu/cpu[0-7]/cpufreq/scaling_max_freq=4700000
/sys/devices/system/cpu/cpu[0-7]/cpufreq/cpuinfo_max_freq=4700000
#/sys/class/drm/card1/gt_max_freq_mhz=700
#/sys/class/drm/card1/gt_boost_freq_mhz=1000
#/sys/block/nvme0n1/device/power/control=on
# wifi power management?
/sys/module/snd_hda_intel/parameters/power_save_controller=N
/sys/module/pcie_aspm/parameters/policy=performance
#/sys/bus/pci/devices/*/power/control=auto
#
# tuned configuration
#
[main]
summary = Optimize for low power consumption (custom profile)
[cpu]
priority=10
governor=ondemand|powersave
energy_performance_preference=power
energy_perf_bias=power
max_perf_pct=30
no_turbo=1
[audio]
timeout=1
[sysctl]
vm.laptop_mode=5
vm.dirty_writeback_centisecs = 6000
vm.dirty_expire_centisecs = 6000
#vm.dirty_background_ratio = 10
vm.swappiness = 60
kernel.nmi_watchdog=0
#[scsi_host]
#alpm=min_power
[usb]
autosuspend=1
[sysfs]
#/sys/devices/system/cpu/intel_pstate/no_turbo=1
/sys/devices/system/cpu/intel_pstate/hwp_dynamic_boost=1
/sys/devices/system/cpu/cpu[0-7]/cpufreq/scaling_max_freq=2100000
/sys/devices/system/cpu/cpu[0-7]/cpufreq/cpuinfo_max_freq=2100000
/sys/class/drm/card1/gt_max_freq_mhz=500
/sys/class/drm/card1/gt_boost_freq_mhz=800
/sys/block/nvme0n1/device/power/control=auto
# wifi power management?
/sys/module/snd_hda_intel/parameters/power_save_controller=Y
/sys/module/pcie_aspm/parameters/policy=powersupersave
/sys/bus/pci/devices/*/power/control=auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment