16 lines
589 B
Desktop File
16 lines
589 B
Desktop File
[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
|