Linux/显卡:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
[[Linux|返回上一级]]
[[Linux|返回上一级]]
== 检查 ==
== 检查 ==
=== glxinfo ===
确定显卡程序已经安装。
确定显卡程序已经安装。
{{shc_out|<syntaxhighlight lang="bash">
{{shc_out|<syntaxhighlight lang="bash">
第6行: 第7行:
direct rendering: Yes
direct rendering: Yes
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}
{{shc_out|<syntaxhighlight lang="bash">
glxinfo | grep -i rend</syntaxhighlight>|<syntaxhighlight lang="javascript">
direct rendering: Yes
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer,
    Renderbuffer free memory - total: 7686 MB, largest block: 6083 MB
    Renderbuffer free aux. memory - total: 56154 MB, largest block: 42137 MB
OpenGL renderer string: Radeon RX 5500 XT
    GL_ARB_compute_shader, GL_ARB_conditional_render_inverted,
    GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image,
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image,
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image,
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}
=== lspci ===


检测显卡驱动版本
检测显卡驱动版本
第47行: 第65行:
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}
{{shc|<syntaxhighlight lang="bash">
moreinfo amdgpu
</syntaxhighlight>|kangjian@kangjian:~/桌面$}}


=== nvidia GPU ===
=== nvidia GPU ===
第117行: 第140行:
echo "2" > pwm1_enable</syntaxhighlight>|$}}
echo "2" > pwm1_enable</syntaxhighlight>|$}}
* Warning: Resetting fan speed to auto may not work due to a driver bug and instead a restart of the driver may be required as a workaround.
* Warning: Resetting fan speed to auto may not work due to a driver bug and instead a restart of the driver may be required as a workaround.
== OpenGL ==
== OpenGL ==
 
检查硬件加速。
{{shc_out|<syntaxhighlight lang="bash">
{{shc_out|<syntaxhighlight lang="bash">
glxinfo | grep OpenGL</syntaxhighlight>|<syntaxhighlight lang="javascript">
glxinfo | grep OpenGL</syntaxhighlight>|<syntaxhighlight lang="javascript">