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 display-manager.service
- killall gdm-x-session
- # Unbind VTconsoles
- echo 0 > /sys/class/vtconsole/vtcon0/bind
- echo 0 > /sys/class/vtconsole/vtcon1/bind
- echo 0 > /sys/class/vtconsole/vtcon2/bind
- echo 0 > /sys/class/vtconsole/vtcon3/bind
- # Unbind EFI-Framebuffer
- echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
- sleep 10
- rmmod nvidia_uvm
- rmmod nvidia_drm
- rmmod drm
- rmmod nvidia_modeset
- rmmod nvidia
- #modprobe -r drm_kms_helper
- #modprobe -r nvidia_drm
- #modprobe -r nvidia_modeset
- #modprobe -r nvidia
- #modprobe -r drm
- # Unbind the GPU from display driver
- virsh nodedev-detach pci_0000_06_00_0
- virsh nodedev-detach pci_0000_06_00_1
- # Load VFIO Kernel Module
- modprobe vfio_mdev
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement