在我的台式机上,VLC 播放器消耗了 16 线程处理器的近 30%,我怀疑我的 AMD GPU 驱动程序配置不正确。之前我注意到最新的 Radeon 驱动程序 19:50 仅安装在 5.0 内核中,因此我降级了内核版本,然后安装了 GPU 驱动程序。但我仍然遇到问题。
我尝试在 VLC 偏好设置中禁用“硬件加速解码”,并注意到 CPU 消耗与启用时相同。因此我可以确认 GPU 未被使用。
当我尝试从终端加载 vlc 时,它显示未找到驱动程序。我试过任何有关如何进一步解决此问题的帮助?我应该重新安装 GPU 驱动程序吗?
rgmani@rgmani:~/jenkins/jenkins_home$ vlc
libGL error: pci id for fd 4: 1002:731f, driver (null)
libGL error: No driver found
libGL error: failed to load driver: (null)
libGL error: pci id for fd 4: 1002:731f, driver (null)
pci id for fd 5: 1002:731f, driver (null)
libGL error: failed to create dri screen
libGL error: failed to load driver: radeonsi
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b)
[0000000000af9510] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
Qt: Session management error: None of the authentication protocols specified are supported
libGL error: pci id for fd 20: 1002:731f, driver (null)
libGL error: No driver found
libGL error: failed to load driver: (null)
libGL error: pci id for fd 20: 1002:731f, driver (null)
pci id for fd 21: 1002:731f, driver (null)
libGL error: failed to create dri screen
libGL error: failed to load driver: radeonsi
[0000000000b8f100] main playlist: playlist is empty
rgmani@rgmani:~/jenkins/jenkins_home$ uname -r
5.0.0-37-generic
rgmani@rgmani:~/jenkins/jenkins_home$ sudo lshw -c video
[sudo] password for rgmani:
*-display
description: VGA compatible controller
product: Advanced Micro Devices, Inc. [AMD/ATI]
vendor: Advanced Micro Devices, Inc. [AMD/ATI]
physical id: 0
bus info: pci@0000:28:00.0
version: c1
width: 64 bits
clock: 33MHz
capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
configuration: driver=amdgpu latency=0
resources: irq:97 memory:e0000000-efffffff memory:f0000000-f01fffff ioport:e000(size=256) memory:fc900000-fc97ffff memory:c0000-dffff
编辑:我安装了 Kodi Player,它使用非常少的 CPU 资源(最多 3%)就可以完美运行。VLC 似乎在识别最近的 AMD Radeon 19:50/Ubuntu 18.04 组合的 OpenGL 驱动程序时存在一些问题。如果有人解决了这个问题,请更新。我会将其标记为答案并修复我的系统。