void-packages/srcpkgs/nvidia/files/nvidia-drm-outputclass.conf
Juan RP efbefc311e nvidia: provide a working X .conf for igpu+nvidia and only nvidia.
A modified xorg.conf.d snippet that works in all setups that I tested:

 - NVIDIA as primary GPU
 - Intel as primary GPU and NVIDIA PRIME Render offload

It is very important that to make PRIME render offload working
the 'xf86-video-intel` pkg must not be installed. As explained
in the official NVIDIA documentation only the "modesetting" driver
is supported.
2019-12-08 11:56:08 +01:00

18 lines
383 B
Text

Section "ServerLayout"
Identifier "layout"
Option "AllowNVIDIAGPUScreens"
EndSection
Section "OutputClass"
Identifier "intel"
MatchDriver "i915"
Driver "modesetting"
EndSection
Section "OutputClass"
Identifier "nvidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Option "AllowEmptyInitialConfiguration"
ModulePath "/usr/lib/nvidia/xorg"
EndSection