From fd7ebdf49f4a9da40912320565f2d19139f00fe0 Mon Sep 17 00:00:00 2001
From: joshrandall8478 <joshrandall8478@gmail.com>
Date: Tue, 25 Jun 2024 09:51:18 -0400
Subject: [PATCH] modified readme and scripts

---
 README.md              | 2 ++
 prepare/begin/start.sh | 6 +++---
 release/end/stop.sh    | 4 ++--
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index cc4df57..9ea3f0a 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,8 @@ This guide assumes a few things:
 3. You are running a compatible NVIDIA GPU (any NVIDIA card that supports vGPU/IOMMU)
 4. You have a virtual machine ready and working (Windows or otherwise). This is assuming you have `libvirtd` correctly running and the default network on autostart.
 
+## Small notes (important)
+- The display/consoles will not come back after VM shutdown unless the plymouth boot screen is enabled. This could be due to GPU utilization with EFI framebuffers on boot time, and also could be due to video parameters in grub. 
 
 # Installation
 1. Create any VM in QEMU/KVM Virt Manager
diff --git a/prepare/begin/start.sh b/prepare/begin/start.sh
index f4adc81..844037f 100755
--- a/prepare/begin/start.sh
+++ b/prepare/begin/start.sh
@@ -7,11 +7,11 @@ systemctl stop display-manager
 systemctl --user -M joshr@ stop plasma*
 
 # Unbind VTconsoles: might not be needed
-echo 0 > /sys/class/vtconsole/vtcon0/bind
-echo 0 > /sys/class/vtconsole/vtcon1/bind
+#echo 0 > /sys/class/vtconsole/vtcon0/bind
+#echo 0 > /sys/class/vtconsole/vtcon1/bind
 
 # Unbind EFI Framebuffer
-echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
+echo "efi-framebuffer.0" > /sys/bus/platform/drivers/efi-framebuffer/unbind
 
 # Avoid a Race condition by waiting 2 seconds. This can be calibrated to be shorter or longer
 sleep 5
diff --git a/release/end/stop.sh b/release/end/stop.sh
index a543112..2577fc5 100755
--- a/release/end/stop.sh
+++ b/release/end/stop.sh
@@ -22,8 +22,8 @@ modprobe nvidia_uvm
 modprobe nvidia
 
 # Bind VTconsoles: might not be needed
-echo 1 > /sys/class/vtconsole/vtcon0/bind
-echo 1 > /sys/class/vtconsole/vtcon1/bind
+#echo 1 > /sys/class/vtconsole/vtcon0/bind
+#echo 1 > /sys/class/vtconsole/vtcon1/bind
 
 # Restart Display Manager
 systemctl start display-manager
-- 
GitLab