You are not logged in.

#1 2024-09-12 09:38:29

tomsk
Member
Registered: 2016-12-17
Posts: 224

[SOLVED] Merge two displays in Wayland

Hello, I use GNOME, when I run `xrandr --listmonitors` I get:

```
0: +*DP-3 1920/510x1080/290+0+0  DP-3
1: +DP-2 1280/380x1024/300+1920+0  DP-2
2: +HDMI-1 1920/600x1080/340+3200+0  HDMI-1
```

DP-3 is my primary monitor, DP-2 is my secondary monitor and HDMI-1 is my capture card, all I want is to merge (mirror) DP-3 and HDMI-1, so image from DP-3 (primary monitor) will be copied to HDMI-1 which is capture card, it was working on X11, but now I switched to Wayland, when I try to run `wlr-randr` I get: `compositor doesn't support wlr-output-management-unstable-v1`

In other words mirror DP-3 with HDMI-1 and extend DP-2.
It is working under X11 using this command: `xrandr --output DP-3 --same-as HDMI-1 --output DP-2`

I know Mutter doesnt have support of wlroots, but Im looking for some solution, because I would like to switch to Wayland.

Stats:

OS: Arch Linux x86_64
Kernel: 6.10.9-zen1-2-zen
Uptime: 15 mins
Packages: 4257 (pacman), 81 (flatpak)
Shell: zsh 5.9
Resolution: 1920x1080, 1280x1024, 1920x1080
DE: GNOME 46.4
WM: Mutter
WM Theme: WhiteSur-Light
Theme: WhiteSur-Light-solid [GTK2/3]
Icons: WhiteSur-dark [GTK2/3]
Terminal: WarpTerminal
CPU: AMD Ryzen 5 4500 (12) @ 4.208GHz
GPU: NVIDIA GeForce GTX 1060 6GB
Memory: 5862MiB / 31887MiB

Last edited by tomsk (2024-09-12 14:27:43)


I use several linux distros like: Archlinux, Ubuntu, Fedora, Linux Mint

Offline

#2 2024-09-12 10:26:07

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,102

Re: [SOLVED] Merge two displays in Wayland

There's no "Wayland" in this regard and this is dependant on mutters implementation, so check your GNOME system settings. If you want to script this for some reason, there's https://aur.archlinux.org/packages/gnome-randr-rust

Offline

#3 2024-09-12 12:55:54

tomsk
Member
Registered: 2016-12-17
Posts: 224

Re: [SOLVED] Merge two displays in Wayland

I dont need script for it, I would like to do it in GNOME System settings too, but I dont know how, so I always used xrandr.

that gnome-randr has some weird, non-standard syntax, I dont know how to use it, I tried to use syntax which uses xrandr with no success:

╰─ gnome-randr --list-monitors
─╯
error: Found argument '--list-monitors' which wasn't expected, or isn't valid in this context

USAGE:
    gnome-randr [SUBCOMMAND]

For more information try --help
╭─ ~                                                                                                                                  1 ✘  15:08:55 ─╮
╰─ gnome-randr --output DP-3 --same-as HDMI-1 --output DP-2
─╯
error: Found argument '--output' which wasn't expected, or isn't valid in this context

USAGE:
    gnome-randr [SUBCOMMAND]

For more information try --help

--help tells nothing usefull, it doesnt work even when I try to run it like `gnome-randr modify --output DP-3 --same-as HDMI-1 --output DP-2`

Last edited by tomsk (2024-09-12 13:11:14)


I use several linux distros like: Archlinux, Ubuntu, Fedora, Linux Mint

Offline

#4 2024-09-12 14:04:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,102

Re: [SOLVED] Merge two displays in Wayland

I don't use GNOME, but I've found https://forum.manjaro.org/t/mirror-scre … me/85000/9 which suggests that this would technically be possible but you need to manually edit the monitors.xml to set this up. Seeing as this was "just" 3 years ago and GNOME being GNOME I'd strongly suspect you still need to do it that way.

Yeah... https://gitlab.gnome.org/GNOME/gnome-co … ssues/3126 -- but see the comment there, there's another cmdline utility that might help.

Last edited by V1del (2024-09-12 14:08:36)

Offline

#5 2024-09-12 14:26:58

tomsk
Member
Registered: 2016-12-17
Posts: 224

Re: [SOLVED] Merge two displays in Wayland

V1del wrote:

I don't use GNOME, but I've found https://forum.manjaro.org/t/mirror-scre … me/85000/9 which suggests that this would technically be possible but you need to manually edit the monitors.xml to set this up. Seeing as this was "just" 3 years ago and GNOME being GNOME I'd strongly suspect you still need to do it that way.

Yeah... https://gitlab.gnome.org/GNOME/gnome-co … ssues/3126 -- but see the comment there, there's another cmdline utility that might help.

THANK YOU very much, I managed to set it like: `./gnome-monitor-config set -Lp -M DP-3 -M HDMI-1 -x 0 -y 1000 -L -M DP-2 -x 1920 -y 0`

and it works now as intended smile

I hope GNOME will fix this issue somehow, so I dont have to do it using cli big_smile


I use several linux distros like: Archlinux, Ubuntu, Fedora, Linux Mint

Offline

Board footer

Powered by FluxBB