I have two display setup on my desktop rig. Primary LG 4k and secondary Samsung. When computer wakes up from power save mode, all windows from primary are moved to secondary display. It’s pretty annoying X times a day to move 10+ windows back from secondary to primary display and position it where they belong.
It seems that it takes a split second longer for primary display to turn on than secondary, so I guess that OS thinks primary is disconnected and moves all windows to secondary. This is a new LG display I bought few weeks ago and it’s driving me nuts.
I tried changing DP/HDMI ports for both displays, but it didn’t help.
Any idea how can I fix it? I know I can turn power saving off, but I don’t even consider this option.
From BIOS post to GRUB the dGPU aka PEG aka PCIE will have a order to activate the ports like this
VGA > DVI-I > DVI-D > HDMI > Displayport
So, in your case
that DP is Displayport - will activate after
You could eventually try to create a fixed Layout from Nvidia X Server Settings and append that modified information in /etc/X11/mhwd.d/nvidia.conf and also change the "nvidiaXineramaInfoOrder" port in the Section "Screen", but still not sure that will help very much.
This is how i always set it on my end, maybe the example will help you:
Thanks for suggestion. I have actually two configs related to x11:
Also, I have nvidia-settings utility which is writting config to /etc/X11/xorg.conf. I set config using this utility similar to yours. As far as I understand, manjaro uses the latter config file, so I linked /etc/X11/xorg.conf to /etc/X11/mhwd.d/nvidia.conf.
That needs to be removed.
MHWD creates the default config in /etc/X11/mhwd.d/nvidia.conf as i already mentioned. The only symlink required and present should be /etc/X11/xorg.conf.d/90-mhwd.conf that points to the /etc/X11/mhwd.d/nvidia.conf
I also face this problem, would love to see a working solution too.
Related: in the past I faced a similar problem where my entire desktop (panels and backgrounds included) would swap between my two external monitors, but I can’t seem to reproduce that anymore. Unfortunately there was no solution at the time.
Most likely is a KDE Plasma issue on some systems. Is not happening on mine, dual monitor and Nvidia GPU and KDE Plasma 5.24.6, so, till we can identify the exact issue, is better to keep things separate.
Maybe is worth mentioning that I had another 4k display (benq) for like year or so instead of this new LG and I had no similar issues with it. As I wrote in my initial post, this is what I think it’s happening:
It seems that it takes a split second longer for primary display to turn on than secondary, so I guess that OS thinks primary is disconnected and moves all windows to secondary.
Unfortunately, with all the modifications you suggested, no changes at all. Thanks for the effort, I guess I will need to wait for some general kwin fixes. I saw people a lot of users complaining on KDE with broken multi-display support.
which monitor is connected to which output on the gpu? IIRC there’s some prioritized order to them. Note that I’m not talking about the order mentioned in second post of the topic. I’m talking about on HW Firmware level. See for an example: https://www.evga.com/support/faq/FAQdetails.aspx?faqid=59560
Note that it can also change depending on if you are using legacy bios system or UEFI.
Yeah, linux is in general pretty bad with this, but then windows isn’t perfect either.