ATI/Intel 混合显卡 16.04 LTS

Moo*_*key 11 graphics hybrid-graphics drivers 16.04 amd-graphics

由于我有一个板载 Intel 显卡和一个 ATI Radeon 显示控制器,我想知道我是否可以在使用图形时在两者之间切换,就像我在 14.04 LTS 中通过 ATI Catalyst 一样?

16.04 LTS 正在使用板载,硬件列表列出了 ATI 以及显示控制器,但未使用。额外的驱动程序不提供任何东西。

那么是使用了 AMDGPU,还是禁用了 ATI?

lspci:

00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09)
04:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Venus XTX [Radeon HD 8890M / R9 M275X/M375X] (rev ff)
Run Code Online (Sandbox Code Playgroud)

lspci -nnk | grep VGA -A1

00:02.0 VGA compatible controller [0300]: Intel Corporation Broadwell-U Integrated Graphics [8086:1616] (rev 09)
    Subsystem: Lenovo Broadwell-U Integrated Graphics [17aa:3824]
Run Code Online (Sandbox Code Playgroud)

小智 20

要使用 AMD 显卡,请执行以下命令:

DRI_PRIME=1 ./可执行文件

如果您想使用 AMD 显卡运行 Steam 游戏,您应该使用以下命令在 Steam 上设置游戏启动选项

DRI_PRIME=1 %command%

要手动测试这是否有效,您可以执行以下操作:

gxinfo | grep "OpenGL 渲染器"

此命令将显示您的英特尔显卡。执行此命令以查看您的 AMD 显卡:

DRI_PRIME=1 glxinfo | grep "OpenGL 渲染器"

例如,在我的情况下,当我执行时glxinfo | grep "OpenGL renderer",我的输出是这样的: OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile

但是,当我执行时DRI_PRIME=1 glxinfo | grep "OpenGL renderer",我的输出是这样的: OpenGL renderer string: Gallium 0.4 on AMD CAPE VERDE

还有其他命令可以测试,如果你想要更多的测试:

glmark2(使用英特尔)和 DRI_PRIME=1 glmark2(使用 AMD)