selharim

release script

Oct 28th, 2023
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #!/bin/bash
  2. set -x
  3.  
  4. # Re-Bind GPU to Nvidia Driver
  5. virsh nodedev-reattach pci_0000_03_00_0
  6. virsh nodedev-reattach pci_0000_03_00_1
  7.  
  8. # Reload VFIO-PCI kernal driver
  9. modprobe -r vfio_pci || true
  10. modprobe -r vfio_iommu_type1 || true
  11. modprobe -r vfio || true
  12. modprobe amdgpu
  13. modprobe snd_hda_intel
  14.  
  15. # Rebind VT consoles
  16. echo 1 > /sys/class/vtconsole/vtcon0/bind
  17.  
  18. nvidia-xconfig --query-gpu-info > /dev/null 2>&1
  19. echo "efi-framebuffer.0" > /sys/bus/platform/drivers/efi-framebuffer/bind
  20.  
  21. # Restart Display Manager
  22. systemctl start sddm.service
Advertisement
Add Comment
Please, Sign In to add comment