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.
-
That depends on the card and driver you are using, there's no standard way of doing that.– RobSep 11, 2013 at 9: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.– LeoSep 11, 2013 at 9:12
-
3Stack 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.– jwwJun 18, 2017 at 10:02
3 Answers
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)......
-
1On Debian 8 "jessie" under VirtualBox on Windows 7 host: the right incantation was
xrandr --output VGA-1 --right-of VGA-0
Jun 3, 2015 at 13:27 -
On Debian Test (12) I found that this worked for me: xrandr --output DP-2 --right-of DP-1 Feb 17 at 14:14
xrandr --output VGA2 --right-of VGA1
You get xrandr help if the first option is misspelled.
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.