nvidia fix
This commit is contained in:
parent
0136a883f0
commit
c6220699c7
15
1-setup.sh
15
1-setup.sh
|
|
@ -271,20 +271,7 @@ esac
|
||||||
|
|
||||||
# Graphics Drivers find and install
|
# Graphics Drivers find and install
|
||||||
if lspci | grep -E "NVIDIA|GeForce"; then
|
if lspci | grep -E "NVIDIA|GeForce"; then
|
||||||
sudo cat <<EOF > /etc/pacman.d/hooks/nvidia.hook
|
pacman -S nvidia --noconfirm --needed
|
||||||
[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
|
|
||||||
elif lspci | grep -E "Radeon"; then
|
elif lspci | grep -E "Radeon"; then
|
||||||
pacman -S xf86-video-amdgpu --noconfirm --needed
|
pacman -S xf86-video-amdgpu --noconfirm --needed
|
||||||
elif lspci | grep -E "Integrated Graphics Controller"; then
|
elif lspci | grep -E "Integrated Graphics Controller"; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue