10

My goal is to have an extended desktop like in windows. Linux only uses my second monitor as a mirror, which is useless. I have searched a lot on google and SO for a way to get this right. I want linux to use both my monitors for one extended desktop, not as a mirror. As of yet I have not found out how to do this. Any help appreciated, thanks.

Leo
  • 1,757
  • 3
  • 20
  • 44
  • That depends on the card and driver you are using, there's no standard way of doing that. – Rob Sep 11 '13 at 09:08
  • Well Im looking for **any** way. Colleague apparantly had the same problem. He showed me how to do it in the terminal. Not sure where to save this setting yet though. – Leo Sep 11 '13 at 09:12
  • 3
    Stack Overflow is a site for programming and development questions. This question appears to be off-topic because it is not about programming or development. See [What topics can I ask about here](http://stackoverflow.com/help/on-topic) in the Help Center. Perhaps [Super User](http://superuser.com/) or [Unix & Linux Stack Exchange](http://unix.stackexchange.com/) would be a better place to ask. – jww Jun 18 '17 at 10:02

3 Answers3

22

OK so a colleague explained it to me. Apparantly xrandr comes with almost all linux distributions. The proper way to use xrandr to set multiple monitors to display a different part of the same desktop is as follows:

xrandr

Shows you the names and dimensions of your displays. Say VGA1 and VGA2. Then if VGA1 is the screen on the left and you want VGA2 to extend it to the right you use:

xrandr --output VGA2 --right-of VGA1

Thats it. Was looking for this on google and SO for hours, finally its working! Hope this will help other people as well. Dont know how to save this setting yet and I dont know if this is the most elegeant/best way to do this.

When you know the answer its easier finding other answers. Here are two sources that show how to save this setting as well. (although that does not work on my system as the files they point to cant be found)......

intel guide to xrandr

thinkwiki guide to xrandr

Community
  • 1
  • 1
Leo
  • 1,757
  • 3
  • 20
  • 44
3
xrandr --output VGA2 --right-of VGA1

You get xrandr help if the first option is misspelled.

Szymon
  • 42,577
  • 16
  • 96
  • 114
LAMurakami
  • 41
  • 1
3

After you get your displays extended as @Leo explains, you can fine tune their placement using arandr from the terminal. It brings up a gui for xrandr.

Nate
  • 2,449
  • 3
  • 21
  • 29