Ubuntu-14.04

GLX 編譯時版本錯誤(顯示解析度和硬體加速停止工作)

  • April 16, 2019

我有兩個 Ubuntu 14 桌面(相同)。直到星期五,兩者都工作正常。某些更新似乎已在非工作機器上執行…

2019-03-18 02:29:32 install linux-base:all <keine> 4.5ubuntu1~14.04.1
2019-03-18 02:29:32 install linux-modules-3.13.0-167-generic:amd64 <keine> 3.13.0-167.217
2019-03-18 02:29:33 install linux-image-3.13.0-167-generic:amd64 <keine> 3.13.0-167.217
2019-03-18 02:29:33 install linux-modules-extra-3.13.0-167-generic:amd64 <keine> 3.13.0-167.217
2019-03-18 02:29:36 install linux-image-generic:amd64 <keine> 3.13.0.167.178
2019-03-18 02:29:36 install linux-headers-3.13.0-167:all <keine> 3.13.0-167.217
2019-03-18 02:29:38 install linux-headers-3.13.0-167-generic:amd64 <keine> 3.13.0-167.217
2019-03-18 02:29:39 install linux-headers-generic:amd64 <keine> 3.13.0.167.178
2019-03-18 02:29:39 install linux-generic:amd64 <keine> 3.13.0.167.178
2019-03-18 02:29:39 install linux-modules-4.4.0-143-generic:amd64 <keine> 4.4.0-143.169~14.04.2
2019-03-18 02:29:40 install linux-image-4.4.0-143-generic:amd64 <keine> 4.4.0-143.169~14.04.2
2019-03-18 02:29:40 install linux-modules-extra-4.4.0-143-generic:amd64 <keine> 4.4.0-143.169~14.04.2
2019-03-18 02:29:44 install linux-headers-4.4.0-143:all <keine> 4.4.0-143.169~14.04.2
2019-03-18 02:29:46 install linux-headers-4.4.0-143-generic:amd64 <keine> 4.4.0-143.169~14.04.2

現在顯示解析度(顯然是硬體加速)在損壞的機器上不起作用。使用glxgears顯示以下錯誤…

在此處輸入圖像描述

lshw顯示 Nvidia 卡未連接(請原諒德國人)

*-display UNGEFORDERT
    Beschreibung: VGA compatible controller
    Produkt: NVIDIA Corporation
    Hersteller: NVIDIA Corporation
    Physische ID: 0
    Bus-Informationen: pci@0000:01:00.0
    Version: a1
    Breite: 64 bits
    Takt: 33MHz
    Fähigkeiten: pm msi pciexpress vga_controller bus_master cap_list
    Konfiguration: latency=0
    Ressourcen: memory:de000000-deffffff memory:c0000000-cfffffff memory:d0000000-d1ffffff ioport:e000(Größe=128) memory:df000000-df07ffff

並且/var/log/Xorg.o.log顯示正在呼叫不同的 GLX 模組(glxserver_nvidialibglx.so)……

工作機

[ 99380.611] (**) NVIDIA(0): Enabling 2D acceleration
[ 99380.611] (II) Loading sub module "glxserver_nvidia"
[ 99380.611] (II) LoadModule: "glxserver_nvidia"
[ 99380.611] (II) Loading /usr/lib/x86_64-linux-gnu/xorg/extra-modules/libglxserver_nvidia.so
[ 99380.633] (II) Module glxserver_nvidia: vendor="NVIDIA Corporation"
[ 99380.633]    compiled for 4.0.2, module version = 1.0.0
[ 99380.633]    Module class: X.Org Server Extension

不工作的機器

[  1042.464] (II) "glx" will be loaded by default.
[  1042.464] (II) LoadModule: "glx"
[  1042.465] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  1042.489] (II) Module glx: vendor="X.Org Foundation"
[  1042.490]    compiled for 1.18.3, module version = 1.0.0
[  1042.490]    ABI class: X.Org Server Extension, version 9.0

我已經重新安裝了所有原始驅動程序…

apt-get --reinstall install nvidia-410 nvidia-410-dev nvidia-modprobe nvidia-opencl-icd-410 nvidia-settings
apt --reinstall install libxcb-glx0 libxcb-glx0-dev
apt install libcudnn5 libcudnn5-dev -y

我的Google沒有給我任何安裝方向glxserver_nvidia

根據我的經驗,如果glxserver_nvidia沒有載入,那是因為 xserver 認為沒有使用 nvidia 顯卡(例如,未連接到顯示器)。

我曾經在我的伺服器上遇到同樣的問題。我通過nvidia-xconfig將虛擬監視器連接到我的 nvidia 顯卡來修復它。

引用自:https://serverfault.com/questions/958767