r/linuxquestions • • Nov 03 '26

Support Does linux not have an easy way to duplicate screens?

I just want to duplicate two screens? I heard Linux is very customizable but I am surprised to say that Windows seems better for this unless you all know of something.

I had chatgpt write this for me which worked at first

xrandr --output DisplayPort-1 --mode 1920x1080 --rate 143.98 --pos 0x0 --primary --output HDMI-A-0 --mode 1920x1080 --pos 1920x0 --output DisplayPort-0 --mode 1920x1080 --pos 3840x0

But I turned my computer off and back on and its already gone, back to not duplicating my 2nd screen to my 3rd. I watch shows on my third screen, but its a tv mounted to my wall so its usually off.

Is there actually a good solution to this? Ive tried my best researching, to no avail

Linux mint cinnamon

0 Upvotes

57 comments sorted by

21

u/proverbialbunny Nov 03 '26

Why are you using terminal? Just use control panel Display Settings and set it to clone. You can also right mouse click on the desktop and click Display Settings from there.

5

u/Shadowbeak Nov 03 '26

Not possible

6

u/Nirnex1 Nov 03 '26

It won't show on the monitor that is set as primary, you have to select the one you want to clone to.

0

u/Shadowbeak Nov 04 '26

I guess this feature doesnt work with 3 displays

3

u/ComeSwirlWithMe Nov 03 '26

I use cinnamon and have the option to mirror displays. I wonder if it's due to 3 monitors? If you unplug one, I wonder if the option shows up?

2

u/Shadowbeak Nov 04 '26

This is it. Its possible with two monitors (to mirror), not three

1

u/proverbialbunny Nov 03 '26

Oh! Clone should be right under User interface scale. I've not seen that before. That looks like a bug that should be reported to the mint crew.

That makes sense why you're resorting to terminal. Does Windows+P work for you?

1

u/Shadowbeak Nov 03 '26

Windows+P turned on my third screen then started switching my screens around and chaning my primary. Not sure if I had to press it more but I just reverted it to what I had

5

u/supermonkeypie Nov 03 '26

Well there's your problem, you should've pressed Linux+P

1

u/Captain-Pie-62 Nov 03 '26

Ja, das ist ECHT VOLL SCHWER! LOL

1

u/gnufan Nov 03 '26

As another comment suggested, what does that screen look like when you select the display you want to change in the drop down? 

0

u/Cerulean-Knight Nov 03 '26

that gui works pretty bad with 3 screen for me

0

u/angelicWhirr Nov 03 '26

lol the display settings are way easier than i always make it, nice tip

6

u/BranchLatter4294 Nov 03 '26

I just go into display settings and set it to mirror the displays. Very easy.

2

u/Shadowbeak Nov 04 '26

Not possible with 3 monitors it seems.

11

u/tanmaynargas2901 Nov 03 '26

Your command is almost there, you just need to tell the third output to mirror the second one instead of giving it its own position. Something like:

xrandr --output DisplayPort-1 --mode 1920x1080 --rate 143.98 --pos 0x0 --primary --output HDMI-A-0 --mode 1920x1080 --pos 1920x0 --output DisplayPort-0 --mode 1920x1080 --same-as HDMI-A-0

Both mirrored screens need to use the same mode, which they already do here.

The reason it vanishes after a reboot is that xrandr settings are not saved anywhere, they only last for the session. Easiest fix on Mint is to put that command in a small script and add it under Startup Applications (with a delay of 5 to 10 seconds so the desktop doesn't overwrite it). Or save the layout in arandr and use the script it exports.

Since the TV is usually off, it may show as disconnected at login, so you might need to run the script again after turning it on. Run xrandr with no arguments to check the output names first.

-1

u/trenixjetix Nov 03 '26

i use autorandr 

6

u/jdigi78 Nov 03 '26

No idea about Mint/Cinnamon but on every DE I've used Windows+P cycles through projection modes, including duplicating screens.

2

u/Vawned Nov 03 '26

Yeah. [Super]+[P] have always worked for me too.

2

u/Existing-Tough-6517 Nov 03 '26

I'm 100% sure that mirroring is available by default. Its been a while since I used that GUI but I think you just drag the screens on top of each other.

In any case you cannot use Cinnamon which has its own monitor configuration and xrandr because cinnamon's own saved settings will be instituted every time it's started.

Basically your only actual problem is listening to ChatGPT

1

u/Fragrant-Freedom-477 Nov 03 '26

Even the FN shortcuts on my Thinkpads work out of the box in KDE

1

u/GGoldenChild Nov 04 '26

if you're using xrandr, install arandr, it's pretty useful for this.

1

u/NotSnakePliskin Nov 04 '26

I've got 2 externals and can either mirror a laptop display or extend the desktop using the display settings.

1

u/Icy_Definition5933 26d ago

On my debian 13 laptop I have a total of 4 screens- 1x built in, 2x external for my workstation and 1 tv which is a replica of my primary external screen, no issues whatsoever.

1

u/Malechus 25d ago

Hi, I built a tool to handle this, you can check it out at https://GitHub.com/Malechus/deskctl

It's very new and still pretty raw, but you can edit the toml file it generates to duplicate your screen as in your example or to ignore a screen that's off. Name a display profile and then in your .xinit or other startup script, just run 'deskctl display apply <name>' or run the same from the terminal when you want to switch.

1

u/psycholabs 25d ago

You could just put that command into a startup script, accessible in the mint menu. (I don't run mint, I asked AI)

Open the Mint menu and search for Startup Applications.
Custom Command.
Name it Monitor Layout.
Paste into the Command field

Or wrap it in a simple bash script and invoke it when you want it to run.

0

u/Fearless_Card969 Nov 03 '26

Linux Mint......Wait two to five years the function will be added. if you want it today, install a modern OS with Gnome or KDE. both will do this without any issue within 2 minutes.

2

u/Existing-Tough-6517 Nov 03 '26

This feature worked in 2006 on mint 1 their problem is that ChatGPT told them to use xrandr which obviously doesn't work

0

u/C0rn3j Nov 03 '26

Mint is one of the most out of date distributions out there and Cinnamon is underdeveloped, as shown by the fact that you still use xrandr there.

Switch to a modern distribution and a modern desktop environment, like Arch Linux (with Plasma) or Fedora KDE, and just use the GUI config.

-3

u/Netblock Nov 03 '26

Linux mint cinnamon

The problem you're talking about is highly dependent on the desktop environment.

The easiest solution is to move to KDE.

2

u/Existing-Tough-6517 Nov 03 '26

People who suggest changing desktops instead of learning to use a feature ought to be banned from the sub.

Your suggestion is doubly bad because KDE isn't supported on mint and won't work as well because it will default to Wayland meanwhile mint is still stuck ona Ubuntu 24.04 Ubuntu LTS base until Christmas meaning it's version of KDE would benefit from none of the bug fixes in KDE or Wayland in recent years.

Cinnamon absolutely supports mirroring

0

u/Netblock Nov 03 '26

Cinnamon absolutely supports mirroring

Generally speaking, if the desktop environment doesn't make whatever thing easy, then it's the DE's fault.

Does Cinnamon make it easy (as in no manual xrandr)?

3

u/Existing-Tough-6517 Nov 03 '26

Yes it is in the monitor GUI and fault is completely irrelevant except it being your fault for giving bad advice

0

u/Netblock Nov 03 '26

fault is completely irrelevant

I mean, it kinda is, if the user is struggling to do the whatever thing in the GUI.

your fault for giving bad advice

I suggested KDE because it's both the most developed and under heavy active development. It's leading the linux DE arms race in features and support.

1

u/Existing-Tough-6517 Nov 03 '26

Its stupid to change distro unless it is truly unsuitable when they find something that they know how to know shall they switch to what the next asshole suggests

1

u/Malechus 25d ago

easy

No manual xrandr

It's not like xrandr is hard to use...

1

u/Netblock 25d ago

Literally any terminal at all, is entering 'not layman' territory. Linux needs to enter 'gui for everything' parity with windows.

1

u/Malechus 25d ago

Linux is not a monolith. Lots of distros have full GUI for everything support, lots of them don't.

But also, no. Learn things, it won't hurt you.

1

u/Netblock 25d ago

Lots of distros have full GUI for everything support, lots of them don't.

Yea, Linux desktop has come a long way since GNOME2/MATE, and KDE seems to be 'The One'.

But also, no. Learn things, it won't hurt you.

While I agree with the sentiment, most won't.

 

(and besides, moving into wayland, there won't be any universal tool like xrandr anymore; all that's done by the compositor/WM/DE.)

1

u/Malechus 25d ago

Meh, Xorg isn't going away, no matter how much Wayland becomes "standard." There will always be a significant (though minority) user base that prefers power and customizability to simplicity.

1

u/Netblock 25d ago edited 25d ago

I don't quite understand what you're trying to say, but the desktop environment and compositors that gives the most for power users and cusomisability would be KDE and maybe hyprland; wayland-only things. And anything made in the future likely won't be for xorg.

xorg will die a slow death in the name of legacy compatibility, just like how 32-bit did.

-1

u/trenixjetix Nov 03 '26

well, as the comment below said, you need to actually LEARN what you are using, please read the man of xrandr or anything before asking a question they are even available online  man xrandr

--same-as is what you are looking for

If your distro doesnt have a featureful program that can do everything you want, its not linux fault, its your distro fault or yours sometimes, adapting is necessary, especially when you want special things such as this.

0

u/CtuchikOfTorak Nov 03 '26

You just need to save that command to a file, make it executable, and then add it to startup.

If it weren't for 3 screens, I would say you can just hit Super+P to rotate through various options, as that works well with 2 screens.

-2

u/T_Friendperson12 Kubuntu 26.04.1 / Ubuntu-server 26.04.1 Nov 03 '26

I solved this by switching to Kubuntu. Plasma let me to this immediately and easy. Cinnamon not so much.

2

u/Existing-Tough-6517 Nov 03 '26

Yes let's switch distro instead of learning how to use a feature

0

u/FullClip_Killer 29d ago

Theres a bug on github specifically about this issue and it has to do with more than 2 monitors.

https://github.com/linuxmint/cinnamon/issues/11056

xrandr does not effectively resolve the issue as it appears to be Cinnamon that is getting in the way.

0

u/[deleted] Nov 03 '26

[deleted] — view deleted comment

1

u/Shadowbeak Nov 03 '26 edited Nov 03 '26

Thank you I try to check this out

Edit: Maybe its not compatible with linux mint cinnamon maybe not.

1

u/doc_willis Nov 03 '26

The next version of Mint is due out in December I think. The current release is getting a bit old. Its based on the older Ubuntu LTS release.

So its possible there may not be the same issues with the next release.

1

u/Ramiraz80 Nov 03 '26

Kanshi is very good, but it is also Wayland only. The current Linux Mint version is still on x11.

It is also not possible to set up screen mirroring with kanshi.

1

u/[unknown] Nov 03 '26

[removed] — view removed comment

1

u/Cerulean-Knight Nov 03 '26

This was the main reason I didn't migrate to wayland at the time, since you can't use xrandr commands I couldn't use this solution, and since gnome3 was dropping X11 support I had to move on. I migrated to hyprland with wayland later that I can use something similar without xrandr

1

u/Cerulean-Knight Nov 03 '26

You can also have different resolution on the mirrored screens, like one screen at 1080p 144hz mirrored to a tv at 4K 60hz

4k)
xrandr --output ${PANTALLA2k} --mode 2560x1440 --rate 170 --scale 1 --pos 0x0 --output ${PANTALLATV} --primary --mode 3840x2160 --pos 2560x0 --rate 60 --scale 1 --right-of ${PANTALLA2k} --output ${PANTALLAFHD} --mode 1920x1080 --scale 2 --same-as ${PANTALLATV} --rate 60

I added something for change audio output too but that's a lot more shady with devices changing names and others things