remove unsafe powertop options for host 'j5040'

This commit is contained in:
Daniel Sommer 2024-11-05 14:04:35 +01:00
parent d4e38fe9dd
commit 6ee602d0b9

View file

@ -1,36 +1,9 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
# author: Daniel Sommer <daniel.sommer@velvettear.de> # author: Daniel Sommer <daniel.sommer@velvettear.de>
# 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 '0' > '/proc/sys/kernel/nmi_watchdog';
echo 'auto' > '/sys/bus/pci/devices/0000:01:00.0/power/control'; echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
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 'disabled' > '/sys/bus/usb/devices/2-3/power/wakeup'; echo 'disabled' > '/sys/bus/usb/devices/2-3/power/wakeup';
echo 'disabled' > '/sys/bus/usb/devices/2-4/power/wakeup'; echo 'disabled' > '/sys/bus/usb/devices/2-4/power/wakeup';
echo 'auto' > '/sys/bus/usb/devices/1-5/power/control';