mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
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>
17 lines
600 B
Plaintext
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
|