lspci -vnnn | perl -lne 'print if /^d+:.+([S+:S+])/'
来查询显卡驱动版本。在Linux系统中,显卡驱动的版本信息对于系统的稳定性和性能至关重要,本文将介绍如何在Linux系统中查询显卡驱动版本的方法。
查看内核信息
我们需要查看当前Linux系统的内核版本,可以通过以下命令查看:
uname r
安装显卡驱动信息工具
为了方便地查询显卡驱动版本,我们可以安装一个名为lspci
的工具。lspci
是一个用于显示PCI总线信息的命令行工具,它可以显示显卡的相关信息,在Debian/Ubuntu系统中,可以使用以下命令安装:
sudo aptget install pciutils
在CentOS/RHEL系统中,可以使用以下命令安装:
sudo yum install pciutils
查询显卡驱动版本
安装完lspci
工具后,我们可以使用以下命令查询显卡驱动版本:
lspci | grep VGA
这个命令会显示与VGA兼容的设备,即显卡,输出结果类似于以下格式:
01:00.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06) (progif 00 [VGA controller]) Subsystem: HewlettPackard Company Device 358b Kernel driver in use: i915 Kernel modules: i915
在这个例子中,显卡驱动版本为i915
。
查询显卡型号
除了查询显卡驱动版本外,我们还可以查询显卡型号,可以使用以下命令查询:
lspci vnn | grep VGA A 12
这个命令会显示更详细的显卡信息,包括型号、制造商等,输出结果类似于以下格式:
01:00.0 VGA compatible controller [0300]: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller [0116] (rev 06) (progif 00 [VGA controller]) Subsystem: HewlettPackard Company Device [103c] Physical Slot: 1d Control: I/O+ Mem+ BusMaster+ SpecCycleMemWINVVGASnoopParErrSteppingSERRFastB2BDisINTx+ Status: Cap+ 66MHzUDFFastB2B+ ParErrDEVSEL=fast >TAbort<TAbort<MAbort>SERR<PERRINTx Latency: 0, Cache Line Size: 64 bytes Interrupt: pin A routed to IRQ 127 Region 0: Memory at f7800000 (32bit, nonprefetchable) [size=4M] Region 2: Memory at d0000000 (64bit, prefetchable) [size=256M] Region 4: I/O ports at e000 [size=64] [virtual] [disabled] [alignment=128] Region 5: Memory at f7a80000 (32bit, nonpr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CEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBFC1CBDCEBF| I/O + Mem + BusMaster.......................................................................................| Video Bus: ......................................................................................| Hardware Revision: ..................................| Flags: ..................................................| Integrated: ................................| Supported: ....................| Port #0: System bus ID#.........| Port #0: Device ID#....| Port #0: Function ID#...| Port #0: Class code...| Port #0: Vendor ID#...| Port #0: Subsystem ID#..| Port #0: Device class...| Port #0: Device subclass...| Port #0: Device protocol...| Port #0: PCIe version...| Port #0: Max PCIe link speed...| Port #0: Link control...| Port #0: Link status....| Port #0: Power management capabilities...| Port #0: Signal processing capabilities...| Port #0: Compatibility signature....| Port #0: Driver version....| Port #0: Firmware version....|
原创文章,作者:酷盾叔,如若转载,请注明出处:https://www.kdun.com/ask/355266.html
本网站发布或转载的文章及图片均来自网络,其原创性以及文中表达的观点和判断不代表本网站。如有问题,请联系客服处理。
发表回复