AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / unix / 问题

问题[amd-graphics](unix)

Martin Hope
Irsu85
Asked: 2021-09-14 23:12:10 +0800 CST

OBS 不适用于 amdgpu-pro 驱动程序,但我需要它来解决

  • 0

我正在使用 Pop OS 21.04,我是一名 youtuber。我倾向于使用 kdenlive 进行视频编辑,但对于某些剪辑,我需要 davinci resolve。Davinci resolve 似乎需要 amdgpu-pro 驱动程序,但这些仅适用于 Ubuntu LTS 版本。但是我看到了一篇关于在 Pop OS 上安装这些的 Blender 文章并且可以解决,但是现在 OBS,我唯一的屏幕捕获程序,由于 gpu 驱动程序而无法工作。我能做些什么?

谢谢 Irsu85

amd-graphics obs-studio
  • 1 个回答
  • 55 Views
Martin Hope
kamino
Asked: 2019-04-23 13:44:37 +0800 CST

为什么我不能将 RX560 GPU 的 xorg.conf.d "OutputClass" 更改为 "Device"

  • 0

我有一个:

联想 Y520-15KIBA CPU Intel i5 与 GPU AMD Radeon RX560

linux 内核 4.20.47-custom(带有新固件 1.175 的 blob) DRM 为 3.27.0

内核 4.17-generic 也在 grub 中

我想知道如何以及是否可以设置一个 10-amdgpu.conf 文件,使我的 amdgpu 不显示错误,例如或至少提供一些优于 1 FPS 的 glxgears 输出:

dmesg | grep amdgpu

[    1.558902] [drm] amdgpu kernel modesetting enabled.
[    1.559324] amdgpu 0000:01:00.0: enabling device (0000 -> 0003)
[    1.598721] amdgpu 0000:01:00.0: VRAM: 2048M 0x000000F400000000 - 0x000000F47FFFFFFF (2048M used)
[    1.598724] amdgpu 0000:01:00.0: GART: 256M 0x000000FF00000000 - 0x000000FF0FFFFFFF
[    1.598959] [drm] amdgpu: 2048M of VRAM memory ready
[    1.598961] [drm] amdgpu: 3072M of GTT memory ready.
[    1.677073] [drm:dc_create [amdgpu]] *ERROR* DC: Number of connectors is zero!
[    1.923112] [drm] Initialized amdgpu 3.27.0 20150101 for 0000:01:00.0 on minor 1
[   12.285945] amdgpu 0000:01:00.0: GPU pci config reset

DRI_PRIME=0 | grep -B

Vendor: Intel Open Source Technology Center (0x8086)
Device: Mesa DRI Intel(R) HD Graphics 630 (Kaby Lake GT2)  (0x591b)
Version: 18.2.8

DRI_PRIME=1 | grep -B

Vendor: X.Org (0x1002)
Device: Radeon RX 560 Series (POLARIS11, DRM 3.27.0, 4.20.17-custom, LLVM 7

测试我的卡

DRI_PRIME=1 glxgears

每秒给我 0.7(原文如此!)帧并导致系统冻结

因此我认为该卡无法正常工作

我在 2019 年 4 月尝试过:

  • LMDE3 上来自 amd ./amdgpu-install + pro 的驱动程序,Linux Mint 19 ubuntu 18.04.1 18.04.2(amd 版本 17.40、18.x 和 19.10)(每次全新安装)
  • mesa ppa oibaf 薄荷 19 Ubunut 18
  • mesa ppa miguel Mint 19(安装失败)和 Ubuntu 18
  • 不知何故,我能够在 ubuntu 18 上运行 mesa 19 并没有对 glxgears 产生影响
  • 自定义内核构建 4.20。5.0.6 5.0.8 5.0.9 LMDE3
  • linux mint19 上的 rocm - 我总是做一个视频组 usermod *见下文
  • 我尝试了各种 xorg.confs
  • 各种 vulkan 安装和 mesa-opencl-icd

*

sudo usermod -a -G 视频 $LOGNAME

标准配置如下:

sudo pico /usr/share/X11/xorg.conf.d/10-amdgpu.conf

Section "OutputClass"
    Identifier "AMDgpu"
    MatchDriver "amdgpu"
    Driver "amdgpu"
EndSection

并且正在锻炼。

Section "Device"

无法正常工作(出现黑屏),我想知道原因。我希望在使用“设备”并将其添加到“屏幕部分”时获得更好的性能

linux amd-graphics
  • 1 个回答
  • 1731 Views
Martin Hope
Hugal31
Asked: 2019-03-28 03:10:14 +0800 CST

无法将 OpenGL ARB_gpu_shader_int64 扩展与 Mesa 一起使用

  • 1

我正在研究 OpenGL 着色器,我需要 uint64_t 类型等...但是,当我执行 glxinfo 时,此扩展不在列表中。

我正在使用 Mesa 18.0.5,并且此页面告诉 17.1.0 的 radeonsi 驱动程序支持该扩展。

我的 GPU 是 AMD Radeon HD 8730M。我正在使用radeon驱动程序,但切换到amdgpu没有帮助。

问题:如何在我的着色器中使用 uint64?通过切换到另一个驱动程序?通过更新 Mesa?还是我的 GPU 太旧了?

我尝试编译的着色器:

#version 450
#extension GL_ARB_gpu_shader5 : enable
#extension GL_ARB_gpu_shader_int64 : enable

void main()
{
  uint64_t foo = 0ul;
}

我有:

0:3(12): warning: extension `GL_ARB_gpu_shader_int64' unsupported in fragment shader
0:7(11): error: syntax error, unexpected NEW_IDENTIFIER, expecting ',' or ';'

glxinfo 输出:

name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile,
    [...]
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.0.5
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
    GL_3DFX_texture_compression_FXT1, GL_AMD_conservative_depth,
    [...]
amd-graphics opengl
  • 1 个回答
  • 412 Views
Martin Hope
Jim
Asked: 2017-12-28 18:33:27 +0800 CST

识别板载 AMD GPU

  • 2

我正在尝试识别板载和专用 GPU 之间的 AMD 显卡。

使用sudo find /sys/devices | grep pp_dpm_mclk我能够找到有关 AMD 显卡的信息。

既然我有了这些信息,我怎么知道哪个是板载 GPU?感谢您的任何建议/指针

(已编辑)这是 lspci | grep VGA

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 98e4 (rev 81)
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev c7)
09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 67df (rev e7)
ubuntu amd-graphics
  • 1 个回答
  • 1629 Views
Martin Hope
Xobtah
Asked: 2017-12-25 10:43:54 +0800 CST

混合笔记本电脑上的独立显卡激活

  • 2

我想在我的笔记本电脑上玩 Steam Linux 游戏。这些游戏在 Windows 分区上运行良好,但在 Debian 的分区上运行缓慢。我搜索了它们在Linux上运行如此缓慢的原因,发现我的第二张显卡没有被使用,所以现在我正在尝试激活它。那篇文章的原因是我努力让它发挥作用,以下是我尝试过的事情:

  • “lspci | grep VGA”告诉我我的第二张卡在这里:

    00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev Ob)
    
    03:00.0 VGA compatible controller: Advanced Micro Devices, Inc [AMD/ATI] Mars [Radeon HD 8730M]
    
  • “xrandr --listproviders”的说法正好相反:

    Providers number : 1
    
    Provider 0: id: 0x47 cap: 0xb, Source Output, Sink Offload crtcs, 3 outputs: 5 associated providers: 0 name:Intel
    
  • "glxinfo | grep "OpenGL 渲染器字符串"" 证实了 xrandr 所说的:

    OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile
    
  • 但是“cat /sys/kernel/debug/vgaswitcheroo/switch”说:

    0:IGD:+:Pwr:0000:00:02.0  
    1:DIS: :DynOff:000:03:00.0  
    2:DIS-Audio: :Off:000:03:00.1  
    

这意味着我的独立显卡在那里,但已关闭,但可以使用。所以我尝试使用 switcheroo 激活它:

  • “回显 > /sys/kernel/debug/vgaswitcheroo/switch”

什么都没发生

  • “回声 DIS > /sys/kernel/debug/vgaswitcheroo/switch”

什么都没发生

  • ... 然后?“回声 DDIS > /sys/kernel/debug/vgaswitcheroo/switch”

什么都没发生

每次我检查开关文件时,它的内容一直保持不变,IGD 通电,DIS DynOff,即使在重新启动后也是如此。哦,有时switcheroo最终会说:“vga_switcheroo client 0 denied switch”当直接在su模式下执行这些命令时,我真的不知道这是什么意思......

  • 因为我没有 xorg.conf 文件,所以我决定在恢复模式下使用 cmd "X -configure" 创建一个。然后我移动了文件:“cp /root/xorg.conf.new /etc/X11/xorg.conf”。但是当我用这个 conf 文件重新启动时,我的计算机卡在 Plymouth 启动屏幕上,我唯一可以访问的是 tty。

  • 在这里,我尝试备份/usr/share/X11/xorg.conf.d/文件夹并将其从原始位置删除,然后重新启动。现在我什至没有卡在普利茅斯启动屏幕上,启动后我被重定向到 tty。

那时,我什至不确定 xorg conf 是否对我原来的问题有任何用处,但我发现我也遇到了问题,因为新生成的 xorg.conf 文件使我的计算机卡在启动屏幕上。

  • 结果lsb_release -a:

    LSB 版本:core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-

    noarch:core-4.0-amd64:core-4.0-noarch:core-4.1-amd64:core-4.1-noarch:security-4.0-amd64:security-4.0-noarch:security-4.1-amd64:security-4.1-noarch 经销商ID:Debian 描述:Debian GNU/Linux 8.10 (jessie) 发行版:8.10 代号:jessie

  • 结果sudo lshw -C display

    *-显示说明:VGA 兼容控制器产品:Haswell-ULT 集成图形控制器供应商:英特尔公司硬件 ID:2 总线信息:pci@0000:00:02.0 版本:0b 位:64 位时钟:33MHz 功能:msi pm vga_controller bus_master cap_list rom 配置:驱动程序=i915 延迟=0 资源:irq:70 内存:d0000000-d03fffff 内存:c0000000-cfffffff 端口:4000(大小=64)

我不知道如何让我的 AMD 显卡在那个 Debian 8“Jessie”操作系统上工作,而且我的 xorg 可能有问题,所以这篇文章几乎是我最后的希望。

更新

现在,在关注这篇文章之后: https ://askubuntu.com/questions/648426/discrete-graphics-always-dynoff

我启动时卡在 Plymouth 启动屏幕上,每 2 百万次我在 tty1 和 Plymout 屏幕 (tty7) 上都会显示此消息:

INFO: task kworker/u16:0:6 blocked for more than 120 seconds.
Tainted: G C 3.16.0-4-amd64 #1
echo 0 > /proc/sys/kernel/hung_task_timeout_secs disables this message.

另外,我无法重新启动。/etc/rc.local 文件版本似乎是原因,因为当我注释掉我添加的行时,它可以正确启动。

积极的一面是,我的离散 GC 现在是 vga_switcheroo 中的 Pwr。但仍然没有列出,当我尝试激活它时xrandr --listproviders仍然收到消息( )vga_switcheroo: client 0 refused switchecho DIS > /sys/kernel/debug/vgaswitcheroo/switch

否则,如果使用 radeon 而不是 fglrx 更复杂,那么安装另一个桌面环境而不是像 Cinnamon 这样的 Gnome 会让我的生活更轻松吗?(知道fglrx与Gnome不兼容)

更新

我做了一堆实验来回答我之前的问题。我尝试安装 fglrx-driver 并使用 LightDM(也适用于 KDM)进行显示管理,并且可以正常工作。现在,我尝试使用 Cinnamon,但它似乎不支持该驱动程序,就像 Gnome 一样。所以我安装了 xfce4,它似乎与驱动程序一起工作正常。

所以,现在我有 KDM 用于登录,xfce 作为桌面环境。我打开我的终端并输入xrandr --listproviders,但仍然只显示 Intel 设备...我使用 创建了一个 xorg.conf 文件aticonfig --initial,然后重新启动,现在我有一个黑屏(LightDM 为黑屏,KDM 为 tty1 重定向)这意味着生成的 xorg.conf 文件不起作用...

我不知道该怎么想,毕竟我的xorg配置可能与它有关!

报告另一个问题: 即使我已经设法使我的计算机与 fglrx 一起使用桌面环境,现在 fglrxinfo、glxinfo 和 glxgears 等命令返回相同的错误:

Xlib: extension "GLX" missing on display ":0.0".

更新

我在 Reddit 上向人们询问了我的问题,似乎我的系统和图形堆栈太旧了,所以,我将备份我的 PC 并将其从 Debian 8 升级到 Debian 9,并希望一切顺利!

amd-graphics hybrid-graphics
  • 1 个回答
  • 2631 Views
Martin Hope
Kiriki
Asked: 2017-12-04 02:28:08 +0800 CST

在 kali 滚动上使用专用 GPU

  • -1

我正在尝试在我的笔记本电脑 Dell Precision 3510 中使用专用 GPU。我集成了 Intel HD Graphics 530 和专用 AMD FirePro W5130M,Kali 将其视为 Radon HD 8830M。我已经尝试在旧系统上安装 AMDGPU-PRO 和 FGLRX。没运气。我尝试使用 Prime 玩具,但使用 DRI_PRIME_1 运行任何东西都会挂起笔记本电脑。我发现 Bumblebee 只适用于英特尔。我尝试使用 Prime 将 W5130M 设置为主要 AMD 卡,但我不知道该怎么做。

如果我跑

xrandr --listproviders

我明白了

Providers: number : 2
Provider 0: id: 0x6f cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 7 associated providers: 0 name:modesetting
Provider 1: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 0 associated providers: 0 name:VERDE @ pci:0000:01:00.0

有什么我想念的吗?甚至可以在linux上使用专用的AMD显卡吗?感谢帮助。

kali-linux amd-graphics
  • 1 个回答
  • 2255 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    模块 i915 可能缺少固件 /lib/firmware/i915/*

    • 3 个回答
  • Marko Smith

    无法获取 jessie backports 存储库

    • 4 个回答
  • Marko Smith

    如何将 GPG 私钥和公钥导出到文件

    • 4 个回答
  • Marko Smith

    我们如何运行存储在变量中的命令?

    • 5 个回答
  • Marko Smith

    如何配置 systemd-resolved 和 systemd-networkd 以使用本地 DNS 服务器来解析本地域和远程 DNS 服务器来解析远程域?

    • 3 个回答
  • Marko Smith

    dist-upgrade 后 Kali Linux 中的 apt-get update 错误 [重复]

    • 2 个回答
  • Marko Smith

    如何从 systemctl 服务日志中查看最新的 x 行

    • 5 个回答
  • Marko Smith

    Nano - 跳转到文件末尾

    • 8 个回答
  • Marko Smith

    grub 错误:你需要先加载内核

    • 4 个回答
  • Marko Smith

    如何下载软件包而不是使用 apt-get 命令安装它?

    • 7 个回答
  • Martin Hope
    user12345 无法获取 jessie backports 存储库 2019-03-27 04:39:28 +0800 CST
  • Martin Hope
    Carl 为什么大多数 systemd 示例都包含 WantedBy=multi-user.target? 2019-03-15 11:49:25 +0800 CST
  • Martin Hope
    rocky 如何将 GPG 私钥和公钥导出到文件 2018-11-16 05:36:15 +0800 CST
  • Martin Hope
    Evan Carroll systemctl 状态显示:“状态:降级” 2018-06-03 18:48:17 +0800 CST
  • Martin Hope
    Tim 我们如何运行存储在变量中的命令? 2018-05-21 04:46:29 +0800 CST
  • Martin Hope
    Ankur S 为什么 /dev/null 是一个文件?为什么它的功能不作为一个简单的程序来实现? 2018-04-17 07:28:04 +0800 CST
  • Martin Hope
    user3191334 如何从 systemctl 服务日志中查看最新的 x 行 2018-02-07 00:14:16 +0800 CST
  • Martin Hope
    Marko Pacak Nano - 跳转到文件末尾 2018-02-01 01:53:03 +0800 CST
  • Martin Hope
    Kidburla 为什么真假这么大? 2018-01-26 12:14:47 +0800 CST
  • Martin Hope
    Christos Baziotis 在一个巨大的(70GB)、一行、文本文件中替换字符串 2017-12-30 06:58:33 +0800 CST

热门标签

linux bash debian shell-script text-processing ubuntu centos shell awk ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve