From 6ee602d0b9dac7a761b5afdb00d31ee9eba556d5 Mon Sep 17 00:00:00 2001 From: velvettear Date: Tue, 5 Nov 2024 14:04:35 +0100 Subject: [PATCH] remove unsafe powertop options for host 'j5040' --- scripts/powertop/j5040.sh | 31 ++----------------------------- 1 file changed, 2 insertions(+), 29 deletions(-) diff --git a/scripts/powertop/j5040.sh b/scripts/powertop/j5040.sh index 7469536..d214197 100755 --- a/scripts/powertop/j5040.sh +++ b/scripts/powertop/j5040.sh @@ -1,36 +1,9 @@ #!/usr/bin/env zsh # author: Daniel Sommer -# license: MIt +# license: MIT -echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'; -echo 'med_power_with_dipm' > '/sys/class/scsi_host/host5/link_power_management_policy'; -echo 'med_power_with_dipm' > '/sys/class/scsi_host/host3/link_power_management_policy'; -echo 'med_power_with_dipm' > '/sys/class/scsi_host/host1/link_power_management_policy'; -echo 'med_power_with_dipm' > '/sys/class/scsi_host/host4/link_power_management_policy'; -echo 'med_power_with_dipm' > '/sys/class/scsi_host/host2/link_power_management_policy'; -echo 'med_power_with_dipm' > '/sys/class/scsi_host/host0/link_power_management_policy'; echo '0' > '/proc/sys/kernel/nmi_watchdog'; -echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:00:1f.0/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:00:00.1/power/control'; -echo 'auto' > '/sys/block/sde/device/power/control'; -echo 'auto' > '/sys/block/sdf/device/power/control'; -echo 'auto' > '/sys/block/sdc/device/power/control'; -echo 'auto' > '/sys/block/sdd/device/power/control'; -echo 'auto' > '/sys/block/sda/device/power/control'; -echo 'auto' > '/sys/block/sdb/device/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:03:00.0/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/ata3/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:04:00.0/ata6/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:00:00.0/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:00:12.0/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:00:12.0/ata1/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:00:12.0/ata2/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:04:00.0/ata5/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:00:15.0/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:04:00.0/power/control'; -echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/ata4/power/control'; +echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs'; echo 'disabled' > '/sys/bus/usb/devices/2-3/power/wakeup'; echo 'disabled' > '/sys/bus/usb/devices/2-4/power/wakeup'; -echo 'auto' > '/sys/bus/usb/devices/1-5/power/control';