Turn off mirror display on startup on Elementary OS

Unix & Linux Asked by Winski Tech on January 3, 2022

I’m running Elementary OS Freya Beta 2 with dual displays. I added some xrandr commands to run at startup so the monitor I want is the primary monitor and that the dock starts on the right monitor. Now whenever I restart the machine, the display mirrors. Is there a way to force the display not to mirror?

I can go into Settings>Display and turn off “mirror display” but I don’t want to do that every time I restart. Where I can I permanently modify those settings?

Here are the things I’ve tried:

  • xrandr: There’s nothing I can see in there that forces not mirrored displays
  • xorg.conf: As far as I can tell I don’t have an xorg.conf file and cannot automatically generate one. If the answer is to create one from scratch I can do that. I just don’t know what to put in it.
  • drivers: I tried using the proprietary ATI drivers but that cause a lot of graphical issues, right now I’m just working with the xorg drivers

One Answer

Using xrandr, when you specify a monitor position (--right-of or --left-of etc.), this effectively 'cancels' the mirror. Therefore, the following cancels the mirroring and places the monitors into a desired position:

xrandr --output eDP1 --auto --right-of HDMI1

This turns the mirror on:

xrandr --output HDMI1 --same-as eDP1 

To get the names of your built-in and external monitors, to use as arguments in the above commands:


Answered by Scott Close on January 3, 2022

Add your own answers!

Related Questions

Why is irqs_disabled() an unsafe way of disabling preemption?

2  Asked on November 29, 2020 by holmes-sherlock


How to debug and monitor the power management?

0  Asked on November 28, 2020 by jonas-stein


How do I run grep on a zsh variable?

2  Asked on November 28, 2020 by serge-vu


This system is currently not set up to build kernel modules

1  Asked on November 28, 2020 by henrique-de-sousa


unable to install anything in Dockerfile

1  Asked on November 27, 2020 by bitfreak


Reset cursor state without reopening terminal

1  Asked on November 27, 2020 by nordine-lotfi


Bash commands not found

3  Asked on November 26, 2020 by yuseferi


How can I install mysql on an angstrom distribution?

1  Asked on November 26, 2020 by e-lee


BASH_ENV being ignored in AWS Ubuntu 20.04 crontab

1  Asked on November 26, 2020 by arturomp


Display tasks in GNOME Shell Calendar

1  Asked on November 25, 2020 by ofperkins


Apache is not starting up

1  Asked on November 13, 2020 by georgi-stoyanov


Ask a Question

Get help from others!

© 2023 All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP