Running a game fullscreen on one monitor in twinview
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Running a game fullscreen on one monitor in twinview
I have a GeForce FX 5700 LE with two monitors attached. I have successfully configured TwinView, for the most part. The two screens show up fine, and most applications work. However, I'm unable to get full screen games to work. Most people complain that the game will appear between the two monitors, or stretched across, or something similar, but mine don't seem to work at all. It varies from game to game, but generally, one of the monitors goes blank, and the other has garbage leftover from whatever windows were open. If I close the game (by pressing escape or whatever), everything goes back to normal.
What I'd like is to run the game full screen on one monitor, but leave the other available for applications.
I'm aware that it's possible to maximize a window and make it borderless, but this is not really the solution I'm looking for. It requires me to close all panels, etc, and many games don't work cleanly with this solution.
I'm running Debian Testing with Xorg 6.8.2. I can post my xorg.conf if needed, but obviously it's pretty long and I figure I shouldn't clutter up the database if there isn't a reason to.
What you want to do is not run twinview, but rather two-head mode. Twinview combines two monitors into a single large monitor. Two head mode give you two independent monitors, each with their own desktop (can be different resolutions an bit depth). They are referenced as DISPLAY=:0.0 and DISPLAY=:0.1. You can still cursor between them, but when you run an application on a desktop it stays there.
Doing this is documented in the Nvidia README; here's an example:
Yes, you will not be able to drag a window between screens. However, if your requirement is to run one monitor fullscreen with a game, there's no other screen to drag the window to.
If you sometimes want to use twinview and sometimes use two-head, you'll need to create two xorg.conf files, and switch between them (and restart your X-server).
In two-head mode, while you can't drag a window between screens, you can start applications on either screen from either screen, by prefixing with the display:
The first one (1600x1200 +0+0,1280x1024 +1600+176) is my dual monitor meta mode... and the default. What it does is creates two desktops, one is 1600x1200 and one is 1280x1024. It also offsets the 1280x1024 one so that it is to the right of the 1600x1200 and the bottom of both monitor match (+1600+176).
But of course that's just for my setup.... if you have two monitors that are the same size that part is a lot easier.
After defining the dual monitor mode... now just slap all the regular modes you want in there delineated by colons... 1600x1200;1280x1024;1024x768;800x600
I just migrated to a Nvidia Geforce 9800GT from years of using ATI cards on my systems.
Setup of the drivers was a breeze for my dual monitor setup. 2 LCD's at 1440x900 on Opensuse 11.0 (KDE 3.4)
Still, one problem remained. My games ran in the middle of the 2 monitors.
The solution was the metamodes. Metamodes are mentionned as the likely problem on other forums, but none had the same precise way of explaining it and none had the syntax my xorg.conf file is using, i.e
Code:
+0+0
method.
God knows xorg files have many different syntaxes that all lead to the same goal, but it becomes a problem when looking for solutions.
So I applied friedmod's little guide to my own setup like so, since I have to monitors with identical resolutions:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.