Is "Separate X Sessions" with NVIDIA a thing of the past?
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.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Is "Separate X Sessions" with NVIDIA a thing of the past?
I have been running two screens on my desktop using "separate X sessions" through the NVIDIA Settings for a number of years now having started with two graphics cards and now having only the one (GTX 640).
I currently use XFCE and it seems OK but I have noticed issues creeping in* so decided to try other desktops. MATE seems, vaguely, to work but both KDE4 and GNOME3 don't allow me to use the second monitor at all. Does that mean it's one X session or nothing? Would it help if I, again, had two cards?
I ask because as things are I've a 16:10 monitor I use for games and video and a 4:3 one I use mainly for email and a conky. I found without separate X session it was difficult to open an application in one monitor, meant that only one could be used for gaming and that the mouse was less likely to be contained within the game. I do things like a full-screen VLC in one and a game in the other (interchangeably using VLC remote) too. I may acquire more or different monitors but the setup has been, with only a few niggles, pretty much exactly what I wanted.
Any ideas whether I could do this in KDE4 or GOME3 with or without separate X sessions or any tips generally?
*pop-ups for Bluetooth moving across the screen horizontally being the obvious one.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by Emerson
I believe it is possible, just requires hand made xorg.conf.
I do have the file (contents below) but neither KDE nor GNOME give me the option to do anything with the second screen -- with XFCE and MATE I can use both screens for panels and applications. So my question is have KDE and GNOME stopped supporting separate X sessions and, if not, how do I configure them to use both screens?
Maybe you should define separate X session. For me this means you start whole new Xorg on secondary monitor with possibly a different DE/WM.
BTW, disabling Xinerama is not a good idea if you want to keep your apps on certain monitor.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
I did already set up separate X sessions -- I did so years ago and haven't changed anything. I allowed the NVIDIA X server setting application to write to my xorg.conf and the results are above. In XFCE things work as they ought. If I were to enable Xinerama (which, now I think about it, I don't appear to have an option for where I thought I did either) then it would make only one X session across both screens which is exacly what I don't want.
Have things changed in the last few years as regards NVIDIA, X sessions and their configuration? As I mentioned for years, including when I ran two cards, I've had pretty much the same setup but when I look at the NVIDIA application the options don't seem to be there any more and both KDE and GNOME don't allow me to use the second screen.
I have also, in the past, ran two DEs one on each monitor but I was also able to use both monitors in one DE but this isn't possible with KDE or GNOME any more. Do neither support this configuration?
Again, is this deprecated? Do NVIDIA not support it either as evidenced by my not seeing it in the setting application or am I looking in the wrong place?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
It was the term used in the NVIDIA X server settings dialogue. When using things like Xinerama only one monitor could have 3D acceleration and, with some of the other settings, only one monitor could have panels added.
I think NVIDIA have probably changed how things work now but I don't want to start from scratch with the configuration again and use some new option if things won't work as I want them.
This is why I'm asking about this -- I'm hoping somebody knows what's changed and why and what the new way of doing what I want is.
Oh I see. I use nVidia cards myself, but I never used their configuration utility. It creates bloated and often incompatible (with latest Xorg) configurations IMHO.
Regarding Xinerama. I've learned when an application is built with Xinerama support it will not expand over all monitors. Even when using TwinView Xinerama support is still needed to keep apps on display where they were started. This is my experience with OpenBox. I guess KDE and Gnome go well beyond basics and try to configure and govern everything ...
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
The beauty of the "separate X sessions" is that applications only appear on the monitor they're opened on and can't be moved between monitors or maximised across both. I could, and have, use different DEs for each monitor (with my xorg.conf as shown which was created by nvidia-settings but I have also created similar manually) as well.
I don't know what KDE and GNOME are doing or not doing, however, as they only show the one monitor in their display settings.
My configuration is different. I have hand-written xorg.conf, Xinerama enabled. Applications can be moved from one display to another but when maximized they do not expand over both displays. This is the way I like it. BTW, nVidia driver is compatible with xrandr, so you can use it to tune your display.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Quote:
Originally Posted by Emerson
My configuration is different. I have hand-written xorg.conf, Xinerama enabled. Applications can be moved from one display to another but when maximized they do not expand over both displays. This is the way I like it. BTW, nVidia driver is compatible with xrandr, so you can use it to tune your display.
I'm not sure I'd want tobe able to move application from one screen to another but, if possble, please could you post your xorg.conf? I'm considering getting a new graphics card so may well be messing around with things soon and it would be good to have a known working example.
I'm still puzzled as to why neither Gnome nor KDE can even see the second monitor. Perhaps they don't use xorg.conf any more and rely upon some other method?
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Thanks, is xrandr used to create one monitor from one then xorg.conf just tells the DE to use that one monitor?
I'm confused as to why, with my current setup, KDE and GNOME don't see my second monitor at all but XFCE uses it fine (well, with slight niggles).
xrandr is used to set my secondary monitor to left, for some reason without xrandr it comes up secondary monitor right. KDE and Gnome ... don't know, my setup is very spartan, plain OpenBox.
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Original Poster
Rep:
Even stranger, I can't understand your xorg.conf in that case. Are you sure it's even needed and X11 isn't finding them on the fly?
I can understand OpenBox could be more friendly for this setup as it's lighter and more configurable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.