You are not logged in.

#1 2024-05-27 18:48:37

ilia21
Member
Registered: 2024-04-15
Posts: 45

[SOLVED] SDDM Black screen with cursor after installing opencl

Hello! I wanted to use Davinci Resolve to edit a video, but it won't let me use my GPU. After a quick search I found out that I need to install openCL. I installed the rocm-opencl-runtime package. The whole desktop started doing weird stuff and I just rebooted. Now all I get is a black screen with a cursor. Switching to tty, joutnalctl revealed the following error:

sddm-greeter-qt6[3762]: Failed to initialize graphics backend for OpenGL 

I found this thread: https://bbs.archlinux.org/viewtopic.php?id=294566 but it didn't help because I don't have *-git packages for mesa or llvm.
Any ideas what can I do to solve this? Thanks

Last edited by ilia21 (2024-05-28 06:16:28)

Offline

#2 2024-05-27 18:55:53

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,583

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

That shouldn't be able have that effect... Post your /var/log/pacman.log of what you actually installed, and

sudo journalctl -b 
cat /var/log/Xorg.0.log

https://wiki.archlinux.org/title/List_o … n_services

Offline

#3 2024-05-27 19:09:17

ilia21
Member
Registered: 2024-04-15
Posts: 45

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

Thanks for your reply!
sudo journalctl -b https://0x0.st/XNsX.txt
/var/log/pacman.log https://0x0.st/XNs8.txt
cat /var/log/Xorg.0.log https://0x0.st/XNsK.txt

Offline

#4 2024-05-27 19:54:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,583

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

There are some experiments with the proprietary OGL driver, did you set up the progl call somewhere or so? Maybe throw in the output of

printenv
eglinfo -B

Offline

#5 2024-05-27 20:06:20

ilia21
Member
Registered: 2024-04-15
Posts: 45

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

