[SOLVED] How to configure X for multi-head with two separate screens?
Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to configure X for multi-head with two separate screens?
I would like to try out the old-school way of handling multiple monitors with X - where each screen is separate, with a different $DISPLAY value (the first screen is :0.0, the second is :0.1 and so on), and where windows cannot be moved from one screen to the other - as described here.
At the moment, I do not have any X config files for the displays, and I am getting a mirrorred desktop i.e. both screens show the same windows and my mouse. $DISPLAY is currently set to :0
What do I need to do to make X treat each monitor as a separate display?
Thank you for sharing your progress! I don't have this same need, but I look forward to learning this technical achievement of two separate X servers, one for each monitor. I too would have estimated that "Screen" would be enough. All these words, like monitor, screen, display, I expect can all be translated to the same word in other languages so the nuances are indeed tricky.
technical achievement of two separate X servers, one for each monitor
That is apparently a possibility - it could be what is referred to as ZaphodDisplay, which as well as having two separate sets of workspaces on each monitor, also has separate keyboard and mouse for each. But maybe ZaphodDisplay is something else again!
Anyway, what I want to do is run a single X server, but configured to treat each monitor as a separate output rather than combining both into a single "stretched" display. (I don't mind not being able to drag windows from one screen to the other, but I do want shared keyboard, mouse and clipboard)
Quote:
Originally Posted by bgstack15
All these words, like monitor, screen, display, I expect can all be translated to the same word in other languages so the nuances are indeed tricky.
This certainly doesn't help!
Last edited by lightstream; 09-17-2020 at 10:12 AM.
Be aware that some Intel graphics chips have a shared frame buffer which prevents running the two monitors as independent displays. Check for 'EE' lines in /var/log/Xorg.*.log. It should always work for separate cards.
Be aware that some Intel graphics chips have a shared frame buffer which prevents running the two monitors as independent displays. Check for 'EE' lines in /var/log/Xorg.*.log. It should always work for separate cards.
Checked that and nothing worrying popped up, thanks.
This chap is trying to do exactly what I want, I wonder if he succeeded?
Good news is that I appear to have done it - it turns out I was mistaken about the Zaphod Display: that is in fact what I want, the other configuration where each monitor has its own keyboard/mouse/clipboard is called MultiSeat.
This works - at least it does when I start plain X without any other window manager. I can start a terminal on each display, and launch programs that start on the same display as the terminal.
However some programs seem to ignore the $DISPLAY variable and always start on screen 0 - this happens for xfce4-terminal for example. I do recall reading somewhere that some window managers/DEs have recently have dropped support for ZaphodHeads so I will probably now have to spend some time finding one that works.
At the moment, I've started compiz from the plain X session and it seems to work, but without any wallpaper or panels.
Most X programs take a display argument, so can be started on your current display by playing around with xinit stuff and your DISPLAY environment variable.
I've never heard the two-head mode called "Zaphod" but it makes sense. Anyway, the answer must be 42.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.