linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.55k stars 742 forks source link

[MultiMonitor] Cannot accept screenlayout if monitors are not in line #11793

Open konsultaner opened 1 year ago

konsultaner commented 1 year ago

Distribution

Mint 21.2

Package version

5.8.4

Graphics hardware in use

No response

Frequency

Always

Bug description

https://github.com/linuxmint/cinnamon/assets/2699538/e4ba4d54-91eb-4bae-962e-8e1e3ab4d98e

What basically happens is, that if the monitors are not in line, the screens black out. I tried it with only one extra monitor, to have it above the other. That worked well. It is probably good to know that my main monitor is on 200% and the others on 100%

Steps to reproduce

Attatch 2 monitors to a laptop via daisy chaining. and try to align them as seen in the video:

 ┌──────────────────────────────┐ ┌─────────────────────────────────┐
 │                              │ │                                 │
 │                              │ │                                 │
 │                              │ │                                 │
 │                              │ │                                 │
 │                              │ │                                 │
 │                              │ │                                 │
 │                              │ │                                 │
 └──────────────────────────────┘ │                                 │
                                  │                                 │
                                  └─────────────────────────────────┘
                                  ┌───────────────────────┐
                                  │                       │
                                  │                       │
                                  │                       │
                                  │                       │
                                  │                       │
                                  │                       │
                                  │                       │
                                  └───────────────────────┘

Expected behavior

It should be possible to have them aligned as I like

Additional information

System: Kernel: 5.15.0-76-generic x86_64 bits: 64 compiler: gcc v: 11.3.0 Desktop: Cinnamon 5.8.4 tk: GTK 3.24.33 wm: muffin dm: LightDM Distro: Linux Mint 21.2 Victoria base: Ubuntu 22.04 jammy Machine: Type: Laptop System: Dell product: XPS 17 9710 v: N/A serial: Chassis: type: 10 serial: Mobo: Dell model: 012MMP v: A00 serial: UEFI: Dell v: 1.20.1 date: 05/10/2023 Battery: ID-1: BAT0 charge: 40.5 Wh (58.4%) condition: 69.3/95.1 Wh (72.9%) volts: 12.4 min: 11.4 model: SMP DELL 01RR3YM serial: status: Charging CPU: Info: 8-core model: 11th Gen Intel Core i9-11980HK bits: 64 type: MT MCP arch: Tiger Lake rev: 1 cache: L1: 640 KiB L2: 10 MiB L3: 24 MiB Speed (MHz): avg: 951 high: 1090 min/max: 800/5000:4900 cores: 1: 932 2: 892 3: 957 4: 1019 5: 838 6: 933 7: 1074 8: 792 9: 938 10: 1090 11: 785 12: 1061 13: 1063 14: 1077 15: 968 16: 801 bogomips: 105676 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx Graphics: Device-1: Intel TigerLake-H GT1 [UHD Graphics] vendor: Dell driver: i915 v: kernel ports: active: DP-5,DP-6,eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 0000:00:02.0 chip-ID: 8086:9a60 Device-2: NVIDIA GA106M [GeForce RTX 3060 Mobile / Max-Q] vendor: Dell driver: N/A bus-ID: 0000:01:00.0 chip-ID: 10de:2520 Device-3: Microdia Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 3-11:5 chip-ID: 0c45:672e Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting unloaded: fbdev,vesa gpu: i915 display-ID: :0 screens: 1 Screen-1: 0 s-res: 12800x2880 s-dpi: 128 Monitor-1: DP-3-1 pos: primary,left res: 3840x2400 dpi: 188 diag: 611mm (24.1") Monitor-2: DP-3-8 pos: center res: 5120x2880 dpi: 235 diag: 634mm (25") Monitor-3: eDP-1 pos: primary,right model: Sharp res: 3840x2400 dpi: 266 diag: 432mm (17") OpenGL: renderer: Mesa Intel UHD Graphics (TGL GT1) v: 4.6 Mesa 22.2.5-0ubuntu0.1~22.04.3 direct render: Yes Audio: Device-1: Intel Tiger Lake-H HD Audio vendor: Dell driver: sof-audio-pci-intel-tgl bus-ID: 0000:00:1f.3 chip-ID: 8086:43c8 Device-2: NVIDIA vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 0000:01:00.1 chip-ID: 10de:228e Sound Server-1: ALSA v: k5.15.0-76-generic running: yes Sound Server-2: PulseAudio v: 15.99.1 running: yes Sound Server-3: PipeWire v: 0.3.48 running: yes Network: Device-1: Intel Tiger Lake PCH CNVi WiFi vendor: Rivet Networks driver: iwlwifi v: kernel bus-ID: 0000:00:14.3 chip-ID: 8086:43f0 IF: wlp0s20f3 state: up mac: IF-ID-1: virbr0 state: down mac: IF-ID-2: wg0 state: unknown speed: N/A duplex: N/A mac: N/A Bluetooth: Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-14:7 chip-ID: 8087:0026 Report: hciconfig ID: hci0 rfk-id: 0 state: up address: bt-v: 3.0 lmp-v: 5.2 sub-v: 237e RAID: Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd v: 0.6 bus-ID: 0000:00:0e.0 chip-ID: 8086:9a0b Drives: Local Storage: total: 3.68 TiB used: 1.53 TiB (41.7%) ID-1: /dev/nvme0n1 vendor: Samsung model: PM9A1 NVMe 2048GB size: 1.86 TiB speed: 63.2 Gb/s lanes: 4 serial: temp: 35.9 C ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO Plus 2TB size: 1.82 TiB speed: 31.6 Gb/s lanes: 4 serial: temp: 39.9 C Partition: ID-1: / size: 1.79 TiB used: 51.11 GiB (2.8%) fs: ext2 dev: /dev/dm-0 mapped: nvme1n1p2_crypt ID-2: /boot size: 445.9 MiB used: 233.3 MiB (52.3%) fs: ext2 dev: /dev/nvme1n1p1 ID-3: /boot/efi size: 146 MiB used: 113.4 MiB (77.7%) fs: vfat dev: /dev/nvme0n1p1 Swap: ID-1: swap-1 type: file size: 2 GiB used: 0 KiB (0.0%) priority: -2 file: /swapfile Sensors: System Temperatures: cpu: 59.0 C mobo: N/A Fan Speeds (RPM): N/A Repos: Packages: 2536 apt: 2523 flatpak: 13 No active apt repos in: /etc/apt/sources.list Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 1: deb http: //packages.linuxmint.com victoria main upstream import backport 2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse 3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse 4: deb http: //archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse 5: deb http: //security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse Active apt repos in: /etc/apt/sources.list.d/onedrive.list 1: deb [arch=amd64 signed-by=/usr/share/keyrings/obs-onedrive.gpg] https: //download.opensuse.org/repositories/home:/npreining:/debian-ubuntu-onedrive/xUbuntu_22.04/ ./ Info: Processes: 588 Uptime: 22h 6m Memory: 62.52 GiB used: 11.83 GiB (18.9%) Init: systemd v: 249 runlevel: 5 Compilers: gcc: 11.3.0 alt: 11/12 clang: 14.0.0-1ubuntu1 Client: Cinnamon v: 5.8.4 inxi: 3.3.13

mtwebster commented 1 year ago

I can't reproduce this, though only my primary is hidpi, and they're individually attached to the graphics card.

Are you seeing any errors in ~/.xsession-errors during the switch?

Also, does this work if you adjust the actual resolution of the monitors to simulate the scaled sizes you're trying to use?

konsultaner commented 1 year ago

I think I found the issue. I switched to nvidia power mode. The same happened. so black screen etc. The difference was, that it eventually showed the new screen layout and I could accept it.

I guess this is a performance issue. So the actual issue seems that the dialog to actually confirm the new layout returns the old layout to quickly. maybe that time should be configurable?

mtwebster commented 1 year ago

It's 20s now - I also get some delay, depending on the configuration, but it's still never been more than 10s at the most. I can bump it to 30s I suppose, but I do wonder if it's because of how dual-graphics works on laptops.

I've got a Lenovo thinkpad with Intel and an Nvidia Quadro that I had trouble in the past with driving even one additional monitor in powersave or on-demand mode. I think I was forced to either go to performance mode or disable hybrid entirely in my bios before it would 'behave' properly.

konsultaner commented 1 year ago

@mtwebster I don't know. I'm just a User and wanted to report unexpected behaviour. Should I close the issue?