From ac74db5a8fa69e5d3047b35f70c65b27dc07cfcb Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 21 Jan 2022 16:47:39 -0500 Subject: update shell dotfiles --- .../qemu.d/win11/prepare/begin/start.sh | 32 ---------------------- .../qemu.d/win11/release/end/revert.sh | 28 ------------------- 2 files changed, 60 deletions(-) delete mode 100755 .local/share/libvirt-hooks/qemu.d/win11/prepare/begin/start.sh delete mode 100755 .local/share/libvirt-hooks/qemu.d/win11/release/end/revert.sh (limited to '.local/share/libvirt-hooks/qemu.d') 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 diff --git a/.local/share/libvirt-hooks/qemu.d/win11/release/end/revert.sh b/.local/share/libvirt-hooks/qemu.d/win11/release/end/revert.sh deleted file mode 100755 index 502ed39..0000000 --- a/.local/share/libvirt-hooks/qemu.d/win11/release/end/revert.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -# debug -set -x - -# unload vfio modules -modprobe -r vfio_pci -modprobe -r vfio_iommu_type1 -modprobe -r vfio - -# rebind vt console -echo 1 > /sys/class/vtconsole/vtcon0/bind -echo 1 > /sys/class/vtconsole/vtcon1/bind - -# rebind gpu -virsh nodedev-reattach pci_0000_06_00_1 -virsh nodedev-reattach pci_0000_06_00_0 - -# reload gpu modules -modprobe amdgpu -modprobe gpu_sched -modprobe ttm -modprobe drm_kms_helper -modprobe drm_ttm_helper -modprobe i2c_algo_bit -modprobe drm - -# restart sddm -systemctl start sddm.service -- cgit v1.2.3