FS#69673 - [nvidia-lts] proprietary drivers 1:460.39-10 - software rendering

Attached to Project: Arch Linux
Opened by Evgeny (Rus) - Wednesday, 17 February 2021, 13:39 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Wednesday, 17 February 2021, 23:48 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

linux-lts 5.10.16-2
nvidia-lts 1:460.39-10
GTX 970

glxinfo | grep OpenGL:

OpenGL vendor string: Mesa/X.org
OpenGL renderer string: llvmpipe (LLVM 11.0.1, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 20.3.4
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 20.3.4
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.4
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Wednesday, 17 February 2021, 23:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  Reporter requested closing this bug.
Comment by Emil (xexaxo) - Wednesday, 17 February 2021, 15:12 GMT
Are you using Xorg or Wayland? Is this a regression?

If it is I would suggest tracking down the package which broke it. The prime suspects are:
- linux-lts
- nvidia-lts
- xorg-server

Assuming you're using Xorg please attach your Xorg.log.
Comment by Evgeny (Rus) - Wednesday, 17 February 2021, 15:31 GMT
Xorg
Regression

I think it's because of the 5.4 kernel upgrade to 5.10
Comment by Doug Newgard (Scimmia) - Wednesday, 17 February 2021, 15:44 GMT
pacman -Qi nvidia-utils
pacman -Qkk nvidia-utils
Comment by Evgeny (Rus) - Wednesday, 17 February 2021, 15:53 GMT
Название : nvidia-utils
Версия : 460.39-1
Описание : NVIDIA drivers utilities
Архитектура : x86_64
URL : http://www.nvidia.com/
Лицензии : custom
Группы : Нет
Предоставляет : vulkan-driver opengl-driver nvidia-libgl
Зависит от : xorg-server libglvnd egl-wayland
Доп. зависимости : nvidia-settings: configuration tool [установлено]
xorg-server-devel: nvidia-xconfig
opencl-nvidia: OpenCL support
Требуется : lib32-nvidia-utils libglvnd nvidia-lts nvidia-settings steam steam-native-runtime
Опционально для : ffmpeg vulkan-icd-loader
Конфликтует с : nvidia-libgl
Заменяет : nvidia-libgl
Установленный размер : 311,27 MiB
Сборщик : Sven-Hendrik Haase <svenstaro@gmail.com>
Дата сборки : Вт 26 янв 2021 19:01:25
Дата установки : Ср 27 янв 2021 19:02:53
Причина установки : Установлен как зависимость другого пакета
Установочный скрипт : Yes
Проверен : Подпись

nvidia-utils: всего 180 файлов, 0 измененных файлов
Comment by Andreas Radke (AndyRTR) - Wednesday, 17 February 2021, 16:03 GMT
[ 3.891] (WW) Warning, couldn't open module glxserver_nvidia
[ 3.891] (EE) NVIDIA: Failed to load module "glxserver_nvidia" (module does not exist, 0)
[ 3.891] (EE) NVIDIA(0): Failed to initialize the GLX module; please check in your X
[ 3.891] (EE) NVIDIA(0): log file that the GLX module has been loaded in your X
[ 3.891] (EE) NVIDIA(0): server, and that the module is the NVIDIA GLX module. If
[ 3.891] (EE) NVIDIA(0): you continue to encounter problems, Please try
[ 3.891] (EE) NVIDIA(0): reinstalling the NVIDIA driver.

Please confirm the module is present on your system and in the proper path. Check pacman.log after kernel update. There's also now 5.10.17 in testing.
Comment by Evgeny (Rus) - Wednesday, 17 February 2021, 16:08 GMT
/etc/X11/xorg.conf

Section "Files"
ModulePath "/usr/lib/nvidia"
ModulePath "/usr/lib32/nvidia"
ModulePath "/usr/lib32/nvidia/xorg/modules"
ModulePath "/usr/lib32/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg"
ModulePath "/usr/lib64/xorg/modules"
EndSection

This solves the problem
But I still don't understand why it broke
Comment by Emil (xexaxo) - Wednesday, 17 February 2021, 16:10 GMT
Hmm the bundled config file aka /usr/share/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf isn't being picked up.
Thus /usr/lib/nvidia/xorg isn't added to ModulesPath, resulting in failure to load server-side GLVND (aka libglxserver_nvidia) -> software rendering.

Backup and remove any _custom_ xorg configuration that you have - /etc/X11/xorg.conf* and /usr/share/X11/xorg.conf*. Be careful _not_ to remove files that are provided by Arch packages. If that doesn't help, attach the new Xorg.log.
Comment by Emil (xexaxo) - Wednesday, 17 February 2021, 16:14 GMT
From my experience hacking on X and drivers:
Since about 2-3 years ago, there should be no need for custom xorg configuration. The one shipped in the package will work in 99% of the cases.
Comment by Evgeny (Rus) - Wednesday, 17 February 2021, 17:02 GMT
My system does not work without
sudo nvidia-xconfig

Loading...