Advertisement
Guest User

Untitled

a guest
Dec 27th, 2024
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. exec 19>/home/koko210/Desktop/stoplogfile
  4. BASH_XTRACEFD=19
  5.  
  6. set -x
  7.  
  8. # Attach GPU devices to host
  9. # Use your GPU and HDMI Audio PCI host device
  10. #virsh nodedev-reattach pci_0000_07_00_0
  11. #virsh nodedev-reattach pci_0000_07_00_1
  12.  
  13. # Unload vfio module
  14. modprobe -r vfio-pci
  15.  
  16. # Load AMD kernel module
  17. modprobe amdgpu
  18.  
  19. # Rebind framebuffer to host
  20. #echo "efi-framebuffer.0" > /sys/bus/platform/drivers/efi-framebuffer/bind
  21.  
  22. # Load NVIDIA kernel modules
  23. #modprobe nvidia_drm
  24. #modprobe nvidia_modeset
  25. #modprobe nvidia_uvm
  26. #modprobe nvidia
  27.  
  28. # Bind VTconsoles: might not be needed
  29. echo 1 > /sys/class/vtconsole/vtcon0/bind
  30. echo 1 > /sys/class/vtconsole/vtcon1/bind
  31.  
  32. # Restart Display Manager
  33. systemctl start display-manager
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement