mirror of
https://github.com/KDE/kde-linux.git
synced 2026-07-31 09:16:51 -04:00
Add tuned power profile defaults
Make PPD power profiles go through our own tuned wrappers. Keep the wrappers close to upstream TuneD defaults while adding PCIe ASPM settings per profile, and use a Performance profile more suited for desktops instead of inheriting throughput-performance's server-esque VM and disk tuning, which probably does more harm than good by messing with dirty_bytes and disk readahead - wasting cache.
This commit is contained in:
16
mkosi.extra/etc/tuned/ppd.conf
Normal file
16
mkosi.extra/etc/tuned/ppd.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2026 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
[main]
|
||||
default=balanced
|
||||
battery_detection=true
|
||||
sysfs_acpi_monitor=true
|
||||
|
||||
[profiles]
|
||||
power-saver=kde-linux-power-saver
|
||||
balanced=kde-linux-balanced
|
||||
performance=kde-linux-performance
|
||||
|
||||
[battery]
|
||||
balanced=kde-linux-balanced-battery
|
||||
power-saver=kde-linux-power-saver-battery
|
||||
@@ -0,0 +1,9 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2026 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
[main]
|
||||
summary=KDE Linux balanced profile for battery power
|
||||
include=balanced-battery
|
||||
|
||||
[sysfs]
|
||||
/sys/module/pcie_aspm/parameters/policy=powersave
|
||||
@@ -0,0 +1,9 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2026 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
[main]
|
||||
summary=KDE Linux balanced profile
|
||||
include=balanced
|
||||
|
||||
[sysfs]
|
||||
/sys/module/pcie_aspm/parameters/policy=default
|
||||
@@ -0,0 +1,22 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2026 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
[main]
|
||||
summary=KDE Linux performance profile
|
||||
include=balanced
|
||||
|
||||
[cpu]
|
||||
governor=performance
|
||||
energy_perf_bias=performance
|
||||
energy_performance_preference=performance
|
||||
min_perf_pct=100
|
||||
boost=1
|
||||
|
||||
[acpi]
|
||||
platform_profile=performance
|
||||
|
||||
[scsi_host]
|
||||
alpm=max_performance
|
||||
|
||||
[sysfs]
|
||||
/sys/module/pcie_aspm/parameters/policy=performance
|
||||
@@ -0,0 +1,9 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2026 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
[main]
|
||||
summary=KDE Linux power saver profile for battery power
|
||||
include=kde-linux-power-saver
|
||||
|
||||
[sysfs]
|
||||
/sys/module/pcie_aspm/parameters/policy=powersupersave
|
||||
@@ -0,0 +1,9 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||
# SPDX-FileCopyrightText: 2026 Thomas Duckworth <tduck@filotimoproject.org>
|
||||
|
||||
[main]
|
||||
summary=KDE Linux power saver profile
|
||||
include=powersave
|
||||
|
||||
[sysfs]
|
||||
/sys/module/pcie_aspm/parameters/policy=powersave
|
||||
Reference in New Issue
Block a user