Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start Sway (Atomic commit failed: Permission denied) #8477

Open
rycwo opened this issue Nov 25, 2024 · 3 comments
Open

Unable to start Sway (Atomic commit failed: Permission denied) #8477

rycwo opened this issue Nov 25, 2024 · 3 comments
Labels
bug Not working as intended

Comments

@rycwo
Copy link

rycwo commented Nov 25, 2024

  • Sway Version: 1.10
  • Debug Logs:

Hello! I'm running Sway on Alpine Linux (Edge) on a Thinkpad X13 Gen 4. Since running a regular system update this morning I have been unable to start Sway.

I typically start the compositor according to the instructions on the Alpine wiki:

dbus-run-session -- sway

And from the VT it just hangs until I exit sway with my configured key combo.

@kennylevinsen highlighted this line from the Sway log on irc:

00:00:00.384 [DEBUG] [wlr] [backend/drm/atomic.c:79] connector eDP-1: Atomic commit failed: Permission denied

Which eventually led me to the DRM debugging page on the old wlroots wiki so I've collected logs for that too.

The issue appears to be non-deterministic as I am very occasionally able to start Sway.


It looks like this may be an issue with any wlroots-based compositor. I tried installing and running River with no success (similar symptoms).

@rycwo rycwo added the bug Not working as intended label Nov 25, 2024
@kennylevinsen
Copy link
Member

The issue appears to be non-deterministic as I am very occasionally able to start Sway.

The main consideration there would be if something else is holding drm master status when sway starts, making seatd unable to hand it out. If this happens, seatd (the daemon) will log the error "Could not make device fd drm master" to stderr with the underlying error code.

If you increase the seatd loglevel (seatd -h debug), you will get some more information about what sway and seatd is trying to do.

@kennylevinsen
Copy link
Member

Your DRM log also contains no errors, which is peculiar.

If you have any logs for what was upgraded, consider trying to revert the packages to figure out where the issue lies.

@rycwo
Copy link
Author

rycwo commented Nov 25, 2024

Appreciate the help with this!

The seatd log is showing exactly the error you were suspecting:

[seatd/seat.c:387] Could not make device fd drm master: Resource busy

But I'm unable to see anything in my processes on login that might be holding drm master status:

ps afx output

If you have any logs for what was upgraded, consider trying to revert the packages to figure out where the issue lies.

To be fair this issue was happening on-and-off for the past couple months (or so?), but I would normally be able to start Sway after a reboot or two so it never pushed me to look deeper into the issue. I tried downgrading to Sway 1.9 (and dependent packages) earlier today and I had the same issue so I don't think it's Sway itself at the very least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Development

No branches or pull requests

2 participants