Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Helpful to read output when debugging
- set -x
- # Stop display manager
- systemctl stop sddm.service
- # Unbind VTconsoles
- echo 0 > /sys/class/vtconsole/vtcon0/bind
- echo 0 > /sys/class/vtconsole/vtcon1/bind
- # Unbind EFI-Framebuffer
- echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
- # Avoid a Race condition by waiting 2 seconds. This can be calibrated to be shorter or longer if required for your system
- sleep 8
- # Unbind the GPU and audio from display driver
- virsh nodedev-detach pci_0000_03_00_0
- virsh nodedev-detach pci_0000_03_00_1
- # Load VFIO Kernel Module
- modprobe vfio-pci
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement