![要删除 NVIDIA 专有驱动程序:](https://linux22.com/image/962874/%E8%A6%81%E5%88%A0%E9%99%A4%20NVIDIA%20%E4%B8%93%E6%9C%89%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F%EF%BC%9A.png)
我的电脑窗口显示有点乏味 :) 这是一台台式机,带有板载 Intel 卡,但 PCI 插槽中装有独立 Nvidia 卡。BIOS 中已禁用 Intel 卡。
有人建议运行glxgears
,但我遇到了这种错误......
$ glxgears
Xlib: extension "GLX" missing on display ":0".
Error: couldn't get an RGB, Double-buffered visual
其他可能有帮助的信息如下
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
$ sudo lshw -c video
*-display
description: Display controller
product: 82G33/G31 Express Integrated Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 10
width: 32 bits
clock: 33MHz
capabilities: msi pm bus_master cap_list
configuration: driver=i915 latency=0
resources: irq:42 memory:fdf00000-fdf7ffff ioport:f400(size=8) memory:a0000000-afffffff memory:fdc00000-fdcfffff
*-display UNCLAIMED
description: VGA compatible controller
product: GT218 [GeForce 8400 GS]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:06:00.0
version: a2
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list
configuration: latency=0
resources: memory:fb000000-fbffffff memory:b0000000-bfffffff memory:ce000000-cfffffff ioport:ef00(size=128) memory:c0000000-c007ffff
$ jockey-text -l
xorg:nvidia_current - NVIDIA accelerated graphics driver (Proprietary, Disabled, Not in use)
xorg:nvidia_current_updates - NVIDIA accelerated graphics driver (post-release updates) (Proprietary, Disabled, Not in use)
$ lspci
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
00:02.0 Display controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10)
00:1b.0 Audio device: Intel Corporation N10/ICH 7 Family High Definition Audio Controller (rev 01)
00:1c.0 PCI bridge: Intel Corporation N10/ICH 7 Family PCI Express Port 1 (rev 01)
00:1d.0 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #1 (rev 01)
00:1d.1 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #2 (rev 01)
00:1d.2 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #3 (rev 01)
00:1d.3 USB controller: Intel Corporation N10/ICH 7 Family USB UHCI Controller #4 (rev 01)
00:1d.7 USB controller: Intel Corporation N10/ICH 7 Family USB2 EHCI Controller (rev 01)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
00:1f.2 IDE interface: Intel Corporation N10/ICH7 Family SATA Controller [IDE mode] (rev 01)
00:1f.3 SMBus: Intel Corporation N10/ICH 7 Family SMBus Controller (rev 01)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01)
05:00.0 PCI bridge: PLX Technology, Inc. PEX8112 x1 Lane PCI Express-to-PCI Bridge (rev aa)
06:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 8400 GS] (rev a2)
06:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
我只是想知道 glxgears 失败是否正常或者我的计算机是否存在一些配置问题。
试过了没什么反应..
sudo apt-add-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current
然后尝试了这个,发生了这样的事:)
$ sudo jockey-text -e xorg:nvidia_current
Sorry, installation of this driver failed.
Please have a look at the log file for details: /var/log/jockey.log
$ tail -20 /var/log/jockey.log
2012-08-24 19:09:13,652 DEBUG: NVidia(nvidia_current).enabled(): target_alt /usr/lib/nvidia-current/ld.so.conf current_alt /usr/lib/nvidia-current/ld.so.conf other target alt /usr/lib/nvidia-current/alt_ld.so.conf other current alt /usr/lib/nvidia-current/alt_ld.so.conf
2012-08-24 19:09:13,652 DEBUG: KMH enabled: False
2012-08-24 19:09:14,308 WARNING: modinfo for module nvidia_current failed: ERROR: modinfo: could not find module nvidia_current
2012-08-24 19:09:14,308 ERROR: XorgDriverHandler.enable(): package or module not installed, aborting
2012-08-24 19:09:46,485 DEBUG: NVidia(nvidia_current).enabled(): target_alt /usr/lib/nvidia-current/ld.so.conf current_alt /usr/lib/nvidia-current/ld.so.conf other target alt /usr/lib/nvidia-current/alt_ld.so.conf other current alt /usr/lib/nvidia-current/alt_ld.so.conf
2012-08-24 19:09:46,485 DEBUG: KMH enabled: False
2012-08-24 19:09:46,513 DEBUG: NVidia(nvidia_current).enabled(): target_alt /usr/lib/nvidia-current/ld.so.conf current_alt /usr/lib/nvidia-current/ld.so.conf other target alt /usr/lib/nvidia-current/alt_ld.so.conf other current alt /usr/lib/nvidia-current/alt_ld.so.conf
2012-08-24 19:09:46,513 DEBUG: KMH enabled: False
答案1
不,glxgears 失败是不正常的。失败是因为您的系统上没有设置 GLX。您需要安装显卡驱动程序才能获得完整的 3D 支持。
正如 jockey 所示,您没有使用 nvidia 卡的专有驱动程序,因此我建议如下:
激活专有驱动程序:
sudo jockey-text -e xorg:nvidia_current
查看问题是否仍然存在
要删除 NVIDIA 专有驱动程序:
sudo apt-get purge nvidia-current
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
sudo apt-get --reinstall install libgl1-mesa-glx
重启
安装附加驱动程序
sudo apt-get install nvidia-current
重启
安装 NVDIA 驱动程序
前往 NVIDIA.com 选择适合您的 GeForce 显卡的 Linux 驱动程序
前往文件所在位置并运行:
选择其中一种方法,看看哪一种方法适合您,尽管建议使用附加驱动程序。
sudo sh Nvidiaxxxx.sh
按照说明进行操作并重新启动
答案2
删除所有 NVIDIA 驱动程序并安装 Bumblebee https://wiki.ubuntu.com/Bumblebee或者运行 Xubuntu