Linux 中的扩展桌面
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/18736948/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Extended desktop in Linux
提问by Leo
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.
我的目标是拥有一个像 Windows 一样的扩展桌面。Linux 只用我的第二台显示器作为镜像,没用。我在 google 和 SO 上搜索了很多,以找到正确的方法。我希望 linux 将我的两台显示器用于一个扩展桌面,而不是用作镜子。到目前为止,我还没有找到如何做到这一点。任何帮助表示赞赏,谢谢。
采纳答案by Leo
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:
好的,所以一位同事向我解释了它。显然,几乎所有的 Linux 发行版都带有 xrandr。使用xrandr设置多台显示器显示同一桌面不同部分的正确方法如下:
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:
显示显示器的名称和尺寸。说 VGA1 和 VGA2。然后,如果 VGA1 是左侧的屏幕并且您希望 VGA2 将其扩展到您使用的右侧:
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.
就是这样。在谷歌和 SO 上寻找这个好几个小时,终于它工作了!希望这也能帮助其他人。还不知道如何保存这个设置,我不知道这是否是最优雅/最好的方法。
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)......
当您知道答案时,更容易找到其他答案。这里有两个来源也显示了如何保存此设置。(虽然这在我的系统上不起作用,因为找不到他们指向的文件)......
回答by LAMurakami
xrandr --output VGA2 --right-of VGA1
You get xrandr help if the first option is misspelled.
如果第一个选项拼写错误,您将获得 xrandr 帮助。
回答by Nate
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.
按照@Leo 的解释扩展显示后,您可以使用终端中的 arandr 微调它们的位置。它为 xrandr 提供了一个 gui。