mandatorypeanuts

revert.sh

Aug 18th, 2025
9
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. source "/etc/libvirt/hooks/kvm.conf"
  5.  
  6. modprobe -r vfio_pci
  7. modprobe -r vfio_iommu_type1
  8. modprobe -r vfio
  9.  
  10. virsh nodedev-reattach VIRSH_GPU_VIDEO
  11. virsh nodedev-reattach VIRSH_GPU_AUDIO
  12.  
  13. #rebind VTconsoles
  14. echo 1 > /sys/class/vtconsole/vtcon0/bind
  15. echo 1 > /sys/class/vtconsole/vtcon1/bind
  16.  
  17. echo "efi-framebuffer.0" > /sys/bus/platform/drivers/efi-framebuffer/bind
  18.  
  19. #reload amd modules
  20. modprobe amdgpu
  21. modprobe amdxcp
  22. modprobe snd_hda_intel
  23.  
  24. #Restart display manager
  25. systemctl start display-manager.service
Advertisement
Add Comment
Please, Sign In to add comment