I had a problem with Minecraft crashing where radeonsi_dri would show up in core dump so I did something with proprietary driver and it fixed the issue (don't remember what exactly) (https://github.com/IrisShaders/Iris/issues/778)
printenv https://0x0.st/XNsJ.txt
eglinfo -B https://0x0.st/H5yV.txt
eglinfo -B also prints the following text (may be inaccurate since I have to manully type it)

libEGL warning: MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: undefined symbol: amdgpu_cs_ctx_stable_pstate (search paths /isr/lib/dri, suffix _dri)
libEGL warning: MESA-LOADER: failed to open swrast: /usr/lib/dri/sawrt_dri.so: undefined symbol: amdgpu_cs_ctx_stable_pstate (search paths /isr/lib/dri, suffix _dri)
libEGL warning: MESA-LOADER: failed to open zink: /usr/lib/dri/zink_dri.so: undefined symbol: amdgpu_cs_ctx_stable_pstate (search paths /isr/lib/dri, suffix _dri)

Offline

#6 2024-05-27 20:19:10

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,583

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

You broke your LIBGL_DRIVERS_PATH environment somewhere, sadly not visible in the printenv, but that should not read /isr/lib/dri but /usr/lib/dri and generally best not set at all if you're not debugging something specific.

The Minecraft bug you're linking should be long fixed and likely not be necessary anymore to move to progl for that

Or on second guess likely not using the correct GL loader anymore...

ls -l /usr/lib/libGL*
pacman -Qo /usr/lib/libGL*
pacman -Qkk mesa libglvnd

Last edited by V1del (2024-05-27 20:37:07)

Offline

#7 2024-05-27 20:36:23

ilia21
Member
Registered: 2024-04-15
Posts: 45

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

I'm so sorry, it is /usr/lib/dri, I misstyped it.
Also I found a way to upload entire output of

eglinfo -B

with cat and &>
https://0x0.st/XNs5.txt
Once again thank you for your time!

Offline

#8 2024-05-27 20:38:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,583

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

Yeah I'm starting to doubt that as well see my edit

Offline

#9 2024-05-27 20:46:10

ilia21
Member
Registered: 2024-04-15
Posts: 45

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

Output of all commands in one (I don't really want to pollute the file hosting service with one-line outputs like pacman -Qo)
https://0x0.st/XNsF.txt

Offline

#10 2024-05-27 21:37:55

seth
Member
Registered: 2012-09-03
Posts: 66,263

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

pacman -Qo /usr/lib/libGL*
zsh: no matches found: /usr/lib/openGL*

Are you manually transcribing this??

[    10.356] (II) LoadModule: "radeon"
[    10.356] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
…
[    10.529] (II) UnloadModule: "radeon"
[    10.529] (II) Unloading radeon
…
[    10.533] (II) AIGLX: Screen 0 is not DRI2 capable
[    10.541] (EE) AIGLX error: dlopen of /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: undefined symbol: amdgpu_cs_ctx_stable_pstate)
[    10.541] (EE) AIGLX error: unable to load driver swrast
[    10.541] (EE) GLX: could not load software renderer

You've a NAVI10 chip, remove xf86-video-ati. In fact remove all xf86-video-* packages.

ldd /usr/lib/dri/swrast_dri.so

Offline

#11 2024-05-27 21:50:45

ilia21
Member
Registered: 2024-04-15
Posts: 45

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

Hello, thank you for your reply!

Are you manually transcribing this??

My bad. I misstyped it and got "451 Unavailable for legal reasons" something clicked in my brain and for some reason i typed openGL instead of libGL. I'm sorry for wasting your time, here's the correct output
https://0x0.st/XNzu.txt

You've a NAVI10 chip, remove xf86-video-ati. In fact remove all xf86-video-* packages

Done
output of ldd /usr/lib/dri/swrast_dri.so
https://0x0.st/XNzm.txt

Offline

#12 2024-05-27 21:57:36

seth
Member
Registered: 2012-09-03
Posts: 66,263

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

You didn't waste any time but maybe yours, I just wanted to know how reliable any posted information is (humans fuck up. I typo A LOT) and tell to save some time by getting us more reliable information wink

readelf -sW /usr/lib/libdrm_amdgpu.so* | grep amdgpu_cs_ctx_stable_pstate
pacman -Qo /usr/lib/libdrm_amdgpu.so*
pacman -Qikk libdrm

Offline

#13 2024-05-27 22:05:20

ilia21
Member
Registered: 2024-04-15
Posts: 45

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

Nice to hear that! Here's an output of all commands (this time without manual typing)
http://0x0.st/XNzj.txt

Offline

#14 2024-05-27 22:26:11

seth
Member
Registered: 2012-09-03
Posts: 66,263

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

warning: libdrm: /usr/lib/libdrm_amdgpu.so.1 (Symlink path mismatch)
warning: libdrm: /usr/lib/libdrm_amdgpu.so.1 (Modification time mismatch)
stat /usr/lib/libdrm_amdgpu.so.1

It's supposed to point at /usr/lib/libdrm_amdgpu.so.1.0.0

Offline

#15 2024-05-27 22:57:31

ilia21
Member
Registered: 2024-04-15
Posts: 45

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

https://0x0.st/XNi-.txt
Looks like it is pointing to proprietary driver, if I understand correctly I need to link libdrm_amdgpu.so.1 -> libdrm_amdgpu.so.1.0.0 (it exists) to solve my problem?

Last edited by ilia21 (2024-05-27 23:00:16)

Offline

#16 2024-05-28 05:59:58

seth
Member
Registered: 2012-09-03
Posts: 66,263

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

Yes.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#17 2024-05-28 07:33:29

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,583

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

Nice, can't believe I forgot about ldd(tree) for wonked symbol resolving.

Offline

#18 2024-05-28 14:41:45

seth
Member
Registered: 2012-09-03
Posts: 66,263

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

This actually didn't pan out - the correct object is resolved, but the object is a symlink and that told me that "yeah the amdgpupro thing just probably re-bent the link target and oc. doesn't clean upa afterwards roll"

Offline

#19 2024-05-28 15:26:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,583

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

Wouldn't lddtree at least dig deep enough to see that the wrong lib was getting resolved? NotonmyArch would test some stuff myself otherwise

Last edited by V1del (2024-05-28 15:27:17)

Offline

#20 2024-05-28 15:52:59

seth
Member
Registered: 2012-09-03
Posts: 66,263

Re: [SOLVED] SDDM Black screen with cursor after installing opencl

No, stops at the object (w/o realpath invocation) and I can't see anything in the help output that would suggest there's such feature

lddtree /usr/lib/dri/swrast_dri.so | awk -F ' => ' 'NR<2{print $0}; NR>1{printf $1" ===> "; system("realpath "$2)}'

Offline

Board footer

Powered by FluxBB