I have a GEFORCE GTX 1050Ti that I need to setup on Ubuntu (16.04 LTS)) that has two monitors. The application (Matlab program) requires that each display have its own x-window server.
Running the “NVIDIA X Server Settings”, it looks like I am able to set each display to “X Screenm 0” and “X screen 1”, applying the settings does give a host of warnings but does allow it to proceed. After restart the display manager (sudo systemctl restart lightdm.service) only one display works. The second is black.
…in the case of two seperate screens, most if not all DEs will only use one. You will have to set the DISPLAY variable right to run aplications on that screen like
DISPLAY=:0.1 someprogram
Are you saving the xorg.conf? I only see you applying a config to the running system via nvidia-settings.
We’ve created multiple multi-screen xorg.conf with nvidia-settings without issue. If we are saving the xorg.conf file to /etc/X111/xorg.conf can you post the xorg.conf file?
I am new to linux but the below file has been saved to /etc/X11/ and the display manager restated. i think it is working. The user will test it out shortly. Here is the content of the xorg.conf file:
nvidia-settings: X configuration file generated by nvidia-settings
nvidia-settings: version 361.42 (buildd@lgw01-18) Tue Apr 5 14:33:28 UTC 2016
Ok so your xorg.conf seems right including the description from comment #7.
However, what are the chances you’re using GNOME/GDM or if you’re using GDM what xsession are you using? If it’s GNOME (gnome-shell/mutter) it doesn’t support the X11 concept of >1 screens. So GNOME/wm only appears on your primary screen.
I believe if you switched to lightdm you’ll experience a window manager on per-screen basis. Also, using something that supports multiple screens as said in comment #3 might need to happen as well.
You should have :1 (the black display) but if you try to run something on it it will be a border-less windows: ‘DISPLAY=:1 xterm’
Not being able to move windows between screens is intrisic to the concept of having two separate screens let alone xservers.
Of course, you can also start a separate DE on the second screen using something like
DISPLAY=:0.1 gnome-shell
in case your second screen is on :0.1 and you want gnome.
Two screens, two desktops and you can move the mouse between them but nothing else. That’s all you can get.
Edit: the DISPLAY variable consits of host:xserver.screen I think.
Also, I believe you could enable Xinerama in xorg.conf to join the two screens but there are performance and other oddities with Xinerama.
I think I should have asked from the start. Why on earth does Matlab require multiple screens? Are you confusing that with “a large desktop of x by y res that your single display doesn’t support?” If you need a large res desktop BaseMosaic should be able to do this.
Mosaic is a multi gpu technique which doesn’t apply. Xinerama is a technique to merge due to technical constraints separate screens into one screen which isn’t wanted.
Hi, Thanks for all the input. The xorg.conf was not being saved to the correct directory. Once done it worked as expected. As for the why, the Matlab program (for examining cortical circuits) was developed in the fashion. Many thanks, Ron