-
Notifications
You must be signed in to change notification settings - Fork 733
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
Screen Lock reorders windows to hardware primary display in dual screen on returning #5487
Comments
Is happening when the screen is just locked, or after maybe waking from suspend? (if you lock the screen, then immediately unlock it, does it happen?) I just want to be as clear as possible about the condition where it occurs. |
I have a similar setup (4K display over DisplayPort + FHD display over HDMI) and I think I know what the reason for this problem is. When I started using my 4K display, I had the same issue that all windows were all on one display (I don't remember if it was the primary or secondary one) when I woke my computer from idle mode (with switched off displays). It turned out my 4K display stopped reporting as being connected as soon as it entered the standby mode, and when it woke up it was recognized again. Since Cinnamon automatically adapts to new display layouts and the 4K display was "gone" at one point, it moved all windows to the remaining FHD display. @grizzlyfred, when you were on Mint 17.3, did you already have the 4K display? In any case, I could circumvent the issue by disabling Cinnamon's automatic adaption altogether: |
I try to sum up what I found out (untested yet, but now obvious - afraid to log out to have to setup all again. @mtwebster It happens always in normal screen lock mode (I do not use suspend, it has been shaky for a decade and I do not experiment / tinker with it any more) But I think the flaw was as follows - also refer to nvidia-x-server-settings-lost-on-every-reboot
Note: |
Tested now the following:
So I figure there is a "usability" issue as NVIDIA proprietary driver settings and cinnamon built-in config is not synchronized (compare to windows, where you usually have vendor-specific tabs added to the display config (not sure how that would look know 8.x and 10 though, lost track after 7...). @Feuerfuchs: I refrained from disabling xrandr automatic adaption for now. Note: the smaller cursor and so on is also reflected in a smaller (in absoulte pixel count) login box at the lock screen. There could also be the fact, that the 1.4 font scaling setting is not honored at the lock screen and for some reason, virtual box had decided before that doubling everything and running with "2k" including the lock screen was good enough... Tiny note: |
Mostly works stable after some days of testing. Seldomly the login screen is back to the FHD secondary disply, but fortunately no windows are reordered. |
I've just suddenly (today) noticed this behaviour on my system. Relevant details are:
I'm going to reboot with an older kernel to see if the problem goes away. |
After rebooting with the older kernel (4.8.6-201), the problem has not been seen. This would indicate that a change to the graphics driver in kernel-4.8.7 is strongly implicated in this problem. From Cinnamon's "System Info" page, my graphics hardware is: AMD/ATI Cape Verde XT [Radeon HD 7770/8760/R7 250X]](prog-if 00 [VGA controller]) Please note that I made a mistake (since fixed) in my original comment and I have Cinnamon 3.0.7 installed (not 3.0.2) but the date of installation was correct. Is there any other information I can provide that would be of help? |
I've just upgraded to kernel-4.8.8 and the problem seems (only a few minutes running, though) to have gone away. If it comes back I'll report it again. |
It's back but there is a twist. When I tested by locking/unlocking the screen it didn't occur but when I left the machine unused for a while and it turned off the screens (without locking) the problem occurred again. This is with the 4.8.8 kernel. I'm going to switch back to 4.8.6. |
It seems to be the case that Cinnamon isn't turning the monitors off when I'm using 4.8.6 kernel (just locking them) which could be why the problem doesn't occur there. |
After another half day unattended with kernel 4.8.6 Cinnamon still hasn't turned the screens off but locking the screens doesn't cause the moving windows problem. So both 4.8.6 and 4.8.7/8 are causing problems for Cinnamon albeit different ones. |
Went to kernel-4.8.8 and did: dconf write /org/cinnamon/settings-daemon/plugins/xrandr/active false which fixed the problem of the migrating windows. However, a new problem has arisen in that after the system comes back from "monitors off" the sound (which comes via the video card) no longer works. Cinnamon can see the sound driver in the "settings" tool and it is selected as sound system to be used but nothing comes out of the speakers. Tried kernel 4.8.7 and same problem. Problem does not exist with kernel 4.8.6 but with that kernel Cinnamon seems unable to turn the monitors off. |
I've installed a second monitor just today and this has been happening to me all the day, but it moves them to the secondary monitor instead. I've been out and when I came back and resumed my computer all windows where moved to the secondary monitor. Also, new windows opened in there, even though they where launched from the primary one and the mouse was there. Now I lock it and nothing happens. I suspend it and nothing happens. I even let it turn off the screen by the power timeout but nothing. I can't reproduce anything again, but all the day happening. |
I too see the bug "uncommanded move of all windows to a single monitor on a two monitor setup". OS: Linux mint 18.1 with kernel-4.4.0-53 the bug only happens after leaving the computer (e.g. for 10 minutes) but seems to be intermittent. I have tried disabling as many screensaver and suspend settings as I could find, but without effecting the bug. |
make that "Linux Mint Cinnamon 18.1". |
Bug still exists in 18.1. At my work I currently use three monitors: laptop and two external screens (DP and HDMI). The windows on the HDMI monitor get moved to the laptop screen, but the windows on the DP monitor stay in place. Intel HD Graphics 620. It doesn't happen always, it seems to happen only when the screen turns black, not when I manually lock & immediately unlock it with Ctrl-Alt-L. |
Hello, I'm using cinnamon 3.6 under ArchLinux. My Laptop have an intel card for the internal display and a nvidia card for the externals. This workaround doesn't work for me: It seems that cinnamon is just to fast in recognizing all monitors. So if the external monitor needs to long to wake up, the described behaviour appears. fin swimmer |
Unfortunately, I had to switch to single monitor setup for now (old one broken) so I cannot update. As soon as dualhead is on the table again, I'll keep you posted. |
I am using Ubuntu Trusty with Cinnamon 2.8.8. My computer has an Intel i3-3220 video with a TV on HDMI3 and a monitor on DP1, both are Full HD, monitor is primary screen. This workaround does work for me: |
4K monitor on HDMI, 2K monitor on DVI. Mint 17.3 did not have this issue. 18.1 does. 17.3 has the "windows being moved to single display instead of saved in location" when the 4K is turned off. My workaround: keep the nvidia-settings application running... however I still have to rearrange the windows back to where they were. I have the settings saved in both the user and system wide X settings but that does not make a difference. |
I have tried dconf write /org/cinnamon/settings-daemon/plugins/xrandr/active false but it doesn't fix anything, Cinnamon 18 and 19. This is super annoying. |
This may be a separate but related bug but now instead of jus re-ordering
the windows the display mode goes to mirrored when the displays are powered
off then turned back on. Don't know which is more annoying.
…On Mon, Jul 9, 2018, 6:46 PM Pino Silvaggio ***@***.***> wrote:
I have tried dconf write
/org/cinnamon/settings-daemon/plugins/xrandr/active false but it doesn't
fix anything, Cinnamon 18 and 19.
This is super annoying.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5487 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ALT632jJ_MPOHhTD1Nqnrg_pk-B781Whks5uE-tEgaJpZM4JVh5Q>
.
|
Yeah that's not going to work for all, specially if you need to rotate or position your screens (nvidia-settings might help). However, you have 2 choices. Either use another xrandr client like lxrandr or simply edit cinnamon-settings-daemon-xrandr.desktop (.config/autostart) and add --exit-time:
|
I have also been affected by this bug for many versions. It happens when screens wake up (no suspend needed, just screens off). I guess this is due to the main screen being slower at waking up than the other one, and cinnamon does not wait long enough. I tried many combinations, swapping ports, using HDMI vs DisplayPort, none worked: windows are always moved to the same screen. If this work with a timeout, maybe just make it somehow configurable ? Some info:
|
Actually, it seems to me like a more widespread problem now in 2018, because I have seen the same happening on android devices (revealing what the user sees for a short time before asking e.g. the swipe code. (Meaning: no correct saving of the user screen and blackening it prior to lock) |
Hey everyone. Still no solution? This bug irritates me even in Cinnamon 4 of Linux Mint 19.1. |
I have the same problem on Linux Mint 19.1 with two monitors. I found a workaround on another blog. It looks like the problem comes with power management: when DPMS is active monitors are turned off after a period of inactivity. In this case the system thinks there is no monitor plugged and when reactivating, windows move to the first screen that powers on (I suppose). |
Years later it still occurs! Mint 17, 18, and 19. Really annoying |
Still an issue under 19.2, with kernel 4.15.0-58-generic x86_64 |
Same here, |
I have been having a similar problem for a year or so. I have dual monitors: FHD as primary on HDMI and 4K as secondary on Display Port. I let the monitors sleep after about 10 minutes. When waking up, all windows move from secondary to primary monitor. Both monitors are plugged into an nVidida GeForce GTX 1080. Today I accidentally fixed the issue for my setup. My secondary 4K monitor is a Samsung, Model Code LU28E510DS/ZA, Version PA01. I went into the settings on the monitor (not through the OS) and changed I had previously tried the following suggestion without success (reverted the setting after it didn't make any difference):
My operating system is:
The kernel I am using is
I hope that helps someone. |
I'm having this issue, it is really annoying. In my setup I have workspaces enabled only in main monitor. The DisplayPort monitor is set as primary, but the windows are all moved to the HDMI one when computer wakes up. |
Having this issue now again. System info: GPU: NVIDIA Corporation GM107GL [Quadro K1200] Dual monitors, and the newer 4k monitor seems to take longer to wake up than the older 27" monitor, so all windows go to the older 27" monitor (which is the secondary monitor). |
Happening to me too. for a few years.... i'm on the newest mint and the newest cinnnamon. two identical samsung monitors. one on hdmi, one on display port. both on nvidia card. Monitors: 2x Samsung U28E510 (reset to factory settings) Distributor ID: LinuxMint Cinnamon 4.4.8 Kernel: 5.3.0-28-generic #30~18.04.1-Ubuntu SMP Fri Jan 17 06:14:09 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Nvidia GeForce GTX 750Ti i tried "dconf write /org/cinnamon/settings-daemon/plugins/xrandr/active false", didn't work so i set it back. finally i went to power management, set "Turn off screen when inactive" to NEVER, not what i want, but it works for now. |
Just to chime in here, it looks like this issue possibly spans DEs as well. I'm experiencing something similar with a triple monitor setup on Fedora 31, Xfce 4.14. It is possible that this is an Xorg bug? Here is what seems to be a relevant report for KDE on Ubuntu. |
I have this 4 year old problem on wayland too (had it on xorg before that). The solution seems to be to just switch to a WM (i3, sway, etc). |
Just to be different, this is an issue for me on Mint 19.3 Mate simply by plugging in an HDMI cable connected to a powered off ASUS 27" external monitor. |
This is also an issue for me on Fedora 32 with Cinnamon. Just changed my graphics card to Radeon 550, attached to two monitors by DVI and HDMI and this is occurring when I suspend the system and turn off the monitors (which I do a lot - anything from 5-10 times a day), all the windows are then concentrated on one of the screens (the designated "primary"), when I unsuspend. It did not happen with my previous graphics card (Radeon R7) connected by VGA and DVI to the monitors. I presume the new card is detecting the turn off and reporting back, causing Cinnamon/Mutter(?) to adjust the displays. I really "just" need some way of suppressing that activity in whatever is doing it! If someone could point me in the right direction I could have a look at the source, but I need some initial direction. |
Same issue here with Fedora 31 and Cinnamon. My setup is 2 QHD monitors connected via mini display port daisy chain |
I have this issue with Linux Mint 20 Cinnamon. 2 monitor setup, 1 HDMI FHD and 1 Asus VG27AQ connected via DP. My (crude) understanding is that in my case, the core issue is DP Hot Plug Detect related. When the Asus monitor goes to sleep, it also immediately goes into "deep sleep", from the PC point of view it's physically disconnected. It's unclear to me if there is a well defined behavior in the event the monitor is connected again, but in most instances (Cinnamon, Windows 10, etc) it appears that the behavior is to move windows to monitors which are still connected / first to reconnect, in my case the HDMI monitor, and not update position when the DP monitor reconnects (later). There seem to be a few recipes to work around this issue, with caveats. I'd be thankful if this can be addressed at Cinnamon level with something similar to Persistent Windows behavior. |
how has this bug, which has persisted across several versions of Mint, and which appears to be very frustratingly widespread, lingered for FOUR YEARS without even anyone being assigned to the issue? Come on. |
SOLVED?????? This may be the fix for at least a lot of this. UPDATE: it's been three days now and this fix is still working. I think this is SOLVED I did this. Edit this file /etc/xdg/autostart/cinnamon-settings-daemon-xrandr.desktop I suspect that what may possibly matter here is that there are two things going on that happen at different times. I suspect that there is a sleep issue-- one monitor may turn off later than the other after video signal shuts off. And then there may be a wake time lag in the monitors responding to the video card. It may be that this command fixes the first of these. I wonder if there is a related command that might look like --enter-time 1 ??? |
@cem2 unfortunately setting "Exec=/usr/lib/cinnamon-settings-daemon/csd-xrandr --exit-time 1" will kill my session. If my screen goes to sleep, there is no way to wake it up again. I had to force poweroff my machine and boot again. After removing "--exit-time 1" screen wakeup works again as expected. OS: Fedora 32 |
@cems2 your solution worked for me. |
Before the |
Hi, I have the same issue, I am using Debian testing (bookworm). Regards |
Seems that #5619 is related. |
@FStefanni |
Hi, yes, #5619 is related for sure. I still do not think that making a daemon to exit is good, since we are going to loose its functionalities... Since it affects different versions of Debian, I am wondering if it is a cinnamon component bug, or of a third-party software. Even if this is not a critical functionality bug, this is very annoying and haveily damages the usability and the user experience. Regards |
Also of note this is an issue for my System but not my wife's. We both run Linux Mint Cinnamon 20.3 x64 with all updates. But my system has a AMD GPU 5700XT, and she has a Nvidia 2070 Super. Both of us have she same monitors, Sceptre Monitors. Update: the wmsavior script did not work. |
Adding "--exit-time=5" to xrandr in the startup applications seems to have fixed the issue for now. |
I am afraid this no longer works for Fedora 37, it has worked consistently for 34,35 and 36, but the "/etc/xdg/autostart/cinnamon-settings-daemon-xrandr.desktop" file no longer exists. anyone got any ideas? I've been unable to find another instance of the xrandr program being run. |
Update on my problem 'with Fedora 37. Actually the problem seem to be now that tasks left on the 2nd Workspace end up on the 1st workspace after a suspend. This may well be a seperate bug? |
I have a FHD and a 4K Monitor connected to an NVIDA-proprietary driven card.
FHD ist connected with DVI and 4K is connected with Display Port.
From the BIOS point of view, the FHD Display is the primary display, but I set the 4K display within Cinnamon 3 and within NVDIA settings as the primary display.
In both Mint 18 and Manjaro-Cinnamon, after the screen saver / lock has been activated and then I return to my session by re-entering the password, open windows are moved from the 4K ("virtual primary") desktop to the FHD ("virtual secondary") desktop.
I expected to find all windows at their original place - as is the case with long-used Mint 17.3.
The text was updated successfully, but these errors were encountered: