Triple Monitor Gaming with Nvidia Graphics on Linux

I’ve been gaming exclusivity on Arch Linux for some time now, but one thing that I have been longing for is Triple Monitor Gaming that our M$ Windows counterparts have been enjoying for some time now. I have an Nvidia GTX 760 in my rig (yes I know out dated at this point but still is no slouch) which supports quad displays just fine on Linux – I currently have 3 displays connected; however Nvidia does not “supportStereoscopic Surround on Linux (shame on them).

Today I finally figured out how to make this work. I was actually trying to fix another graphics issue (games opening on wrong monitor) and came across Jakejw93 youtube video on how to enable gaming across all 3 monitors.

It all boils down to one line in the nvidia xorg configuration file.

For Arch Linux, if you have not already done so, generate 20-nvidia.conf using nvidia-settings GUI – this should be saved to:

/etc/X11/xorg.conf.d/20-nvidia.conf

Then change the following line:

Option         "Xinerama" "0"

to

Option         "Xinerama" "1"

Finally reboot. When you log back in to your desktop, you’ll find that the desktop is spanned much like the window$ desktop would be with Surround enabled (but looks much better and is much more functional). The usual caveats apply such as making a window full screen or maximize spans it across panels. But what this also means is all games (that launch full screen) now have the proper Surround monitor resolution set, naturally play at that resolution [5760×1080], and are no different than doing the same on some other OSes.

To revert back, simply remove the Xinerama line entirely or change its value back to “0” and reboot (my file did not auto-magically get edited like Jakejw93’s). Your displays will act normally again. So the biggest pain in the ass with this setup is you have to reboot each time – or completely restart X11, regardless all open applications will be closed. This is probably because of the way X11 is designed (it’s actually rather fragile), I’m also willing to bet this is why it is a completely undocumented feature on Nvidia’s part. Maybe this type of stuff will be resolved in the next set of display managers Mir/Wayland.

All things aside, its nice to now play games on all 3 of my panels again…. Now I just need to setup a 4th panel so I can monitor system stats while gaming :).

 

Thanks Jakejw93 for sharing this wonderful piece of information.

Tagged with: , , , , , ,
4 comments on “Triple Monitor Gaming with Nvidia Graphics on Linux
  1. CS says:

    Awesome! I don’t use this for games, but I use it to sync videos (by making one ultrawide file and playing the single file so the three videos come out synced).

  2. Thimo says:

    Hey, thank you for writing this guide, but I’m running into an issue myself with Xinerama. When I have the option enabled, I see a black screen at startup of my Antergos GNOME installation. The login screen does not show, but the cursor does. Do you have any idea what is causing this?

    • Can you still get a login shell with CTRL+ALT+F[1-9]+ ??

      Take a look at your /var/log/Xorg.0.log or the GDM log (not sure where that one is – I use lightDM)

      I can’t do much to replicate this… not only am I a cinnamon user, but I switched to debian-testing about a month or so ago. Using nouveau – no Nvidia blob yet (but some Steam games may push me to install it)

  3. YES!

    Many thanks for this great help.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.