as_root-install_amd_graphics_card.sh 1.1 KB

123456789101112131415161718192021
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. apt-get -y --fix-missing install amd64-microcode
  7. #apt-get -y --fix-missing install amd64-microcode/chimaera-backports
  8. #apt-get -y --fix-missing install linux-image-amd64/chimaera-backports firmware-linux/chimaera-backports firmware-linux-nonfree/chimaera-backports firmware-amd-graphics/chimaera-backports libgl1-mesa-dri/chimaera-backports libglx-mesa0/chimaera-backports mesa-vulkan-drivers/chimaera-backports xserver-xorg-video-all/chimaera-backports
  9. #apt-get -y --fix-missing install -t chimaera-backports linux-image-amd64 firmware-linux firmware-linux-nonfree firmware-amd-graphics libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all
  10. apt-get -y --fix-missing install linux-image-amd64 firmware-linux firmware-linux-nonfree firmware-amd-graphics libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all
  11. {
  12. echo 'Section "Device"'
  13. echo ' Identifier "AMD Graphics"'
  14. echo ' Driver "amdgpu"'
  15. echo ' Option "TearFree" "true"'
  16. echo 'EndSection'
  17. }>>/etc/X11/xorg.conf.d/20-amdgpu.conf