Advertisement
Guest User

Untitled

a guest
Feb 12th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.79 KB | None | 0 0
  1. nano  /usr/local/bin/cpumode
  2.  
  3. #!/bin/bash
  4. /usr/bin/cpufreq-set -c 0 -g performance
  5. /usr/bin/cpufreq-set -c 1 -g performance
  6. /usr/bin/cpufreq-set -c 2 -g performance
  7. /usr/bin/cpufreq-set -c 3 -g performance
  8. exit 0
  9.  
  10. sudo chmod +x  /usr/local/bin/cpumode
  11. nano /etc/systemd/system/cpuperformance.service
  12.  
  13. [Unit]
  14. Description=CPUmode
  15. After=wpa_supplicant.service
  16. After=swap.target
  17.  
  18. [Service]
  19. Type=simple
  20. ExecStart=/usr/local/bin/cpumode
  21.  
  22. [Install]
  23. WantedBy=multi-user.target
  24.  
  25. systemctl daemon-reload
  26. systemctl enable cpuperformance.service
  27. systemctl disable cpufrequtils
  28. systemctl start cpuperformance.service
  29.  
  30. Выхлоп после перезагрузки:
  31.   324  systemctl --type=service
  32.   326  systemctl daemon-reload
  33.   327  systemctl --type=service
  34.   328  systemctl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement