nvidia fix

This commit is contained in:
RP1 2025-01-05 18:57:55 +01:00
parent 2e27bfe3af
commit 0512865fe9

View file

@ -87,12 +87,19 @@ Locale=$(echo $LANG)
echo "initrd /intel-ucode.img" | sudo tee -a /boot/loader/entries/*.conf echo "initrd /intel-ucode.img" | sudo tee -a /boot/loader/entries/*.conf
fi fi
# nVidia - Credit Lordify # nVidia
if [[ $nVidia -gt 0 && $cachy -gt 0 ]]; then if [[ $nVidia -gt 0 ]]; then
sudo pacman -S linux-cachyos-nvidia --noconfirm sudo pacman -S linux-zen linux-zen-headers --noconfirm # Make sure you have Zen kernel installed
elif [[ $nVidia -gt 0 && $cachy -eq 0 ]]; then sleep 1
sudo pacman -S nvidia-dkms nvidia-utils nvidia-settings --noconfirm sudo pacman -S nvidia-dkms nvidia-utils nvidia-settings egl-wayland lib32-nvidia-utils --noconfirm # nVidia-DKMS and some Wayland Packages
fi 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 # Dconf option
if [[ "$Locale" = "hu_HU.UTF8" ]]; then if [[ "$Locale" = "hu_HU.UTF8" ]]; then