Linux/显卡:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第2行: 第2行:
== 检查 ==
== 检查 ==
检测显卡驱动版本
检测显卡驱动版本
<syntaxhighlight lang="bash">
 
lspci | grep VGA</syntaxhighlight>
{{shc_out|<syntaxhighlight lang="bash">
<blockquote><pre>
lspci | grep -i VGA</syntaxhighlight>|<syntaxhighlight lang="javascript">
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev c7)</pre></blockquote>
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M] (rev c5)
<syntaxhighlight lang="bash">
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}
lspci | egrep 'VGA|3D'</syntaxhighlight>
 
<blockquote><pre>
 
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev c7)</pre></blockquote>
{{shc_out|<syntaxhighlight lang="bash">
lspci | grep -i VGA</syntaxhighlight>|<syntaxhighlight lang="javascript">
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M] (rev c5)
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}
 
获取系统上显卡的信息
获取系统上显卡的信息
<syntaxhighlight lang="bash">
 
lspci -vnn | grep VGA -A 12</syntaxhighlight>
{{shc_out|<syntaxhighlight lang="bash">
<blockquote><pre>
lspci -vnn | grep VGA -A 12</syntaxhighlight>|<syntaxhighlight lang="javascript">
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] [1002:67df] (rev c7) (prog-if 00 [VGA controller])
03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5500M] [1002:7340] (rev c5) (prog-if 00 [VGA controller])
Subsystem: ASUSTeK Computer Inc. Radeon RX 480 [1043:04fb]
Subsystem: Gigabyte Technology Co., Ltd Navi 14 [Radeon RX 5500/5500M / Pro 5500M] [1458:2319]
Flags: bus master, fast devsel, latency 0, IRQ 153
Flags: bus master, fast devsel, latency 0, IRQ 165
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=2M]
Memory at f0000000 (64-bit, prefetchable) [size=2M]
I/O ports at e000 [size=256]
I/O ports at e000 [size=256]
Memory at f7e00000 (32-bit, non-prefetchable) [size=256K]
Memory at f7a00000 (32-bit, non-prefetchable) [size=512K]
Expansion ROM at 000c0000 [disabled] [size=128K]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: <access denied>
Capabilities: <access denied>
第26行: 第30行:
Kernel modules: amdgpu
Kernel modules: amdgpu


01:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] [1002:aaf0]
03:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio [1002:ab38]
</pre></blockquote>
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}
 
当前驱动
当前驱动
<syntaxhighlight lang="bash">
 
sudo lshw -c video | grep configuration</syntaxhighlight>
{{shc_out|<syntaxhighlight lang="bash">
<blockquote><pre>
lshw -c video | grep configuration</syntaxhighlight>|<syntaxhighlight lang="javascript">
WARNING: you should run this program as super-user.
       configuration: driver=amdgpu latency=0
       configuration: driver=amdgpu latency=0
</pre></blockquote>
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}
 
=== nvidia GPU ===
=== nvidia GPU ===
查看GPU型号
查看GPU型号