Tuesday, October 4
Shadow

Arch Linux Intel + Nvidia Cards

----------------------------------------

Install needed drivers from 
or use this pacman command:

sudo pacman -S --needed nvidia-dkms nvidia-utils lib32-nvidia-utils nvidia-settings vulkan-icd-loader lib32-vulkan-icd-loader

----------------------------------------

create this file:
/etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf

add this content to the file:

Section "OutputClass"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

----------------------------------------

for Gnome do the following otherwise check this link:
https://wiki.archlinux.org/title/NVIDIA_Optimus

/etc/xdg/autostart/optimus.desktop

add this content to the file:

[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
NoDisplay=true
X-GNOME-Autostart-Phase=DisplayServer

----------------------------------------

Leave a Reply