|
|
@ -13,8 +13,8 @@ echo "Starting Scream"
|
|
|
|
scream -o pulse -i virbr0 &
|
|
|
|
scream -o pulse -i virbr0 &
|
|
|
|
echo "Starting Looking Glass"
|
|
|
|
echo "Starting Looking Glass"
|
|
|
|
#looking-glass-client -s no -d yes -g egl -a -M no egl:vsync yes &
|
|
|
|
#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 -d -g egl -a -K 120 -j -m 69 -S &
|
|
|
|
looking-glass-client -g egl -j -m 283 -S egl:vsync &
|
|
|
|
#looking-glass-client -g egl -j -m 283 -S egl:vsync &
|
|
|
|
while [ "$command" != "stop" ]; do
|
|
|
|
while [ "$command" != "stop" ]; do
|
|
|
|
if jobs | grep looking | grep Running; then
|
|
|
|
if jobs | grep looking | grep Running; then
|
|
|
|
read command
|
|
|
|
read command
|
|
|
@ -39,11 +39,11 @@ echo "VM is off"
|
|
|
|
echo "Freeing up memory"
|
|
|
|
echo "Freeing up memory"
|
|
|
|
echo 0 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
|
|
|
|
echo 0 | sudo tee /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
|
|
|
|
echo "Unbinding from vfio-pci"
|
|
|
|
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
|
|
|
|
sleep 1
|
|
|
|
echo "Enabling GPU power management"
|
|
|
|
echo "Enabling GPU power management"
|
|
|
|
#sudo modprobe nvidia NVreg_DynamicPowerManagement=0x02
|
|
|
|
#sudo modprobe nvidia NVreg_DynamicPowerManagement=0x02
|
|
|
|
sudo sh -c 'echo "OFF" > /proc/acpi/bbswitch'
|
|
|
|
#sudo sh -c 'echo "OFF" > /proc/acpi/bbswitch'
|
|
|
|
sleep 2
|
|
|
|
sleep 2
|
|
|
|
#sudo systemctl start bumblebeed
|
|
|
|
#sudo systemctl start bumblebeed
|
|
|
|
sudo systemctl stop smb nmb
|
|
|
|
sudo systemctl stop smb nmb
|
|
|
|