Advertisement
Guest User

stop.sh

a guest
Jun 24th, 2021
2,348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #!/bin/bash
  2. # Helpful to read output when debugging
  3. set -x
  4.  
  5. # Load the config file with our environmental variables
  6. source "/etc/libvirt/hooks/kvm.conf"
  7.  
  8. # Unload all the vfio modules
  9. modprobe -r vfio_pci
  10. modprobe -r vfio_iommu_type1
  11. modprobe -r vfio
  12.  
  13. # Reattach the gpu
  14. virsh nodedev-reattach $VIRSH_GPU_VIDEO
  15. virsh nodedev-reattach $VIRSH_GPU_AUDIO
  16.  
  17. # Load all Radeon drivers
  18. modprobe amdgpu
  19. modprobe gpu_sched
  20. modprobe ttm
  21. modprobe drm_kms_helper
  22. modprobe i2c_algo_bit
  23. modprobe drm
  24. modprobe snd_hda_intel
  25.  
  26. #Start you display manager
  27. systemctl start display-manager.service
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement