Gabeben

revert.sh

Jan 6th, 2023
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. # Debug
  2. set -x
  3.  
  4. # Rebind GPU
  5. virsh nodedev-reattach pci_0000_10_00_0
  6. virsh nodedev-reattach pci_0000_10_00_1
  7.  
  8. # rebind VTconsoles
  9. echo 1 > /sys/class/vtconsole/vtcon0/bind
  10.  
  11. # Read nvidia x config
  12. nvidia-xconfig --query-gpu-info > /dev/null 2>&1
  13.  
  14. #Bind EFI-framebuffer
  15. echo "efi-framebuffer.0" > /sys/bus/platform/drivers/efi-framebuffer/bind
  16.  
  17. #load nvidia
  18. modprobe nvidia
  19. modprobe nvidia_modeset
  20. modprobe nvidia_drm
  21.  
  22. # Restart Display Service
  23. systemctl start gdm3.service
Advertisement
Add Comment
Please, Sign In to add comment