Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nano /usr/local/bin/cpumode
- #!/bin/bash
- /usr/bin/cpufreq-set -c 0 -g performance
- /usr/bin/cpufreq-set -c 1 -g performance
- /usr/bin/cpufreq-set -c 2 -g performance
- /usr/bin/cpufreq-set -c 3 -g performance
- exit 0
- sudo chmod +x /usr/local/bin/cpumode
- nano /etc/systemd/system/cpuperformance.service
- [Unit]
- Description=CPUmode
- After=wpa_supplicant.service
- After=swap.target
- [Service]
- Type=simple
- ExecStart=/usr/local/bin/cpumode
- [Install]
- WantedBy=multi-user.target
- systemctl daemon-reload
- systemctl enable cpuperformance.service
- systemctl disable cpufrequtils
- systemctl start cpuperformance.service
- Выхлоп после перезагрузки:
- 324 systemctl --type=service
- 326 systemctl daemon-reload
- 327 systemctl --type=service
- 328 systemctl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement