Files
xserver/config/10-nvidia.conf.in
Oleh Nykyforchyn 9f25f5d3f1 xfree86: make search paths configurable for certain modules
It is patch 1/2 of a series that provides a convenient way to specify
module search paths on a per-driver basis.

This patch allows to set ModulePath for certain modules, in particular,
GPU drivers.

Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
2025-11-20 19:29:51 +01:00

17 lines
600 B
Plaintext

# This xorg.conf.d configuration snippet configures the X server to
# automatically load the nvidia X driver and nvidia GLX libraries
# when it detects a device driven by nvidia-drm.ko kernel module.
# Please note that this works on Linux kernels version 6.12 or higher
# with CONFIG_DRM enabled, and only if the nvidia-drm.ko kernel module
# is loaded before the X server is started.
Section "OutputClass"
Identifier "NVidia"
MatchDriver "nvidia-drm"
Driver "nvidia"
Module "glx"
Module "glxserver_nvidia"
Option "AllowEmptyInitialConfiguration"
ModulePath "@libdir@/nvidia/xorg"
EndSection