Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
wiki:system_configuration [2021/03/01 21:30] – [sysctl.conf] autostatic | wiki:system_configuration [2021/03/05 12:51] – [Disabling resource-intensive daemons, services and processes] autostatic | ||
---|---|---|---|
Line 252: | Line 252: | ||
You could also add a line to your ''/ | You could also add a line to your ''/ | ||
- | echo -n performance | + | echo -n performance |
+ | |||
+ | Another option is to create a Systemd Unit that does this for you. Example of an audio-setup Unit file: | ||
+ | [Unit] | ||
+ | Description=Prepare system for audio | ||
+ | |||
+ | [Service] | ||
+ | Type=oneshot | ||
+ | ExecStart=/ | ||
+ | RemainAfterExit=yes | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | |||
+ | This will start ''/ | ||
+ | echo 'echo -n performance | tee / | ||
+ | sudo chmod +x / | ||
+ | sudo systemctl enable audio-setup | ||
+ | sudo systemctl start audio-setup | ||
+ | |||
+ | The '' | ||
== Ubuntu == | == Ubuntu == | ||
On Ubuntu systems the command in your ''/ | On Ubuntu systems the command in your ''/ | ||
- | sudo update-rc.d | + | sudo systemctl mask ondemand.service |
- | + | ||
- | Another option would be to modify the '' | + | |
- | sudo sed -i ' | + | |
- | sudo update-rc.d ondemand disable | + | |
- | sudo cp / | + | |
- | sudo update-rc.d performance defaults | + | |
== Debian == | == Debian == |