remote display fixes

This commit is contained in:
2025-08-31 21:56:00 -04:00
parent 40283c2577
commit 0fdfac9d11
2 changed files with 108 additions and 5 deletions

View File

@@ -324,8 +324,22 @@ public class QemuCommandBuilder
_arguments.Add(displayType);
_arguments.Add("-vga");
_arguments.Add(display.Vga);
// For X11 forwarding compatibility, use std VGA instead of virtio
// This avoids GLX/OpenGL issues when forwarding over X11
if (displayType == "gtk" || displayType == "x11")
{
_arguments.Add("-vga");
_arguments.Add("std"); // Use standard VGA for better X11 compatibility
// Add software rendering options to avoid GLX issues
_arguments.Add("-device");
_arguments.Add("virtio-gpu-pci,edid=off"); // Use virtio-gpu without EDID
}
else
{
_arguments.Add("-vga");
_arguments.Add(display.Vga);
}
if (display.EnableSpice)
{