From 0512865fe9eead31a3f32887ee0d41e5ac7663e8 Mon Sep 17 00:00:00 2001 From: RP1 Date: Sun, 5 Jan 2025 18:57:55 +0100 Subject: [PATCH] nvidia fix --- raveos-gnome.sh | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/raveos-gnome.sh b/raveos-gnome.sh index 4072f25..c589fe4 100644 --- a/raveos-gnome.sh +++ b/raveos-gnome.sh @@ -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