We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b921bf8 commit 722e32cCopy full SHA for 722e32c
appvm-scripts/usr/lib/qubes/qubes-gui-agent-pre.sh
@@ -31,7 +31,12 @@ echo "GUI_OPTS=$gui_opts" >> /var/run/qubes-service-environment
31
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
+driver=/sys/bus/pci/drivers/bochs-drm
+if [ -e "$driver" ]; then
+ for dev in "$driver"/0000:*; do
37
+ [ -e "$dev" ] || continue
38
+ if [ "$(cat "$dev/vendor"):$(cat "$dev/device")" = "0x1234:0x1111" ]; then
39
+ echo "${dev##*/}" > "$driver/unbind"
40
+ fi
41
+ done
42
fi
0 commit comments