Extended desktop in Linux
Asked Answered
M

3

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.

Malinda answered 11/9, 2013 at 9:6 Comment(3)
That depends on the card and driver you are using, there's no standard way of doing that.Bactria
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.Malinda
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 in the Help Center. Perhaps Super User or Unix & Linux Stack Exchange would be a better place to ask.Instate
M
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

Malinda answered 11/9, 2013 at 9:11 Comment(2)
On Debian 8 "jessie" under VirtualBox on Windows 7 host: the right incantation was xrandr --output VGA-1 --right-of VGA-0Perception
On Debian Test (12) I found that this worked for me: xrandr --output DP-2 --right-of DP-1Cataract
C
3
xrandr --output VGA2 --right-of VGA1

You get xrandr help if the first option is misspelled.

Carrell answered 25/3, 2014 at 2:55 Comment(0)
A
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.

Adanadana answered 5/8, 2015 at 17:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.