You are not logged in.

#1 2021-12-24 05:11:10

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

[SOLVED] Sway - Failed to open any DRM device

Hello, trying to get sway running on a new machine with an AMD RX 6600 XT graphics card. I run into this error whenever trying launch sway from tty.

[wlr] [backend/backend.c:371] Failed to open any DRM device
[sway/server.c:53] unable to create backend

I've followed the  suggested steps at Loading to ensure the amdgpu kernel module is loaded.
And I've enabled early KMS start for amdgpu driver as per this doc, and was sure to regenerate initramfs.
I'm using the AMDGPU driver, but would I be better off using the proprietary AMDGPU PRO driver?
Some log info:

pluto% lsmod | grep amdgpu
amdgpu               6549504  0
gpu_sched              49152  1 amdgpu
ttm                   114688  1 amdgpu
i2c_algo_bit           16384  1 amdgpu
drm_kms_helper        278528  1 amdgpu
drm                   577536  4 gpu_sched,drm_kms_helper,amdgpu,ttm
pluto% sudo dmesg | grep amdgpu

[    5.446622] [drm] amdgpu kernel modesetting enabled.
[    5.446676] amdgpu: Ignoring ACPI CRAT on non-APU system
[    5.446682] amdgpu: Topology: Add CPU node

Last edited by waffle0007 (2021-12-24 22:28:47)

Offline

#2 2021-12-24 09:10:20

seth
Member
Registered: 2012-09-03
Posts: 49,968

Re: [SOLVED] Sway - Failed to open any DRM device

would I be better off using the proprietary AMDGPU PRO driver?

Rather not - it only augments the GL library and is reported to yield inferior performance since quite a while.

Please post a complete system journal ("sudo journalctl -b | curl -F 'f:1=<-' ix.io")

Online

#3 2021-12-24 10:22:25

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

Re: [SOLVED] Sway - Failed to open any DRM device

Thanks for the reply. Here's my journalctl
http://ix.io/3Jk7/

Offline

#4 2021-12-24 10:29:44

seth
Member
Registered: 2012-09-03
Posts: 49,968

Re: [SOLVED] Sway - Failed to open any DRM device

I'm gonna blame "ly" causing a boken session resulting in prohibited access to the drm device.
(iirc there've been plenty of threads itr)
So try to cut out "ly" and start sway from a "regular" console login.

Online

#5 2021-12-24 10:36:29

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

Re: [SOLVED] Sway - Failed to open any DRM device

Unfortunately the result is the same with and without ly. I was initially trying to launch with no display manager, but some forum posts suggested using a display manager to set XDG_RUNTIME_DIR and whatnot, and I've had luck with ly on my other machines running sway.

Offline

#6 2021-12-24 13:34:57

seth
Member
Registered: 2012-09-03
Posts: 49,968

Re: [SOLVED] Sway - Failed to open any DRM device

From a regular login:

getfacl /dev/dri/card0

Online

#7 2021-12-24 18:17:40

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

Re: [SOLVED] Sway - Failed to open any DRM device

That returns

pluto% getfacl /dev/dri/card0
getfacl: /dev/dri/card0: No such file or directory

Offline

#8 2021-12-24 18:40:19

seth
Member
Registered: 2012-09-03
Posts: 49,968

Re: [SOLVED] Sway - Failed to open any DRM device

Revisiting the journal, there's a suspicious lack of amdgpu module messages - what's the output of "lspci -k"?

Online

#9 2021-12-24 19:13:09

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

Re: [SOLVED] Sway - Failed to open any DRM device

Good eye, seems to be lacking a kernel driver/module. Let me try my luck at some other ways of loading it.

0a:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] (rev c1)
	Subsystem: ASUSTeK Computer Inc. Device 05d3

http://ix.io/3Jn0
Edit: Unfortunately, I can't get it loaded. After double checking it's in my mkinitcpio.conf MODULES array, and creating /etc/modprobe.d/amdgpu.conf with

options amdgpu si_support=1
options amdgpu cik_support=1

I've regenerated initramfs once again, and made surer modconf in listed.

Last edited by waffle0007 (2021-12-24 19:57:20)

Offline

#10 2021-12-24 21:00:04

seth
Member
Registered: 2012-09-03
Posts: 49,968

Re: [SOLVED] Sway - Failed to open any DRM device

Navi 23 support is only introduced in 5.11, so simply trying the main kernel should™ do (hopefully…)

Online

#11 2021-12-24 22:28:16

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

Re: [SOLVED] Sway - Failed to open any DRM device

That was it! Thank you so much and happy holidays smile

Offline

Board footer

Powered by FluxBB