nvidia fix

This commit is contained in:
Chris Titus 2021-10-21 23:16:42 -05:00
parent 0136a883f0
commit c6220699c7
1 changed files with 1 additions and 14 deletions

View File

@ -271,20 +271,7 @@ esac
# Graphics Drivers find and install
if lspci | grep -E "NVIDIA|GeForce"; then
sudo cat <<EOF > /etc/pacman.d/hooks/nvidia.hook
[Trigger]
Operation=Install
Operation=Upgrade
Operation=Remove
Type=Package
Target=nvidia
[Action]
Depends=mkinitcpio
When=PostTransaction
Exec=/usr/bin/mkinitcpio -P
EOF
pacman -S nvidia-dkms dkms --noconfirm --needed
pacman -S nvidia --noconfirm --needed
elif lspci | grep -E "Radeon"; then
pacman -S xf86-video-amdgpu --noconfirm --needed
elif lspci | grep -E "Integrated Graphics Controller"; then