我正在使用运行 Ubuntu 15.10 的联想 Z500,其 VGA 规格如下:
VGA1: Intel HD 4000
VGA2: Geforce GT 740M
运行命令后lspci
,检测到Intel HD,但无法检测到第二块显卡Nvidia
。lspci
输出如下:
00:00.0 Host bridge: Intel Corporation 3rd Gen Core processor DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v2/3rd Gen Core processor PCI Express Root Port (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.1 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 2 (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation HM76 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller (rev 05)
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 2230 (rev c4)
另外,我无法使用命令找到显卡信息lshw
,以下是该命令的输出:
*-display
description: VGA compatible controller
product: 3rd Gen Core processor Graphics Controller
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 09
width: 64 bits
clock: 33MHz
capabilities: msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:28 memory:d3000000-d33fffff memory:e0000000-efffffff ioport:4000(size=64)
我正在使用联想公司最新发布的 BIOS(2013),并且 BIOS 中的显卡模式设置为Switchable Graphics
。
有人可以解释一下我该怎么做吗?
答案1
从专有 GPU 驱动程序 PPA 安装支持 GT 740 的最新稳定 NVIDIA 驱动程序。
在安装新驱动程序之前,请卸载之前安装的所有 NVIDIA 相关软件。
打开终端并执行:
sudo apt-get purge nvidia*
sudo reboot
然后通过执行以下操作从长期分支安装最新的当前稳定 NVIDIA 驱动程序:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt-get update
sudo apt-get install nvidia-352 nvidia-prime
sudo reboot
要在英特尔和 Nvidia 显卡之间切换 - 打开NVIDIA X 服务器设置->主要简介。
切换到后英伟达跑步命令lspci再次输出显示你的NVIDIA GT 740 GPU。
笔记 :
如果您使用 Ubuntu 15.10,则无需添加专有 GPU 驱动程序存储库(sudo add-apt-repository ppa:graphics-drivers/ppa)- 驱动程序已包含在 Ubuntu 存储库中。如果您之前安装了 bumblebee,则也必须将其删除。
答案2
您需要使用此命令来更新您的 PCI ID 数据库。
sudo update-pciids
然后
sudo lspci -nn | grep VGA
如果它有效,请告诉我。
答案3
我遇到过类似的情况,并咨询了一位专家,看起来显卡和编译器/ cuda 版本支持的匹配存在限制。看起来我的卡支持到 Ubuntu 13.04,所以 15.10 不支持它。此外,我怀疑内核上的 g++ 库不适合支持我的卡的 cuda 6.0.37 的内核 g++ 和仅支持到 gcc/g++ 版本 4.8.x 的 cuda 版本 cc1.0,而 ubuntu 15.10 内核使用 gcc/g++ 5.0.X 版本。
您可能遇到了硬件兼容性问题,导致硬件无法在 15.10 上正常运行。
我有一个类似的问题我的系统构造是:
:~$ sudo lshw -C display
*-display
description: VGA compatible controller
product: G96 [GeForce 9400 GT]
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:30 memory:fa000000-faffffff memory:d0000000-dfffffff memory:f8000000-f9ffffff ioport:e000(size=128) memory:fb000000-fb07ffff
:~$ /usr/bin/nvidia-smi
Tue Nov 3 13:29:21 2015
+------------------------------------------------------+
| NVIDIA-SMI 340.93 Driver Version: 340.93 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce 9400 GT On | 0000:01:00.0 N/A | N/A |
| 0% 50C P12 N/A / N/A | 57MiB / 511MiB | N/A Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Compute processes: GPU Memory |
| GPU PID Process name Usage |
|=============================================================================|
| 0 Not Supported |
+-----------------------------------------------------------------------------+
:~$ ubuntu-drivers devices
== cpu-microcode.py ==
driver : intel-microcode - distro non-free
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00000641sv00001043sd00008296bc03sc00i00
vendor : NVIDIA Corporation
model : G96 [GeForce 9400 GT]
driver : xserver-xorg-video-nouveau - distro free builtin
driver : nvidia-340-updates - distro non-free
driver : nvidia-304-updates - distro non-free
driver : nvidia-304 - distro non-free
driver : nvidia-340 - distro non-free recommended
当我将显示器更改为使用板载英特尔 d 型显示器电缆输出时,SMI 模块未加载,并且 connamd“/usr/bin/nvidia-smi”失败,因为它无法与驱动程序通信。
也许有人可以帮忙解决如何从板载英特尔显卡硬件(i5 处理器 4 线程)驱动显示器,同时仍让 NVIDIA 340.96 驱动程序加载在内核上?