Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## Load VM variables
- source "/etc/libvirt/hooks/qemu.d/Windows-11/vm-vars.conf"
- ## Set CPU governor to mode indicated by variable
- CPU_COUNT=0
- for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
- do
- echo $VM_ON_GOVERNOR > $file;
- echo "CPU $CPU_COUNT governor: $VM_ON_GOVERNOR";
- let CPU_COUNT+=1
- done
- ## Set system power profile to performance
- powerprofilesctl set $VM_ON_PWRPROFILE
- sleep 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement