Bug 2118956 - External monitor cannot be switched to main display.
Summary: External monitor cannot be switched to main display.
Keywords:
Status: CLOSED DUPLICATE of bug 2118152
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-control-center
Version: 37
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: GNOME SIG Unassigned
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: AcceptedBlocker
Depends On:
Blocks: F37FinalBlocker
TreeView+ depends on / blocked
 
Reported: 2022-08-17 08:16 UTC by Lukas Ruzicka
Modified: 2022-09-05 13:34 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-08-30 07:54:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNOME Gitlab GNOME gnome-control-center issues 2028 0 None closed Changing Primary Display no longer possible due to missing apply button 2022-08-30 07:46:07 UTC

Description Lukas Ruzicka 2022-08-17 08:16:20 UTC
## Affected version
     
* Fedora 37 Beta (nightly 20220817)
* Gnome 43.beta
* Wayland.


## Bug summary
I am using a usb-c docking station connection the Lenovo P1 (4th gen) with an external monitor (Iiyama ProLite XUB3293UHSN) and I cannot make the IIyama to act as the main display. In Settings (Gnome Control Center), I can order both screens just fine, placing one before the other and vice versa, but whenever I attempt to make the external display to be main, nothing happens.
There is no error reported on screen, in Abrt, nor in journalctl.
The only hint is a line that appears in journalctl after the Settings are started is this:

---
Aug 17 09:46:21 platypus gnome-shell[2558]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
---

With Gnome 42, there was no such issue seen.

Steps to reproduce

* Connect an external display through a usb-c docking station.
* In settings try to change the order of the screens (works)
* Try making the external monitor to the main display (does not work)

## What happened
See above.

## What did you expect to happen
I expected to be able to my main display to the external monitor.

Also reported upstream: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5767

Comment 1 Fedora Blocker Bugs Application 2022-08-17 08:20:12 UTC
Proposed as a Blocker for 37-final by Fedora user lruzicka using the blocker tracking app because:

 I am proposing this as a final blocker because I believe that this is a basic functionality when working in a multiple display set-up.

Comment 2 Kamil Páral 2022-08-17 09:17:01 UTC
I can reproduce this with:
gnome-control-center-43~beta-1.fc37.x86_64
gnome-shell-43~beta-2.fc37.x86_64
and a libvirt virtual machine (if you edit the xml for Video Virtio and set heads="2", and then connect to it with virt-viewer, you can simulate multiple screens with VMs).

Setting the Primary Display in Settings doesn't have any effect, and there's also no Apply button shown (I assume there should've been one, but isn't).

Lukas, can you please report this upstream and link it?

Comment 3 Lukas Ruzicka 2022-08-18 10:27:01 UTC
Already reported as https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5767.

Comment 4 Tomas Popela 2022-08-19 11:41:17 UTC
(In reply to Lukas Ruzicka from comment #0)
> Aug 17 09:46:21 platypus gnome-shell[2558]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed

This call is inside mutter.

Comment 5 Jonas Ådahl 2022-08-19 12:25:58 UTC
(In reply to Tomas Popela from comment #4)
> (In reply to Lukas Ruzicka from comment #0)
> > Aug 17 09:46:21 platypus gnome-shell[2558]: meta_window_set_stack_position_no_sync: assertion 'window->stack_position >= 0' failed
> 
> This call is inside mutter.

That's a warning about window positioning, and not related to monitor configuration, so likely a red herring.

Comment 6 Adam Williamson 2022-08-22 16:00:20 UTC
+5 in https://pagure.io/fedora-qa/blocker-review/issue/856 , marking accepted.

Kicking back to gnome-shell at least for now per comment 5.

Comment 7 Chris Murphy 2022-08-28 16:49:12 UTC
Same here. Nothing appears in journalctl -f when changing the primary display. I'm  using mutter-43~beta-4.fc37.x86_64

Comment 8 Adam Williamson 2022-08-28 23:03:55 UTC
Oh hey, I thought there must be a bug for this. :D I am also seeing this on a fresh Silverblue install on bare metal.

Comment 9 Tomas Popela 2022-08-30 07:46:07 UTC
This is actually https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2028 and it was fixed upstream.

Comment 10 Tomas Popela 2022-08-30 07:54:08 UTC
And this is actually a duplicate of 2118152 (as per description of https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1440)

*** This bug has been marked as a duplicate of bug 2118152 ***

Comment 11 Kamil Páral 2022-09-05 13:34:57 UTC
I verified that this is fixed with gnome-control-center-43~beta-2.fc37.x86_64


Note You need to log in before you can comment on or make changes to this bug.