nvidia fix
This commit is contained in:
parent
2e27bfe3af
commit
0512865fe9
1 changed files with 13 additions and 6 deletions
|
@ -87,12 +87,19 @@ Locale=$(echo $LANG)
|
|||
echo "initrd /intel-ucode.img" | sudo tee -a /boot/loader/entries/*.conf
|
||||
fi
|
||||
|
||||
# nVidia - Credit Lordify
|
||||
if [[ $nVidia -gt 0 && $cachy -gt 0 ]]; then
|
||||
sudo pacman -S linux-cachyos-nvidia --noconfirm
|
||||
elif [[ $nVidia -gt 0 && $cachy -eq 0 ]]; then
|
||||
sudo pacman -S nvidia-dkms nvidia-utils nvidia-settings --noconfirm
|
||||
fi
|
||||
# nVidia
|
||||
if [[ $nVidia -gt 0 ]]; then
|
||||
sudo pacman -S linux-zen linux-zen-headers --noconfirm # Make sure you have Zen kernel installed
|
||||
sleep 1
|
||||
sudo pacman -S nvidia-dkms nvidia-utils nvidia-settings egl-wayland lib32-nvidia-utils --noconfirm # nVidia-DKMS and some Wayland Packages
|
||||
sleep 1
|
||||
sudo sed -i 's/MODULES=()/MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)/' /etc/mkinitcpio.conf # Add early loading of nVidia kernel mode setting
|
||||
sleep 1
|
||||
echo "options nvidia_drm modeset=1 fbdev=1" | sudo tee /etc/modprobe.d/nvidia.conf > /dev/null # Make sure it is loaded...
|
||||
sleep 1
|
||||
sudo mkinitcpio -P
|
||||
fi
|
||||
|
||||
|
||||
# Dconf option
|
||||
if [[ "$Locale" = "hu_HU.UTF8" ]]; then
|
||||
|
|
Loading…
Reference in a new issue