Guest User

/release/end/revert.sh

a guest
Jul 30th, 2025
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.50 KB | Software | 0 0
  1. #!/bin/bash
  2. set -x
  3.  
  4. # Re-Bind GPU to Nvidia Driver
  5. virsh nodedev-reattach pci_0000_1c_00_1
  6. virsh nodedev-reattach pci_0000_1c_00_0
  7.  
  8. # Reload nvidia modules
  9. modprobe nvidia
  10. modprobe nvidia_modeset
  11. modprobe nvidia_drm
  12. modprobe nvidia_uvm
  13.  
  14. # Rebind VT consoles
  15. echo 1 > /sys/class/vtconsole/vtcon0/bind
  16.  
  17. nvidia-xconfig --query-gpu-info > /dev/null 2>&1
  18. echo "efi-framebuffer.0" > /sys/bus/platform/drivers/efi-framebuffer/bind
  19.  
  20. # Restart Display Manager
  21. systemctl start display-manager.service
  22.  
Advertisement
Add Comment
Please, Sign In to add comment