您尚未登录。

#1 2023-05-25 22:29:53

Leonardo
会员
注册时间: 2023-03-21
帖子: 8

I卡和A卡双显卡如何切换到AMD独显玩游戏?

我的电脑是HP 340 G5,一个Intel UHD Graphics 620和一个AMD Radeon R7 M445,安装的AMDGPU驱动,按照网上的教程用prime切换没用,大佬们教一下我,求求了

离线

#2 2023-05-26 08:22:59

Leonardo
会员
注册时间: 2023-03-21
帖子: 8

Re: I卡和A卡双显卡如何切换到AMD独显玩游戏?

lspci的输出00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02)
01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile] (rev c3)
但是DRI_PRIME=1 glxinfo | grep 'OpenGL'   的输出仍与glxinfo | grep 'OpenGL'相同,
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (WHL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.1.0
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.0
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:。

离线

#3 2023-05-26 21:56:12

matrikslee
会员
注册时间: 2017-04-21
帖子: 442
个人网站

Re: I卡和A卡双显卡如何切换到AMD独显玩游戏?

用的啥桌面环境?例如是 KDE 还是GNOME,还是直接用的窗口管理器?

还有,桌面环境(or 窗口管理器)用的是X11的还是wayland的?

还有 「按照网上的教程用prime切换没用」 是啥教程,有看过arch wiki吗?
例如, 装amd驱动请看 https://wiki.archlinux.org/title/AMDGPU, 或者如果你英文不行也可以看中文社区翻译维护的中文wiki:https://wiki.archlinuxcn.org/wiki/AMDGPU

如何用prime调用独显可以看 https://wiki.archlinux.org/title/PRIME 或者 中文的 https://wiki.archlinuxcn.org/wiki/PRIME

离线

#4 2023-05-28 22:03:40

Leonardo
会员
注册时间: 2023-03-21
帖子: 8

Re: I卡和A卡双显卡如何切换到AMD独显玩游戏?

matrikslee 说:

用的啥桌面环境?例如是 KDE 还是GNOME,还是直接用的窗口管理器?

还有,桌面环境(or 窗口管理器)用的是X11的还是wayland的?

还有 「按照网上的教程用prime切换没用」 是啥教程,有看过arch wiki吗?
例如, 装amd驱动请看 https://wiki.archlinux.org/title/AMDGPU, 或者如果你英文不行也可以看中文社区翻译维护的中文wiki:https://wiki.archlinuxcn.org/wiki/AMDGPU

如何用prime调用独显可以看 https://wiki.archlinux.org/title/PRIME 或者 中文的 https://wiki.archlinuxcn.org/wiki/PRIME

我使用的是dwm窗口管理器,应该是X11的。

关于archwiki,我在techpowerup上查到自己的AMD Radeon R7 M445使用的架构是GCN3.0,所以我按照archwiki上的内容安装了mesa lib32-mesa xf86-video-amdgpu vulkan-radeon lib32-vulkan-radeon

关于使用prime调用独显,我安装好以上包xrandr --listproviders的输出却是

Providers: number : 1

Provider 0: id: 0x43 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting

lspci的输出为

00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02)

lsmod的输出也有amdgpu,我不知道问题出在哪里,按照wiki中的DRI_PRIME=1也不行。

离线

#5 2023-05-29 13:45:05

matrikslee
会员
注册时间: 2017-04-21
帖子: 442
个人网站

Re: I卡和A卡双显卡如何切换到AMD独显玩游戏?

Leonardo 说:

lspci的输出为

00:02.0 VGA compatible controller: Intel Corporation WhiskeyLake-U GT2 [UHD Graphics 620] (rev 02)

你现在的目的是要调用amd显卡,前提是你至少要能驱动amd显卡,应该关注lspci输出的amd显卡部分,

Leonardo 说:

01:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Topaz XT [Radeon R7 M260/M265 / M340/M360 / M440/M445 / 530/535 / 620/625 Mobile] (rev c3)

你有提到你用的是x11图形环境,那么就可以按照wiki prime页面介绍的来做,先检查自己是否安装了xf86-video-amdgpu软件包

然后再检查x11的启动log,看x11是否有能正确识别到amd显卡,如果没有,考虑手动添加xorg 配置文件,参考 https://wiki.archlinux.org/title/AMDGPU … figuration

最近编辑记录 matrikslee (2023-05-29 13:49:30)

离线

页脚