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"
- ## Reset CPU governor to mode indicated by variable
- CPU_COUNT=0
- for file in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
- do
- echo $VM_OFF_GOVERNOR > $file;
- echo "CPU $CPU_COUNT governor: $VM_OFF_GOVERNOR";
- let CPU_COUNT+=1
- done
- ## Set system power profile back to powersave
- powerprofilesctl set $VM_OFF_PWRPROFILE
- sleep 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement