How to duplicate desktop in Linux with xrandr

deepindisplayxrandr

Currently, I'm using Deepin OS 15.4.

By default Deepin sets the desktop to extended mode when a projector is connected, but what I want is to duplicate my screen.

I can't find it in the Control Center configuration, but I stumbled upon in this question.

The above extends the monitor with xrandr,

How do I duplicate my desktop to the projector with xrandr?

Best Answer

First find out the name of each display e.g. using xrandr --current. Then the following command should work to duplicate them.

 $ xrandr --output <projector> --same-as <desktop>