2020 年 2 月 6 日更新

2020 年 2 月 6 日更新

2020 年 2 月 6 日更新

(请参阅下文了解原始问题描述。)

因此,Ubuntu 今天安装了自动更新,重启后,Intel 和 AMD 都能被识别。

$ DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 4400 (HSW GT2)
$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: AMD OLAND (DRM 2.50.0, 5.3.0-28-generic, LLVM 9.0.1)

不幸的是,当我尝试 Steam 游戏时,什么都没有改变,它们没有使用专用 GPU。只有当我在 Grub 中编辑启动命令时(sudo gedit /etc/default/grub说实话有点吓人,但我很高兴这是可能的),如下所示:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash radeon.modeset=1 radeon.cik_support=0 radeon.si_support=0 amdgpu.si_support=1 amdgpu.cik_support=1 amdgpu.dc=1 amdgpu.dpm=1"

强制使用amdgpu驱动程序而不是radeon,游戏使用显卡。我只测试了黑暗之魂 3现在可以玩了,虽然我不得不把图形设置调得比在 Windows 上玩的时候低很多。我想,它没有那么优化吧?但这与最初的问题无关,现在问题已经解决了。


问题(2020 年 2 月 5 日,已解决)

在我尝试让专用的 Radeon 显卡与集成的 Intel 显卡一起工作后,Ubuntu 安装了带有自动更新的驱动程序。现在 Intel 和 Radeon 都不再使用,但llvmpipe (LLVM 9.0.1, 256 bits)在“设置/详细信息/关于/图形”中却显示,图形密集型显卡无法正常工作,我无法让它至少再次使用 Intel 显卡。

初始设置

三周前,我在一台 Acer TravelMate P645MG 笔记本上安装了 Ubuntu 18.04,该笔记本配有专用的 AMD Radeon HD 8750M 显卡(以前是 Windows 7,现在是双启动;我以前没有使用过 Linux)。从一开始,Radeon 就没有列在“设置/关于”面板中,但列出了 Intel HD Graphics 4400,而且似乎运行良好。

然后我安装了 Steam,希望它能为 Radeon 安装额外的驱动程序。Steam 安装了 Proton,但我尝试的游戏 (黑暗之魂 3) 在启动时崩溃。 Steam 随后在下次启动时自动安装 Vulkan:现在我可以启动游戏了,但它在角色生成屏幕上崩溃了。我猜想游戏试图在英特尔上运行,但没有使用 Radeon。

门户网站(原始)实际上在英特尔上运行良好,如果这有任何兴趣的话。

中间步骤

我在许多论坛主题中研究了这个问题,但我对尝试建议的解决方案持谨慎态度,因为其中很多解决方案都很旧,而且我曾多次读到过,使用 Ubuntu 18.04 安装的 Radeon 驱动程序非常好,应该可以开箱即用。

我最终安装了该ppa:oibaf/graphics-drivers软件包,但什么都没变。有些人建议在 BIOS 中将专用显卡设置为默认设置,但我的电脑没有这个选项。

出现问题时:Ubuntu 更新

两天前,Ubuntu 提示我安装自动更新,其中包括 Mesa 和/或 OpenGL 驱动程序(我真的不知道这些意味着什么)。我希望这能解决问题,所以我安装并重新启动。

重启后不久,当我打开一个程序时,Ubuntu 崩溃了,变成了某种全屏终端视图。我再次重启,Ubuntu 可以正常工作,但现在它显示llvmpipe (LLVM 9.0.1, 256 bits)在“设置/详细信息/关于/图形”中。

我认为这是一件坏事,因为我的游戏在启动时再次崩溃(测试门户网站:启动但速度缓慢,无法播放),并且即使播放 Netflix 视频,我的笔记本也会发热。

我已经(未)尝试过

我本来想恢复 Ubuntu 更新,但我真的不知道我在做什么,而且我担心会造成更大的损害。现在,玩 Steam 游戏甚至不再是我的主要关注点(我可以为此启动 Windows,我从未想到 Steam 甚至存在于 Ubuntu 中)——但我希望 Ubuntu 至少在其他所有方面都使用集成的英特尔。

如果有人能提供帮助,我将永远感激!:)

东西

在其他线程上请求的信息,我希望这有帮助:

$ lspci -k | grep -EA3 'VGA|3D|Display'
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 09)
    Subsystem: Acer Incorporated [ALI] Haswell-ULT Integrated Graphics Controller
    Kernel driver in use: i915
    Kernel modules: i915
--
02:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Mars [Radeon HD 8670A/8670M/8750M]
    Subsystem: Acer Incorporated [ALI] Mars [Radeon HD 8670A/8670M/8750M]
    Kernel driver in use: radeon
    Kernel modules: radeon, amdgpu

$ DRI_PRIME=0 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: llvmpipe (LLVM 9.0.1, 256 bits)

$ DRI_PRIME=1 glxinfo | grep "OpenGL renderer"
OpenGL renderer string: llvmpipe (LLVM 9.0.1, 256 bits)

答案1

我遇到了非常类似的情况,我的 Intel HD Graphics 5500 卡被您提到的 OpenGL 渲染器 LLVMpipe 替换——就在您报告的同一时间。您是否在问题发生之前或之后启用了高级图形驱动程序 ppa (ppa.launchpad.net/oibaf/graphics-drivers)?就我的情况而言,它似乎导致了我的问题。在 2 月 6 日更新后(与您的问题日期相同):

- My current Wayland session quietly restarted in X.org without comment
- Wayland session disappeared from the GDM3 login options
- Celluloid, a ppa-based fork of gnome-mpv disappeared as the default application for media player, and the default reverted to mpv
- Apt reported a number of graphics libraries "no longer needed and autoremovable" -- INCLUDING gnome-mpv (ppa name alias Celluloid) -- even when Celluloid was explicity installed (NOT as a dependency)

清除高级图形驱动程序并恢复基于 repo 的驱动程序删除了 LLVMpipe 并恢复了我的 Intel HD Graphics 5500(Broadwell GT2)。

sudo ppa-purge -o oibaf -p graphics-drivers
sudo ppa-purge -o xuzhen666 -p gnome-mpv

我还清除了 gnome-mpv ppa,然后重新安装了它。我认为基于 ppa 的高级图形驱动程序可能已将 gnome-mpv 列为依赖项或推荐。

HTH。即使这与您的情况无关,也许它可以帮助其他人。

相关内容