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

Using MST, only one monitor is able to activate without resetting MST on monitor #8486

Open
alexmaras opened this issue Dec 4, 2024 · 1 comment
Labels
bug Not working as intended

Comments

@alexmaras
Copy link

alexmaras commented Dec 4, 2024

Note: Things are a little weird with the sequence of events I have to go through here. Please let me know how I can clarify things.

Previously I had the same issue as in #8144 - since that was fixed, I've got this new issue and reloading doesn't resolve this one.

Sway Version:
sway version 1.10
Arch package: sway 1:1.10-1

Debug Log:
The debug logs contain two log files - one where I didn't disable and then re-enable MST (sway.log) and one where I did (sway2.log) in case differences between the two helps.

Here are two more debugs:
start and stop sway before an MST reset
start and stop sway after an MST reset
Each of these is just a sway run and exit. The first is from the broken state and exiting while still broken. The second is a full start and stop after the issue has been fixed using the MST reset. Neither of these logs contain the moment of the fix - that's in sway2.log above.

Configuration File:
https://gist.github.com/alexmaras/5fb9057e4d2f24916d4b375e4580dfa2

Description:
When using MST, after swapping from one device to another, sway is only able to activate one monitor. The other monitor remains blank. Resetting MST in the monitor (turning the MST setting off an back on again) fixes the issue.

  1. Use monitor with MST on one computer
  2. Shut down first computer and start second computer
  3. Start sway

At this point, the secondary monitor (the daisy-chained one) works fine. I can use swaymsg output 'DP-6' power toggle to toggle off that monitor, at which point the primary monitor successfully starts up. Toggling the secondary monitor again turns off the primary. Toggling the primary doesn't do anything.

  1. Go into monitor settings
  2. Disable MST
  3. Enable MST

Now both monitors work as expected. From this point, both monitors continue to work, even across reboots. Connecting my other computer and going through the usual process causes the issue to occur again.

My other computer is also running sway (1.8.1) and doesn't have this issue, though it's also using USB-C and not DisplayPort, so I'm really not sure what part of the equation is causing the problem, there's a few too many variables for me to control. I mainly notice this issue because I use the Sway 1.8.1 computer for work during the day, then turn on my desktop PC (sway 1.10) in the evening and have to go through this little process each time.

I've also tested with WLR_DRM_NO_ATOMIC=1 sway as I'm seeing Atomic commit failed: No space left on device on the runs that fail. When I do that, it just stalls and never carries on and I have to kill it from another TTY. TTYs all have both monitors working correctly all the time.

@alexmaras alexmaras added the bug Not working as intended label Dec 4, 2024
@alexmaras alexmaras changed the title DRAFT: Using MST, only one monitor is able to activate Using MST, only one monitor is able to activate Dec 4, 2024
@alexmaras alexmaras changed the title Using MST, only one monitor is able to activate Using MST, only one monitor is able to activate without resetting MST on monitor Dec 4, 2024
@alexmaras
Copy link
Author

alexmaras commented Dec 4, 2024

I followed the steps here too and got the outputs: https://github.com/swaywm/wlroots/wiki/DRM-Debugging

dmesg.log
sway.log

I used 0x19 for the debugging bitmask - let me know if I should be using something else or should be directing this bug report to the wlroots repo. Also let me know if it would be helpful to have the equivalent after or during fixing the issue using the MST off/on I have to do in the monitor settings.

I also bought two new DisplayPort cables - both the same DP8K VESA certified cable - to make sure that that wasn't the issue. The problem is identical with the new cables.

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

1 participant