我正在尝试安装 NVidia 驱动程序Linux mg-Ubuntu 3.16.0-45-generic #60~14.04.1-Ubuntu
。这是 GTK 的屏幕截图;
这里也来自 Nvidia 的设置;
但是当我尝试在 Ubuntu 中使用虚幻引擎 4 时,图形效果不佳。出现了许多奇怪的颜色。这是来自虚幻引擎的图像;
然后我去检查 lspci 和 glxinfo,看看我的 nvidia 是否正常工作。它说Kernel driver in use: i915
mg@mg-Ubuntu:/.1/Programs/UnrealEngine/UnrealEngine-release/Engine/Binaries/Linux$ lspci -vnn | grep -i VGA -A 1200:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09) (prog-if 00 [VGA controller])
Subsystem: Lenovo Device [17aa:3912]
Flags: bus master, fast devsel, latency 0, IRQ 45
Memory at d3000000 (64-bit, non-prefetchable) [size=4M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
I/O ports at 4000 [size=64]
Expansion ROM at <unassigned> [disabled]
Capabilities: <access denied>
Kernel driver in use: i915
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04) (prog-if 30 [XHCI])
Subsystem: Lenovo Device [17aa:3977]
Flags: bus master, medium devsel, latency 0, IRQ 41
但是 OpenGL 渲染器GeForce
不是MESA
mg@mg-Ubuntu:/.1/Programs/UnrealEngine/UnrealEngine-release/Engine/Binaries/Linux$ glxinfo | grep OpenGL | grep renderer
OpenGL renderer string: GeForce GT 720M/PCIe/SSE2
我该如何解决这个问题?为什么 lspci 说内核驱动器是 i915?
答案1
您的笔记本电脑有混合显卡。
有两种视频适配器:Intel 和 Nvidia。
i915
驱动程序适用于英特尔。
如果你在终端中运行
lspci -knn | grep -EA2 'VGA|3D'
您将看到适配器和nvidia
驱动程序。