summaryrefslogtreecommitdiff
path: root/.local/share/libvirt-hooks/qemu.d/win11/prepare/begin/start.sh
diff options
context:
space:
mode:
authorseth <[email protected]>2022-01-21 16:47:39 -0500
committerseth <[email protected]>2022-08-04 04:40:49 -0400
commitac74db5a8fa69e5d3047b35f70c65b27dc07cfcb (patch)
tree5b6fcdb6cbf7c8c81a8b0a745e013094bdd82793 /.local/share/libvirt-hooks/qemu.d/win11/prepare/begin/start.sh
parente5605617b57264069374ea0753c19cd69714df6d (diff)
update shell dotfiles
Diffstat (limited to '.local/share/libvirt-hooks/qemu.d/win11/prepare/begin/start.sh')
-rwxr-xr-x.local/share/libvirt-hooks/qemu.d/win11/prepare/begin/start.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/.local/share/libvirt-hooks/qemu.d/win11/prepare/begin/start.sh b/.local/share/libvirt-hooks/qemu.d/win11/prepare/begin/start.sh
deleted file mode 100755
index 10dc07a..0000000
--- a/.local/share/libvirt-hooks/qemu.d/win11/prepare/begin/start.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/bash
-
-# for debugging
-set -x
-
-# stop sddm
-systemctl stop sddm.service
-
-# unbind vt console
-echo 0 > /sys/class/vtconsole/vtcon0/bind
-echo 0 > /sys/class/vtconsole/vtcon1/bind
-
-# avoid race condition
-sleep 10
-
-# unload gpu modules
-modprobe -r amdgpu
-modprobe -r gpu_sched
-modprobe -r ttm
-modprobe -r drm_kms_helper
-modprobe -r drm_ttm_helper
-modprobe -r i2c_algo_bit
-modprobe -r drm
-
-# unbind gpu
-virsh nodedev-detach pci_0000_06_00_0
-virsh nodedev-detach pci_0000_06_00_1
-
-# load vfio modules
-modprobe vfio
-modprobe vfio-pci
-modprobe vfio_iommu_type1