Sway fails to start on F45

After upgrade from F44 to F45.

LUKS and login work, but then Sway fails to start from tty on F45.

I am running a custom Sway (minimal).

Fails on F45 and previous F44 kernels.

[wlr] [libseat] [libseat/backend/logind.c.121] Could not take device: Device or resource busy
[wlr] [backend/session/session.c:340] Failed to open device: '/dev/dri/card1': Device or resource busy
[wlr] [backend/backend.c:245] Found 0 GPUs, cannot create backend
[wlr] [backend/backend.c:420] Failed to open any DRM device
[sway/server.c:270] Unable to create backend

I had the same problem installing minimal custom Sway on a new machine, but the F45 Sway Spin worked well.

It’s a consequence of the move to kmscon. You can try the workarounds from here: Modernizing the console with kmscon - #5 by sepp

First thing to try would be prepending kmscon-launch-gui to your launch command, e.g. kmscon-launch-gui sway.

I’m still on Fedora 44 but manually set up kmscon. My workaround was to have tty1 still use the kernel’s console while all the others are kmscon consoles. Not sure how you would set it up like that on 45.

Thank you kindly!

kmscon-launch-gui sway got my Sway up and running.

I will try the workarounds and come back later to edit this post with more results.