update various scripts and stuff

This commit is contained in:
2020-08-30 19:16:33 -05:00
parent 1b152e7ad4
commit dc004a2176
11 changed files with 90 additions and 94 deletions

9
vm
View File

@ -13,12 +13,13 @@ echo "Starting Scream"
scream -o pulse -i virbr0 &
echo "Starting Looking Glass"
#looking-glass-client -s no -d yes -g egl -a -M no egl:vsync yes &
looking-glass-client -s -d -g egl -a -M -K 120 &
#looking-glass-client -s -d -g egl -a -M -K 120 &
looking-glass-client -d -g egl -a -K 120 -j -m 69 -S &
while [ "$command" != "stop" ]; do
if jobs | grep looking | grep Running; then
read command
else
looking-glass-client -s -d -g egl -a -M -K 120 &
looking-glass-client -d -g egl -a -K 120 -j -m 69 -S &
fi
done
sudo whoami
@ -38,11 +39,11 @@ echo "VM is off"
echo "Freeing up memory"
echo 0 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
echo "Unbinding from vfio-pci"
unbinddev 0000:01:00.0 0000:01:00.1 0000:01:00.2 0000:01:00.3
unbinddev 0000:01:00.0
sleep 1
echo "Enabling GPU power management"
#sudo modprobe nvidia NVreg_DynamicPowerManagement=0x02
sudo sh -c 'echo "\\_SB.PCI0.GPP0.PG00._OFF" > /proc/acpi/call'
sudo sh -c 'echo "OFF" > /proc/acpi/bbswitch'
sleep 2
#sudo systemctl start bumblebeed
sudo systemctl stop smb nmb