Advertisement
Guest User

Untitled

a guest
Dec 27th, 2024
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #!/bin/bash
  2. # Helpful to read output when debugging
  3.  
  4. exec 19>/home/koko210/Desktop/startlogfile
  5. BASH_XTRACEFD=19
  6.  
  7. set -x
  8.  
  9. # Stop display manager
  10. systemctl stop display-manager.service
  11. killall pipewire
  12. killall pipewire-pulse
  13. ## Uncomment the following line if you use GDM
  14. #killall gdm-x-session
  15.  
  16. # Unbind VTconsoles
  17. echo 0 > /sys/class/vtconsole/vtcon0/bind
  18. echo 0 > /sys/class/vtconsole/vtcon1/bind
  19.  
  20. # Unbind EFI-Framebuffer
  21. #echo efi-framebuffer.0 > /sys/bus/platform/drivers/efi-framebuffer/unbind
  22.  
  23. # Avoid a Race condition by waiting 2 seconds. This can be calibrated to be shorter or longer if required for your system
  24. sleep 2
  25.  
  26. # Unbind the GPU from display driver
  27. #virsh nodedev-detach pci_0000_07_00_0
  28. #virsh nodedev-detach pci_0000_07_00_1
  29.  
  30. # Unload AMD kernel module
  31. modprobe -r admgpu
  32. modprobe -r radeon
  33. modprobe -r drm
  34. modprobe -r drm_kms_helper
  35.  
  36. # Load VFIO Kernel Module
  37. modprobe vfio-pci
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement