cat << EOF | sudo tee /etc/systemd/system/powertop.service
[Unit]
Description=PowerTOP auto tune
[Service]
Type=idle
Environment="TERM=dumb"
ExecStart=/usr/sbin/powertop --auto-tune
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Powertop tunings | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/bin/powertop --auto-tune | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This prevents the freeze with the message 'e1000e eno1: Detected Hardware Unit Hang' | |
| # >> Skip this file for unRAID, since it does not use systemd << | |
| # Put this file in /etc/systemd/system/disable-nic-offload-e1000e.service | |
| # Then manually run it, 'systemctl start disable-nic-offload-e1000e' | |
| # Check the output with 'systemctl status disable-nic-offload-e1000e' | |
| # Then enable it with 'systemctl enable disable-nic-offload-e1000e' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This enabled the power settings present in the script | |
| # >> Skip this file for unRAID, since it does not use systemd << | |
| # Put this file in /etc/systemd/system/power.service | |
| # Then manually run it, 'systemctl start power' | |
| # Check the output with 'systemctl status power' | |
| # Then enable it with 'systemctl enable power' | |
| [Unit] |
OlderNewer