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

Randomly on a wrong monitor when waking from sleep. #1958

Open
HubKing opened this issue Mar 4, 2023 · 4 comments
Open

Randomly on a wrong monitor when waking from sleep. #1958

HubKing opened this issue Mar 4, 2023 · 4 comments

Comments

@HubKing
Copy link

HubKing commented Mar 4, 2023

It happens randomly but sometimes when waking up from sleep, DtD is displayed on a wrong monitor. I have to open the settings and change "Show the dock on".

I don't know why this happens exactly, but my guess is that sometimes the primary monitor gets initialised a little bit later when waking up from sleep, and at that very moment DtD enumerates the monitor and wrongly thinks that there is only the secondary monitor and displays itself on that monitor.

Can't there be a workaround for this, adding a checkbox like "Always show on the primary monitor", and when the primary monitor changes, DtD automatically moves itself to the primary monitor?

@6XGate
Copy link

6XGate commented Mar 5, 2023

I'm having the same issue. Looking at the DConf settings, the old means to control this has been deprecated and no longer used nor behaves as it use to. The new means is suppose to support a primary value, but it won't stick and just gets transformed to the connection of the primary monitor. This means that when your displays change again, it will move again.

Seems there is something causing it to react to the preferred-monitor-by-connector and transforms it rather than leaving it on the default value. So you can't even reset the monitor settings to default.

@HubKing
Copy link
Author

HubKing commented Mar 5, 2023

I have been changing monitor settings/disabling extensions to figure out the cause of some problem, and it seems now that DtD ALWAYS move to the secondary monitor when waking up from sleep. That is, the bug is always reproducible.

If you want to investigate the cause of this unwanted move, maybe this is a good chance. I don't know where DtD is outputting logs, so I checked journalctl /usr/bin/gnome-shell, but I am not sure sure which lines are from DtD. If you tell me what I should do to find out the cause, please let me know, and I will do those things and report the result.

The part of gnome-shell log that I think may be relevant:

meta_monitor_manager_get_logical_monitor_from_number: assertion '(unsigned int) number < g_list_length
meta_workspace_get_work_area_for_monitor: assertion 'logical_monitor != NULL' failed
meta_display_get_monitor_in_fullscreen: assertion 'monitor >= 0 && monitor < n_logical_monitors' failed

@pled
Copy link

pled commented Mar 14, 2023

Same issue here : always moved to secondary monitor after resume.
Debian bookworm, Gnome Shell 43.3, D2D v79, did not occur before.

@6XGate
Copy link

6XGate commented May 12, 2023

I also want to add this issue affects both Xorg and Wayland.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants