Last thing you'll ever read…again
Tutorial: xorg Metamodes – Running Fullscreen Games on 1 monitor in a dual display
A problem I’ve encountered since setting up dual display using Nvidia Twinview inside linux is that when playing full screen games I run into the problem where:
a) The game tries to run across the two displays but cuts off in the middle, so you only get the game on one monitor whilst your other monitor is naked
or
b) The game runs like it should on the primary monitor…however the window doesn’t capture the mouse and your second monitor is left open
It gets extremely annoying.
One workaround I’ve been using is disabling the second monitor and reenabling it once I’m done. Being a programmer…I thought…there should be a better way! So I googled a bit and found this solution which I will write up, for my own reference in the future should I encounter this problem and for anybody else who might be having the same issue.
So to sum up, this tutorial will allow you to play a fullscreen game on ONE monitor in a dual display setup.
- Open up a terminal
- First we should probably backup your xorg.conf just type ‘sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup’
- Type ‘sudo vim /etc/X11/xorg.conf’ Replace vim with your text editor of choice
- Scroll down until you see the “Screen” block for your PRIMARY monitor. It should look something like this:
Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
Option "TwinView" "1"
Option "TwinViewXineramaInfoOrder" "DFP-0"
Option "metamodes" "CRT: 1280x1024 +1680+0, DFP: 1680x1050 +0+0"
EndSection
- On the second last line which contains the word “metamodes” you’ll need to change it to this:
Option "metamodes" "CRT: 1280x1024 +1680+0, DFP: 1680x1050 +0+0"; DFP: 1280x1024 +0+0,NULL"
Replace 1280×1024 by the resolution of the game that you play on. However, EVERYBODY’s xorg.conf file will be different, make sure you adhere to the formatting of your file. - Reboot your computer or simply press CTRL+ALT+BACKSPACE to restart X
- Open the game you wish to play and hopefully everything is working
Feel free to post any problems you may have after following this tutorial and I’ll try my best to help.
| Print article | This entry was posted by John Jiang on September 23, 2008 at 3:53 pm, and is filed under Tutorial. Follow any responses to this post through RSS 2.0. Both comments and pings are currently closed. |
Tutorial: Boot Ubuntu 9.10 Partition using Virtualbox inside Windows (deprecated)
about 8 months ago - 15 comments
This article is now deprecated as 10.04 has been released. Comments will be disabled. Check back for an updated version. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ So Ubuntu 9.10 got released several weeks ago and people have been asking about how to get my old tutorial working for 9.10. The problem is that Ubuntu 9.10 uses the new grub 2
Tutorial: Cleaning your WLM Contact List
about 1 year ago - 9 comments
Over the years you will find that your contact list gets cluttered. You’ve deleted people, blocked people or even both. Maybe others have deleted you, blocked you or both. For the people that have blocked or deleted you…why bother keeping them on your contact list? Why not delete them? But then how do you tell
Tutorial: Boot existing Ubuntu Partition using Virtualbox inside Windows (deprecated)
about 1 year ago - 71 comments
Edit 22/11/09 Ubuntu 9.10 uses the new grub 2 as its boot-loader thus this article would not work for 9.10. I am currently in the progress of getting 9.10 to work under Virtualbox. This tutorial would no longer be supported. Any comments regarding support will be ignored. If you want to get 9.10 working please
Ubuntu 8.10 to Windows 7 Beta to Ubuntu 9.04 to Windows 7 RC
about 1 year ago - 1 comment
Originally my hard-drive crashed. So I decided to install Windows 7 beta, just to give it a spin. I loved it. Never have I ever gotten used to an operating system so quickly before. Everything just worked. I promised I would install Ubuntu 9.04 beta when it gets released but it just had too many
Oh lord what do I do?
about 1 year ago - Comments Off
I really like Windows 7. Am I fanboy? I hardly think so. I mean…I’ve had Ubuntu installed as my primary OS for 2.5 years only to remove it after my harddrive crashed and decided to give windows 7 a go. You may even hear me talking about wanting to be able to afford a mac.
Tutorial: Hosting/Playing Warcraft 3 Online in Ubuntu…Perfectly
about 1 year ago - 12 comments
This post is now deprecated as I no longer maintain this. Comments will be closed. ~~~~~~~~~~~~~~~~~~~~~~ I’ve read too many tutorials on how to setup Warcraft 3 on linux. However, the tutorial usually just ends there. Sure, you have a working version of Warcraft but when it comes to playing online it’s a different matter.
More efficient procrastination
about 1 year ago - Comments Off
I upgraded my Ubuntu 8.04 to 8.10 beta recently. Here’s what I’ve noticed: The good: Network Manager has been significantly improved…although…the improvements do not affect me and I’m quite comfortable using the old version More applications are being supported by Ubuntu VLC 0.9.2 was included despite the feature freeze Better driver support, my iphone is
Tutorial: Hamachi (with GUI) in Ubuntu 8.04 Hardy Heron
about 1 year ago - 8 comments
Hamachi is a freeware application that initiates a virtual private network (VPN) between peers. This is extremely useful for initiating applications such as games over the Local Area Network (LAN). For more information click here This Tutorial is for setting up Hamachi with a gui based interface (optional) in Ubuntu 8.04 Hardy Heron. Download Hamachi
Comments are closed.
about 1 year ago
Thanks for the tips. One problem I seem to be having with one of my monitors is horizontal bands moving from top to bottom. It seems to be some sort of issue with the refresh rate. How can I tweak the refresh rate using metamodes OR do you have any other suggestions as to how I can fix that problem? It doesn’t have this problem in Windoze and it looks a lot sharper there. Thanks!
about 1 year ago
Great workaround! I’ve been struggling with this for awhile now, and I’m glad someone’s found a solution. What’s weird is that this isn’t more widespread… it’s the ONLY way I can play a fullscreen game on my dual-head setup. You’re a hero!
about 1 year ago
Linkback: http://kareeser.com/ubuntu/metamodes.php
Thanks for all of your hard work, you’ve been attributed accordingly
about 1 year ago
Thanks, this is just what I needed! Mine looks like:
Option “metamodes” “CRT: nvidia-auto-select +0+0, DFP: nvidia-auto-select +1280+0; DFP: nvidia-auto-select +0+0″
about 7 months ago
Hi, I just found this page and finally I am able to play teeworls without turning off the second screen
Thx!
Just one little thing. I figured that you should remove the quote after 1680×1050 +0+0″<- [point 5]. Otherwise X won't start again.
Cheers!
about 7 months ago
Kind of works, it’s a good compromise, but my quake 2 (Yes I still play Quake 2 Jump in 2009/2010) wont stretch out to fill the entire screen unless if it is in 1920×1200.
I’ll be looking into the documentation, has to be documented somewhere.
nvidia doc:
http://us.download.nvidia.com/XFree86/Linux-x86_64/190.53/README/
You might want to see the README for your specific driver version, which you find where you download the driver on nvidias site.