Skip to content

Remember display layout and settings #3009

Description

@judokan9

Describe the bug
I am using a three-monitor setup connected via DisplayPort daisy chaining through a docking station.
The laptop is equipped with an Intel Core i7-8550U and an Intel UHD Graphics 620, which supports up to three displays.

In order to use all three external monitors, the internal laptop display must be disabled.

After unplugging the laptop from the dock or rebooting the system, none of the display settings are preserved.
The monitor layout, orientation and scaling configuration are reset every time.
This requires manually reconfiguring the entire display setup after each reboot or reconnect.

Observed issues after reboot or undocking:

  • Monitor orientation (e.g. a portrait/90° rotated monitor) is reset
  • Scaling (e.g. 150%) is lost
  • Primary display assignment changes
  • Monitor positions are mixed up
  • Disabled internal display may be re-enabled

To Reproduce
Steps to reproduce the behavior:

  1. Connect the laptop to a docking station with three external monitors via DisplayPort daisy chaining
  2. Open Settings → Displays
  3. Disable the internal laptop display
  4. Configure the external monitors:
    • Set one monitor to portrait (90° rotation)
    • Apply 150% scaling to the "primary" display
    • Arrange the monitor layout correctly
  5. Reboot the system or unplug the laptop from the docking station
  6. Reconnect the dock (if unplugged) and log back in
  7. Everything is mixed up

Expected behavior
The display configuration (monitor layout, orientation, scaling and disabled internal display) should be persisted and automatically re-applied after rebooting or reconnecting the docking station.

Desktop (please complete the following information):

  • OS: Pop!_OS 24.04 LTS
  • Hardware model: Razer Blade Stealth 13 RZ09-0239x
  • Memory: 16GB
  • Processor: Intel Core i7-8550U
  • GPU: Intel UHD Graphics 620
  • System architecture: x86_64
  • Kernel version: 6.17.9-76061709-generic
  • Desktop environment: COSMIC
  • Windowing system: Wayland

Additional context

~/.local/state/cosmic-comp/outputs.ron
(
    config: {
        [
            (
                connector: "eDP-1",
                make: "Sharp Corporation",
                model: "LQ133Z1JW26",
            ),
        ]: [
            (
                mode: ((3200, 1800), Some(59982)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (0, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
        ],
        [
            (
                connector: "DP-2",
                make: "Dell Inc.",
                model: "DELL U2723QE",
            ),
            (
                connector: "eDP-1",
                make: "Sharp Corporation",
                model: "LQ133Z1JW26",
            ),
        ]: [
            (
                mode: ((3840, 2160), Some(59997)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (1600, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((3200, 1800), Some(59982)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (0, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: true,
            ),
        ],
        [
            (
                connector: "DP-3",
                make: "Dell Inc.",
                model: "DELL U2723QE",
            ),
            (
                connector: "DP-5",
                make: "Dell Inc.",
                model: "DELL U2414H",
            ),
            (
                connector: "DP-7",
                make: "Dell Inc.",
                model: "DELL U2515H",
            ),
            (
                connector: "eDP-1",
                make: "Sharp Corporation",
                model: "LQ133Z1JW26",
            ),
        ]: [
            (
                mode: ((3840, 2160), Some(59997)),
                vrr: r#false,
                scale: 1.5,
                transform: Normal,
                position: (1080, 206),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((1920, 1080), Some(60000)),
                vrr: r#false,
                scale: 1.0,
                transform: _90,
                position: (0, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((2560, 1440), Some(59951)),
                vrr: r#false,
                scale: 1.0,
                transform: Normal,
                position: (3640, 206),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((3200, 1800), Some(59982)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (6400, 0),
                enabled: r#false,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
        ],
        [
            (
                connector: "DP-3",
                make: "Dell Inc.",
                model: "DELL U2723QE",
            ),
            (
                connector: "DP-6",
                make: "Dell Inc.",
                model: "DELL U2414H",
            ),
            (
                connector: "DP-9",
                make: "Dell Inc.",
                model: "DELL U2515H",
            ),
        ]: [
            (
                mode: ((3840, 2160), Some(59997)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (1600, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((1920, 1080), Some(60000)),
                vrr: r#false,
                scale: 1.0,
                transform: Normal,
                position: (6080, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((2560, 1440), Some(59951)),
                vrr: r#true,
                scale: 1.0,
                transform: Normal,
                position: (3520, 0),
                enabled: r#false,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
        ],
        [
            (
                connector: "DP-3",
                make: "Dell Inc.",
                model: "DELL U2723QE",
            ),
            (
                connector: "DP-6",
                make: "Dell Inc.",
                model: "DELL U2414H",
            ),
            (
                connector: "DP-9",
                make: "Dell Inc.",
                model: "DELL U2515H",
            ),
            (
                connector: "eDP-1",
                make: "Sharp Corporation",
                model: "LQ133Z1JW26",
            ),
        ]: [
            (
                mode: ((3840, 2160), Some(59997)),
                vrr: r#false,
                scale: 1.5,
                transform: Normal,
                position: (1080, 249),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((1920, 1080), Some(60000)),
                vrr: r#false,
                scale: 1.0,
                transform: _90,
                position: (0, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((2560, 1440), Some(59951)),
                vrr: r#false,
                scale: 1.0,
                transform: Normal,
                position: (3640, 249),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((3200, 1800), Some(59982)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (0, 0),
                enabled: r#false,
                max_bpc: Some(12),
                xwayland_primary: true,
            ),
        ],
        [
            (
                connector: "DP-3",
                make: "Dell Inc.",
                model: "DELL U2723QE",
            ),
            (
                connector: "eDP-1",
                make: "Sharp Corporation",
                model: "LQ133Z1JW26",
            ),
        ]: [
            (
                mode: ((3840, 2160), Some(59997)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (1600, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((3200, 1800), Some(59982)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (0, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: true,
            ),
        ],
        [
            (
                connector: "DP-3",
                make: "Dell Inc.",
                model: "DELL U2723QE",
            ),
            (
                connector: "DP-6",
                make: "Dell Inc.",
                model: "DELL U2414H",
            ),
            (
                connector: "eDP-1",
                make: "Sharp Corporation",
                model: "LQ133Z1JW26",
            ),
        ]: [
            (
                mode: ((3840, 2160), Some(59997)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (1600, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((1920, 1080), Some(60000)),
                vrr: r#false,
                scale: 1.0,
                transform: Normal,
                position: (3520, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: false,
            ),
            (
                mode: ((3200, 1800), Some(59982)),
                vrr: r#false,
                scale: 2.0,
                transform: Normal,
                position: (0, 0),
                enabled: r#true,
                max_bpc: Some(12),
                xwayland_primary: true,
            ),
        ],
    },

Maybe also related to #2777

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions