mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-23 06:43:07 +00:00
(release) xserver: config: split 10-nvidia.conf file
Some checks failed
Build X servers / xserver-build-ubuntu (push) Has been cancelled
Build X servers / drivers-build-ubuntu (push) Has been cancelled
Build X servers / xserver-build-mingw32-ubuntu (push) Has been cancelled
Build X servers / xserver-build-macos (push) Has been cancelled
Build X servers / xserver-build-freebsd (push) Has been cancelled
Build X servers / xserver-build-dragonflybsd (push) Has been cancelled
Build X servers / xserver-build-netbsd (push) Has been cancelled
Build X servers / xserver-build-cygwin (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
Some checks failed
Build X servers / xserver-build-ubuntu (push) Has been cancelled
Build X servers / drivers-build-ubuntu (push) Has been cancelled
Build X servers / xserver-build-mingw32-ubuntu (push) Has been cancelled
Build X servers / xserver-build-macos (push) Has been cancelled
Build X servers / xserver-build-freebsd (push) Has been cancelled
Build X servers / xserver-build-dragonflybsd (push) Has been cancelled
Build X servers / xserver-build-netbsd (push) Has been cancelled
Build X servers / xserver-build-cygwin (push) Has been cancelled
Build X servers / Release pushed tag (push) Has been cancelled
XLibre 10-nvidia.conf is extended w.r.t. XOrg version and can be overwritten by NVidia installers or packages, hence it is safer to split it into 10-nvidia.conf (a common part) and 10-nvidia-modules.conf (an extra part). This patch also provides /etc/X11/xorg.conf.d/10-nvidia.conf.debian and /etc/X11/xorg.conf.d/10-nvidia-modules.conf.debian files that, when .debian suffix is removed, shadow the respective files in /usr/share/X11/xorg.conf.d and set Debian specific search directories for drivers and modules. Signed-off-by: Oleh Nykyforchyn <oleh.nyk@gmail.com>
This commit is contained in:
parent
83fa3ba427
commit
e7af4b04bc
5 changed files with 74 additions and 10 deletions
16
config/10-nvidia-modules.conf.debian.in
Normal file
16
config/10-nvidia-modules.conf.debian.in
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# This xorg.conf.d configuration snippet is a Debian version of a supplement to
|
||||
# /etc/X11/xorg.conf.d/10-nvidia.conf that sets module paths for nvidia GLX libraries
|
||||
# when it detects a device driven by the nvidia-drm kernel driver.
|
||||
# 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
|
||||
# for the versions 390 and later of the nvidia driver or the nvidia.ko
|
||||
# kernel module for the version 340 is loaded before the X server is started.
|
||||
|
||||
Section "OutputClass"
|
||||
Identifier "NVidia-modules"
|
||||
MatchDriver "nvidia-drm"
|
||||
Module "glx"
|
||||
Module "glxserver_nvidia"
|
||||
# Debian specific directories
|
||||
ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/nvidia/nvidia"
|
||||
EndSection
|
||||
15
config/10-nvidia-modules.conf.in
Normal file
15
config/10-nvidia-modules.conf.in
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# This xorg.conf.d configuration snippet is a supplement to
|
||||
# 10-nvidia.conf that sets module paths for nvidia GLX libraries
|
||||
# when it detects a device driven by the nvidia-drm kernel driver.
|
||||
# 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
|
||||
# for the versions 390 and later of the nvidia driver or the nvidia.ko
|
||||
# kernel module for the version 340 is loaded before the X server is started.
|
||||
|
||||
Section "OutputClass"
|
||||
Identifier "NVidia-modules"
|
||||
MatchDriver "nvidia-drm"
|
||||
Module "glx"
|
||||
Module "glxserver_nvidia"
|
||||
ModulePath "@libdir@/nvidia/xorg"
|
||||
EndSection
|
||||
16
config/10-nvidia.conf.debian.in
Normal file
16
config/10-nvidia.conf.debian.in
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# This xorg.conf.d configuration snippet for Debian configures the X server to
|
||||
# automatically load the nvidia X driver when it detects a device
|
||||
# driven by the nvidia-drm kernel driver.
|
||||
# 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
|
||||
# for the versions 390 and later of the nvidia driver or the nvidia.ko
|
||||
# kernel module for the version 340 is loaded before the X server is started.
|
||||
|
||||
Section "OutputClass"
|
||||
Identifier "NVidia"
|
||||
MatchDriver "nvidia-drm"
|
||||
Driver "nvidia"
|
||||
Option "AllowEmptyInitialConfiguration"
|
||||
# Debian specific directories
|
||||
ModulePath "/usr/lib/x86_64-linux-gnu/nvidia/xorg,/usr/lib/nvidia/nvidia"
|
||||
EndSection
|
||||
|
|
@ -1,16 +1,15 @@
|
|||
# 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.
|
||||
# automatically load the nvidia X driver when it detects a device
|
||||
# driven by the nvidia-drm kernel driver.
|
||||
# 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.
|
||||
# for the versions 390 and later of the nvidia driver or the nvidia.ko
|
||||
# kernel module for the version 340 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"
|
||||
Identifier "NVidia"
|
||||
MatchDriver "nvidia-drm"
|
||||
Driver "nvidia"
|
||||
Option "AllowEmptyInitialConfiguration"
|
||||
ModulePath "@libdir@/nvidia/xorg"
|
||||
EndSection
|
||||
|
|
|
|||
|
|
@ -34,6 +34,24 @@ if build_xorg
|
|||
configuration: nvidia_conf,
|
||||
install_dir: join_paths(get_option('datadir'), 'X11/xorg.conf.d'),
|
||||
)
|
||||
configure_file(
|
||||
input: '10-nvidia-modules.conf.in',
|
||||
output: '10-nvidia-modules.conf',
|
||||
configuration: nvidia_conf,
|
||||
install_dir: join_paths(get_option('datadir'), 'X11/xorg.conf.d'),
|
||||
)
|
||||
configure_file(
|
||||
input: '10-nvidia.conf.debian.in',
|
||||
output: '10-nvidia.conf.debian',
|
||||
configuration: nvidia_conf,
|
||||
install_dir: join_paths(get_option('sysconfdir'), 'X11/xorg.conf.d'),
|
||||
)
|
||||
configure_file(
|
||||
input: '10-nvidia-modules.conf.debian.in',
|
||||
output: '10-nvidia-modules.conf.debian',
|
||||
configuration: nvidia_conf,
|
||||
install_dir: join_paths(get_option('sysconfdir'), 'X11/xorg.conf.d'),
|
||||
)
|
||||
endif
|
||||
|
||||
libxserver_config = static_library('xserver_config',
|
||||
|
|
|
|||
Loading…
Reference in a new issue