-
Notifications
You must be signed in to change notification settings - Fork 4
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
Single xrandr command option #4
Comments
|
I found out about the "disable-then-enable" (or "break-before-make") sequence by running |
Perhaps we could try setting the screen size to it's maximum and then scaling it back to the final size? |
It might be because of "max enabled screens should be lower than n" limitation, either from graphic card or dock. Autorandr also tries to keep at least 1 display always active. So it means when I connect 2 monitors, it won't disable my only (laptop) screen and try to enable all monitors, totals to 3 which might be breaking. It could also be a sizing issue, I am potato on details of X 😶 |
Yeah, that's true that all hardware has a limitation on the number of enabled monitors. I have a video card that can only handle 2 monitors at a time, despite having 4 connectors, so when switching between outputs, I have to be sure that I don't try to enable more than 2. That's why I'm not sure if this is the problem, but the switching could be an issue for your setup. I'm working on a change, that I will push to a branch, that eliminates the "break-then-make" by setting the screen size to something that we know will work and later clamping it back to a smaller size. |
The aforementioned double-resizing seems to work. Note that this is now different from how
where as
|
@seqizz Could you try the |
Sorry for late reply. Didn't help too much, monitors is not switching on. Verbose output after plug&wait 10 secs&unplug:
Config was still same:
|
Hm That's strange indeed. It looks like I need to dump the output set as well. Does the laptop's screen turn off when you plun into the dock? |
Also, something worth noting is that when Single is switched to, it's not changing the screen size. I'll have to include any failures in the log, as it seems that something is going wrong. |
Yes, it does.
Alright, waiting for the update then. I've just run it with -vvvv by the way, if there is another level please ping. |
To my knowlage, there is no further log level. |
Sorry, was working on PBP suspend/resume issues. The new version relies on there being enough virtual screen available to fit both configurations. I added logging for errors.
Mine looks like:
This info will help, as I want to be sure that the maximum there is enough to fit both configs simultaneously. |
Output line from xrandr is:
It acted same with latest changes, here is how it did 👀 :
After plug out / plug-in / wait a while / plug out. |
Since it doesn't report any errors, I am still assuming this is a bug somewhere else. Xrandr/autorandr was also reporting no issues and even print screens are configured correctly while they are off. But really confused how the single-xrandr command is causing it to correctly function. Also, maybe as a small bug: My "Single" configuration gave me some unusable screen space after removing the external monitors. |
That's truely strange. If there was no issue, I would expect that we would see another "Setting Screen Size" line, as your single config probably configures a single monitor. |
Yeah, that's strange. This is probably a knock on effect of the fact that I don't know how to directly query the screen dims. Out of curiosity, does it enable panning? |
Just when I thought I was out of ideas, I found a way to directly query the screen size. Further, I found a few issues with some of the screen size settings. When experimenting with this, I was able to recreate your issue! I think I got it, could you try the |
I didn't actually try long so I am not confident, but I didn't notice panning. But latest main branch seems to solve that problem 👍 Now the laptop screen is same with the real screen size. Yet, the docked monitors still didn't activate, here is the plug - wait - unplug output:
|
The interesting thing is that the mode is different. Does the laptop's screen turn off or change resolution in any way? Honestly, this is all quite disappointing, because I'm out of ideas on what could be happening. It looks to me like the switch back to the builtin display works fine. What does |
After I plug in the external monitors? Laptop's screen turns off.
Correct.
As far as I can grab (while all monitors are switched off after I plug in the monitors), xrandr was reporting normally, like 2 external monitors are active and correctly configured. Thanks for the effort though. Feel free to close this one. I agree, this must be a bug on hardware level. But I am still intrigued why it works with a one-line of xrandr.. |
And for (at least my) last issue: Could you supply an option to issue single
xrandr
command instead of multiple?I know it sounds weird, but some crappy hardware (*cough dell docks *cough) only works that way. I was using an old branch of autorandr, due to this limitation.
Thanks again 🚀
The text was updated successfully, but these errors were encountered: