Nvidia added support for prime-offloading in the driver 435, which is much more stable than unofficial utilities like bumblebee, while still allowing usage of both the Intel and NVIDIA card without restarting XOrg (prime). Additionally, prime-offloading doesn't face the issue @jonathon outlined in this post. The reason I'm bringing this up is that bumblebee just isn't stable enough. I've helped multiple users that faced issues with bumblebee (either not allowing their laptop to boot at all or crashing steam games) which were solved by setting up prime offloading instead.
Currently, the manual setup is as follows:
- Install video-nvidia-435xx using mhwd
- Delete
/etc/X11/mhwd.d/nvidia.conf
and/or any other mhwd generated files in/etc/X11/xorg.conf.d/
and/etc/X11/mhwd.d/
except the keyboard config. - Create a new file
/etc/X11/xorg.conf.d/01-nvidia-offloading.conf
and paste the following:
Section "ServerLayout"
Identifier "layout"
Option "AllowNVIDIAGPUScreens"
Screen 0 "iGPU"
EndSection
Section "Device"
Identifier "iGPU"
Driver "intel"
# BusID "PCI:0:2:0"
Option "TearFree" "true"
Option "AccelMethod" "sna"
Option "DRI" "3"
EndSection
Section "DRI"
Group "video"
Mode 0666
EndSection
Section "Extensions"
Option "Composite" "Enable"
Option "RENDER" "Enable"
EndSection
Section "Screen"
Identifier "iGPU"
Device "iGPU"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
# BusID "PCI:1:0:0"
EndSection
- Consider adding an alias to run programs with the nvidia card:
alias nvr="__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia"
(Setup stolen from NVIDIA 435 driver looks exciting)
Additionally, the manjaro team could add code to run steam using the nvidia card to steam-manjaro.
If nobody from the manjaro team wants to pick this up, I'd be glad to test and create a config for mhwd.