From d2adada5aa5871274cfacfce37b3931d0a3cb992 Mon Sep 17 00:00:00 2001 From: Ibrahim Ansari Date: Tue, 4 Feb 2025 12:51:04 +0530 Subject: [PATCH] profiles: use `med_power_with_dipm` for SATA ALPM Using `min_power` can lead to data loss, and `med_power_with_dipm` delivers similar power savings without the chance of data loss. [1] `med_power_with_dipm` is the default setting[2] in upstream Linux for SATA Link Power Management, and should provide significant power savings on laptops using SATA drives over `medium_power`. [1] https://hansdegoede.livejournal.com/18412.html [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/ata/Kconfig?id=5433f0e7427ae4f5b128d89ec16ccaafc9fef5ee Signed-off-by: Ibrahim Ansari --- profiles/balanced/tuned.conf | 2 +- profiles/powersave/tuned.conf | 2 +- profiles/server-powersave/tuned.conf | 2 +- profiles/spindown-disk/tuned.conf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/profiles/balanced/tuned.conf b/profiles/balanced/tuned.conf index 0668154..e8873cd 100644 --- a/profiles/balanced/tuned.conf +++ b/profiles/balanced/tuned.conf @@ -30,4 +30,4 @@ panel_power_savings=0 # devices=sda [scsi_host] -alpm=medium_power +alpm=med_power_with_dipm diff --git a/profiles/powersave/tuned.conf b/profiles/powersave/tuned.conf index 2cdea86..fe12766 100644 --- a/profiles/powersave/tuned.conf +++ b/profiles/powersave/tuned.conf @@ -34,7 +34,7 @@ panel_power_savings=3 # devices=eth0 [scsi_host] -alpm=min_power +alpm=med_power_with_dipm [sysctl] vm.laptop_mode=5 diff --git a/profiles/server-powersave/tuned.conf b/profiles/server-powersave/tuned.conf index 5b74f2f..431006c 100644 --- a/profiles/server-powersave/tuned.conf +++ b/profiles/server-powersave/tuned.conf @@ -11,4 +11,4 @@ energy_performance_preference=balance_power [disk] [scsi_host] -alpm=min_power +alpm=med_power_with_dipm diff --git a/profiles/spindown-disk/tuned.conf b/profiles/spindown-disk/tuned.conf index 5252bb7..5763459 100644 --- a/profiles/spindown-disk/tuned.conf +++ b/profiles/spindown-disk/tuned.conf @@ -24,7 +24,7 @@ apm=128 spindown=6 [scsi_host] -alpm=medium_power +alpm=med_power_with_dipm [vm] dirty_ratio=60