Skip to content

Commit 94e1ef1

Browse files
Unbind Xen VGA adapter from bochs-drm on boot
For qubes that are using an in-qube kernel, the nomodeset argument is not necessarily passed to the kernel command line, so we should unbind Xen's VGA adapter from bochs-drm, if bound, to prevent performance issues.
1 parent 2733f0c commit 94e1ef1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

appvm-scripts/usr/lib/qubes/qubes-gui-agent-pre.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,9 @@ echo "GUI_OPTS=$gui_opts" >> /var/run/qubes-service-environment
2929

3030
# 2**30
3131
echo 1073741824 > /sys/module/xen_gntalloc/parameters/limit
32+
33+
# unbind Xen VGA adapter from bochs
34+
vga_adapter=$(lspci -nD | grep "1234:1111" | awk '{print $1}')
35+
if [ -n "$vga_adapter" ] && [ -e /sys/bus/pci/drivers/bochs-drm/unbind ]; then
36+
echo "$vga_adapter" > /sys/bus/pci/drivers/bochs-drm/unbind
37+
fi

0 commit comments

Comments
 (0)