start.sh (619B)
1 #!/bin/bash 2 set -x 3 4 source "/etc/libvirt/hooks/kvm.conf" 5 6 #systemctl stop sddm.service 7 killall Hyprland 8 9 echo 0 > /sys/class/vtconsole/vtcon0/bind 10 echo 0 > /sys/class/vtconsole/vtcon1/bind 11 echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind 12 sleep 10 13 modprobe -r nvidia_drm 14 modprobe -r nvidia_modeset 15 modprobe -r drm_kms_helper 16 modprobe -r nvidia 17 modprobe -r i2c_nvidia_gpu 18 modprobe -r drm 19 modprobe -r nvidia_uvm 20 21 virsh nodedev-detach $VIRSH_GPU_VIDEO 22 virsh nodedev-detach $VIRSH_GPU_AUDIO 23 24 modprobe vfio 25 modprobe vfio_pci 26 modprobe vfio_iommu_type1 27 28 #./usr/share/UnbindUSB/vfio-usb.sh 0000:00:14.0