-
Notifications
You must be signed in to change notification settings - Fork 121
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
Enable xrandr outputs one-by-one, selecting the one with --pos 0x0 first #6
Conversation
Enabling more than one or two outputs at once may result in this error: /usr/bin/xrandr: Configure crtc 1 failed This happens on my Dell Latitude E7440 with three monitors connected. Disabling many outputs at once still seems safe. Output positioning may be ignored by xrandr in some cases. To circumvent this, make sure the output with --pos 0x0 is enabled first.
Enabling two outputs at the same time works for you, right? We could add another Have you checked what happens if your monitors aren't in the correct order in the configuration file? You already have a special handler for the screen at the origin, but I believe (haven't tested though) that all outputs must be enabled in the correct order: What if you position your screens (assuming they all have a width of 1800px) such that screen 1 is at x=0, screen 2 at x=3600 and screen 3 at x=1800, and all outputs are stored in the configuration file in order 1, 2, 3. Does this work? |
Maybe we could merge the outputs in pairs; at least I haven't encountered issues with that, yet. From the tests I made with my horizontal monitor layout, it seems everything will be fine as long as the origin is enabled first. |
Correction: The gap between DP2 and DP3, until eDP1 is enabled, is just an invisible void where the cursor and any dragged windows disappear. |
Thanks! I've merged your changes & added 8429886 to enable the outputs in pairs. |
I just "yaourt -S autorandr-phillipberndt-git" the new code - works like a charm :-) |
Enabling screens two by two will trigger several randr events, so there is a downside doing that. I did use the same workaround for some time, but when switching to the "modeset" driver, the problem went away. Not being able to do so is assumed to be a bug. See: https://bugs.freedesktop.org/show_bug.cgi?id=91446. So, maybe make this behavior optional? Or detect an error and fallback to the "safe" method? |
I agree that it's (obviously) a bug, but it's one many different drivers apparently have. I hence don't think it's a good idea to change the default behaviour. However, I agree that it'd be good to make this optional - that is, add a flag that allows users to disable this feature. I'll open a separate bug for that. |
Enabling more than one or two outputs at once may result in this error:
/usr/bin/xrandr: Configure crtc 1 failed
This happens on my Dell Latitude E7440 with three monitors connected.
Disabling many outputs at once still seems safe.
Output positioning may be ignored by xrandr in some cases.
To circumvent this, make sure the output with --pos 0x0 is enabled first.