initial version (alpha)
This commit is contained in:
commit
b5de726919
58 changed files with 1237 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
[Unit]
|
||||
Description=Disable Power Management Features
|
||||
After=sysinit.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
# Disable PCIe ASPM
|
||||
ExecStart=/bin/sh -c 'echo performance > /sys/module/pcie_aspm/parameters/policy || true'
|
||||
# Disable USB autosuspend
|
||||
ExecStart=/bin/sh -c 'for i in /sys/bus/usb/devices/*/power/autosuspend; do echo -1 > $i 2>/dev/null || true; done'
|
||||
# Disable SATA link power management
|
||||
ExecStart=/bin/sh -c 'for i in /sys/class/scsi_host/host*/link_power_management_policy; do echo max_performance > $i 2>/dev/null || true; done'
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue