一、显卡信息
1、glxinfo |grep OpenGL
安装了了英伟达独立显卡,依照下边OpenGL信息OpenGL renderer string: llvmpipe (LLVM 10.0.0, 256 bits)来看,我们安装了英伟达独立显卡,此时却使用的是集成显卡。
123@123-OptiPlex-7071:~$ glxinfo |grep OpenGL
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: llvmpipe (LLVM 10.0.0, 256 bits)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 20.1.0
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 20.1.0
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 20.1.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:
2、 lspci -vnn | grep VGA -A 12
查看显卡信息,从显卡信息来看,NVIDIA显卡并没有识别出具体的型号,且显卡驱动使用的是nouveau:
123@123-OptiPlex-7071:~$ lspci -vnn | grep VGA -A 12
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:2184] (rev a1) (prog-if 00 [VGA controller])
Subsystem: Device [7377:0000]
Flags: bus master, fast devsel, latency 0, IRQ 131
Memory at a4000000 (32-bit, non-prefetchable) [size=16M]
Memory at 90000000 (64-bit, prefetchable) [size=256M]
Memory at a0000000 (64-bit, prefetchable) [size=32M]
I/O ports at 3000 [size=128]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: nouveau
Kernel modules: nvidiafb, nouveau
01:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:1aeb] (rev a1)
3、 sudo lshw -C display
查看硬件的显示信息,从下边可以看出,显示1为英伟达显卡,驱动使用的是nouveau;显示2为Intel Corporation的集成显卡,驱动为driver=i915
123@123-OptiPlex-7071:~$ sudo lshw -C display
*-display
description: VGA compatible controller
product: NVIDIA Corporation
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=nouveau latency=0
resources: irq:131 memory:a4000000-a4ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:3000(size=128) memory:c0000-dffff
*-display
description: Display controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 02
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm bus_master cap_list
configuration: driver=i915 latency=0
resources: irq:132 memory:a3000000-a3ffffff memory:80000000-8fffffff ioport:4000(size=64)
4、modinfo
查看nouveau驱动的详细信息,filename: /lib/modules/5.4.0-45-generic/kernel/drivers/gpu/drm/nouveau/nouveau.ko可以看出系统内核驱动:
123@123-OptiPlex-7071:~$ sudo modinfo nouveau
file