|
|
|
@ -13,8 +13,8 @@ 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 -g egl -j -m 283 -S egl:vsync &
|
|
|
|
|
looking-glass-client -d -g egl -a -K 120 -j -m 69 -S &
|
|
|
|
|
#looking-glass-client -g egl -j -m 283 -S egl:vsync &
|
|
|
|
|
while [ "$command" != "stop" ]; do
|
|
|
|
|
if jobs | grep looking | grep Running; then
|
|
|
|
|
read command
|
|
|
|
@ -39,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
|
|
|
|
|
unbinddev 0000:01:00.0 0000:01:00.1 0000:01:00.2 0000:01:00.3
|
|
|
|
|
sleep 1
|
|
|
|
|
echo "Enabling GPU power management"
|
|
|
|
|
#sudo modprobe nvidia NVreg_DynamicPowerManagement=0x02
|
|
|
|
|
sudo sh -c 'echo "OFF" > /proc/acpi/bbswitch'
|
|
|
|
|
#sudo sh -c 'echo "OFF" > /proc/acpi/bbswitch'
|
|
|
|
|
sleep 2
|
|
|
|
|
#sudo systemctl start bumblebeed
|
|
|
|
|
sudo systemctl stop smb nmb
|
|
|
|
|