lspci | grep -i vga
这样就可以显示机器上的显卡信息,比如
[root@localhost conf]# lspci | grep -i vga
01:00.0 VGA compatible controller: nVidia Corporation Device 1081 (rev a1)
02:00.0 VGA compatible controller: nVidia Corporation GT215 [GeForce GT 240] (rev a2)
00:1d.7 usb controller: intel corporation 82801i (ich9 family) usb2 ehci controller #1 (rev 02)。00:1a.2 usb controller: intel corporation 82801i (ich9 family) usb uhci controller #6 (rev 02)。00:1d.0 usb controller: intel corporation 82801i (ich9 family) usb uhci controller #1 (rev 02)。
如果想看详细的信息,比如GeForce GT 240,即 02:00.0
[root@localhost conf]# lspci -v -s 02:00.0
02:00.0 VGA compatible controller: nVidia Corporation GT215 [GeForce GT 240] (rev a2) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Device 8351
Flags: bus master, fast devsel, latency 0, IRQ 169
Memory at f9000000 (32-bit, non-prefetchable) [size=16M]
region 0: memory at e1920000 (32-bit, non-prefetchable) [size=128k]。 region 1: memory at e1900000 (32-bit, non-prefetchable) [size=128k]。 memory at e1a20000 (32-bit, non-prefetchable) [size=4k]。
Memory at ce000000 (64-bit, prefetchable) [size=32M]
I/O ports at bc00 [size=128]
[virtual] Expansion ROM at f8f80000 [disabled] [size=512K]
Capabilities: [60] Power Management version 3
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Express Endpoint, MSI 00
Capabilities: [b4] Vendor Specific Information: Len=14 <?>
Capabilities: [100] Virtual Channel
Capabilities: [128] Power Budgeting <?>