<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Make Tech Easier&#187; xrandr</title>
	<atom:link href="http://maketecheasier.com/tag/xrandr/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Sun, 12 Feb 2012 15:58:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Change Linux Displays on the Fly with Disper</title>
		<link>http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22</link>
		<comments>http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22#comments</comments>
		<pubDate>Wed, 22 Dec 2010 13:00:46 +0000</pubDate>
		<dc:creator>Tavis J. Hampton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Disper]]></category>
		<category><![CDATA[displays]]></category>
		<category><![CDATA[monitors]]></category>
		<category><![CDATA[Nvidia]]></category>
		<category><![CDATA[screens]]></category>
		<category><![CDATA[twinview]]></category>
		<category><![CDATA[xrandr]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=26417</guid>
		<description><![CDATA[Using Linux on a laptop has always been a hit and miss affair. With sometimes obscure proprietary hardware, many laptop manufacturers have showed no interest in supporting the free operating system. Nevertheless, through hard work by developers and support from some hardware manufacturers, Linux now supports a wide variety of laptops and netbooks. Many laptop [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22&amp;title=How+to+Change+Linux+Displays+on+the+Fly+with+Disper&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22">How to Change Linux Displays on the Fly with Disper</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-26419" title="video-display" src="http://imagecdn.maketecheasier.com/2010/12/disper-video-display.jpg" alt="Monitor display (oxygen icon set)" width="128" height="128" />Using Linux on a laptop has always been a hit and miss affair.  With sometimes obscure proprietary hardware, many laptop manufacturers have showed no interest in supporting the free operating system.  Nevertheless, through hard work by developers and support from some hardware manufacturers, Linux now supports a wide variety of laptops and netbooks.</p>
<p>Many laptop owners often connect their machines to external displays, whether monitors, televisions, or projectors.  For display chips that support XrandR, the setup is usually rather simple.  For users with Nvidia chips, it is still easy but not quick.  To switch to an external display, you either have to configure it in the <em>xorg.conf</em> file to automatically recognize it or use <em>nvidia-settings</em> and click through a series of options each time you want to use it.</p>
<p>With Disper, a free on-the-fly display switching utility, you can quickly and easily switch to an external display, clone your screens, extend a display, and choose from any of the supported resolutions.  Disper is a command line utility, but after a few initial command entries, you can easily bind it to a shortcut key or run it from a single command by using a basic script.<br />
<span id="more-26417"></span></p>
<h3>Installation</h3>
<p>The Disper website lists binary package archives for Ubuntu, ArchLinux, and OpenSUSE.   Follow your distribution&#8217;s normal installation procedures to install.  For all other distributions, Disper uses python and is easy to install from source.   To install:</p>
<p>1. <a href="http://willem.engen.nl/projects/disper/" target="_blank">Download the latest version</a></p>
<p>2. Open a terminal window</p>
<p>3.. Extract the contents of the archive:</p>
<p><pre lang="bash">tar zxvf disper_0.2.3.tar.gz</pre></p>
<p>4. Go to the <em>src/</em> directory:</p>
<p><pre lang="bash">cd trunk/src</pre></p>
<p>5. Type:</p>
<p><pre lang="bash">make install</pre></p>
<p>Alternative, you can run the program without installing, directly from the src directory:</p>
<p><pre lang="bash">./cli.py</pre></p>
<h3>Initial Setup</h3>
<p>Disper should recognize your VGA, DVI, or HDMI connection right away. The first thing to do with Disper is to identify your displays.  Enter the following command:</p>
<p><pre lang="bash">disper &#8211;list</pre></p>
<p>The output will look like this:</p>
<p><pre lang="bash">display DFP-0: HannStar Display Corp HSD121PHW1<br />
resolutions: &#8230;960&#215;540, 832&#215;624, 1024&#215;768, 1366&#215;768<br />
display DFP-1: SONY TV<br />
resolutions: &#8230;1400&#215;1050, 1600&#215;1024, 1680&#215;1050, 1280&#215;720, 1920&#215;1080</pre></p>
<p><strong>Note</strong>: I truncated the lower resolutions, but the full list will show all of them.</p>
<h3>Usage</h3>
<p>If you just want to clone your display, you can enter one command:</p>
<p><pre lang="bash">disper -c</pre></p>
<p><img class="aligncenter size-full wp-image-26420" title="Cloned displays" src="http://imagecdn.maketecheasier.com/2010/12/disper-extended-screens-right-left.jpg" alt="Cloned displays in 1024x768" width="577" height="216" /></p>
<p>Unfortunately, if your device has an odd maximum resolution like my netbook (1366&#215;768), this will result in both screens switching to something like 1024&#215;768.  That may be fine for projectors, but if you want to play movies, TV shows, or games on your television, for example, you will want to use custom settings.</p>
<p>For example, if I wanted to display only on my television in 720p resolution, I would enter:</p>
<p><pre lang="bash">disper -S -r 1280&#215;720</pre></p>
<p>The uppercase &#8220;S&#8221; refers to the external display.  To switch back to the default netbook display, I would enter:</p>
<p><pre lang="bash">disper -s</pre></p>
<p>This will automatically detect the default resolution and return to it.  (Notice the lowercase &#8220;s&#8221;).</p>
<p>At any time, you can have Disper display the current settings with:</p>
<p><pre lang="bash">disper -p</pre></p>
<p>The output will look like:</p>
<p><pre lang="bash">backend: nvidia<br />
associated displays: DFP-0<br />
metamode: DFP-0: 1366&#215;768 @1366&#215;768 +0+0<br />
scaling: aspect-scaled</pre></p>
<p>Extending the displays takes advantage of Nvidia&#8217;s Twinview, all with a single command.  For example, if I wanted two screens, with my TV screen above my laptop, I would type:</p>
<p><pre lang="bash">disper -e -r 1366&#215;768,1920&#215;1080 -t top</pre></p>
<p>This would give me a normal laptop screen plus a 1080p full resolution TV screen.</p>
<p><img class="aligncenter size-full wp-image-26421" title="extended-screens-nq8" src="http://imagecdn.maketecheasier.com/2010/12/disper-extended-screens.jpg" alt="Netbook screen with TV screen in 1080p" width="577" height="555" /></p>
<h3>Simplifying</h3>
<p>While typing in disper commands may be simple for some, others may not see it as having much of an advantage over using nvidia-settings or a graphical frontend for XrandR.  To truly make it simple, you need to create a script and/or menu shortcuts.</p>
<p>For switching to the Sony TV, as in the example above, the script could be as simple as:</p>
<p><pre lang="bash">#!/bin/sh<br />
disper -S -r 1280&#215;720</pre></p>
<p>Make sure to make your script executable with:</p>
<p><pre lang="bash">chmod a+x script-name</pre></p>
<p><img class="alignncenter size-full wp-image-26422" title="kmenuedit" src="http://imagecdn.maketecheasier.com/2010/12/disper-kmenuedit.png" alt="KDE menu editor, adding disper custom script" width="577" height="278" /></p>
<p>You could also come up with something more complex that will automatically detect displays and switch back and forth.  You could then bind the command to a shortcut using your desktop environment (For example, in KDE, use kmenuedit, where you can assign a keyboard shortcut to a command).  You can also create a script for each setting and then easily switch to the one you need from the run command dialog (Alt+F2).</p>
<p>For more information about Disper and links to custom scripts to make switching displays easier, visit the <a href="http://willem.engen.nl/projects/disper/" target="_blank">project&#8217;s website</a>.</p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22&amp;title=How+to+Change+Linux+Displays+on+the+Fly+with+Disper&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22">How to Change Linux Displays on the Fly with Disper</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/change-linux-displays-on-the-fly-with-disper/2010/12/22/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Run Fullscreen Games In Linux With Dual Monitors</title>
		<link>http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01</link>
		<comments>http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01#comments</comments>
		<pubDate>Mon, 01 Mar 2010 13:00:28 +0000</pubDate>
		<dc:creator>Tavis J. Hampton</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[dual monitors]]></category>
		<category><![CDATA[dual screens]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[twinview]]></category>
		<category><![CDATA[wine]]></category>
		<category><![CDATA[xinerama]]></category>
		<category><![CDATA[xrandr]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=12999</guid>
		<description><![CDATA[As with all operating systems, the way a Linux game behaves on a computer is largely dependent on the design of the game, the graphics hardware and drivers the user has, and the settings one chooses. Native Linux games are typically better at supporting the computer&#8217;s default resolution without much tweaking, but the way it [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01&amp;title=How+to+Run+Fullscreen+Games+In+Linux+With+Dual+Monitors&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01">How to Run Fullscreen Games In Linux With Dual Monitors</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-13008" title="gaming-world-of-goo-nq8" src="http://imagecdn.maketecheasier.com/2010/03/gaming-world-of-goo-nq8.jpg" alt="world-of-goo-nq8" width="575" height="180" /></p>
<p>As with all operating systems, the way a Linux game behaves on a computer is largely dependent on the design of the game, the graphics hardware and drivers the user has, and the settings one chooses. Native Linux games are typically better at supporting the computer&#8217;s default resolution without much tweaking, but the way it handles fullscreen display on a a dual-monitor system depends on the game engine employed.</p>
<p>After about an hour of trying to configure all of your games, you might very well find yourself drowning in sea of techno-babble and configuration files. But have no fear, MakeTechEasier has come to your rescue yet again.<br />
<span id="more-12999"></span><br />
This brief guide to various types of games you can run in Linux on a dual-monitor system is based on my experience with an Nvidia 3D graphics card and the accompanying proprietary drivers. Nevertheless, most of it will apply to all 3D graphics cards. This guide also assumes that you already have your dual-monitor setup functioning by utilizing <a href="http://en.wikipedia.org/wiki/Xinerama">Xinerama</a>, TwinView, <a href="http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01">XRandR</a>, or some other method. This does not apply to dual-monitor setups that use separate Xorg instances for each monitor.</p>
<h3>The Problem</h3>
<p>When running a game, either as a native Linux application or through Wine, you have probably encountered one of these situations:</p>
<p>1. The game takes over both monitors and stretches the images over both.</p>
<p>2. One screen goes dark, and the other screen displays the game correctly. This may be found for many users.</p>
<p>3. The game maximizes on one screen, but it is not the screen you want to use.</p>
<h3>The Solutions</h3>
<p>Unfortunately, there is no one solution for all three situations, but there are a few ways to fix them, depending on your preferences.</p>
<p><strong>Windowed Play</strong></p>
<p>Although this may seem like more of a workaround, you can actually have a game run in a window and then turn that window into a fullscreen one. Follow these steps:</p>
<p>1. Configure the game to run in a window. For many Linux games, this might involve editing the configuration file, usually found in <em>~/.game-name/</em></p>
<p>2. Set the game&#8217;s resolution to your desktop&#8217;s exact resolution.</p>
<p>3. Start the game.</p>
<p>4. Use your window manager to make the window full screen (In KDE, right-click on the title bar, hover over &#8216;Advanced&#8217; and click &#8216;Fullscreen&#8217;. You can also use a shortcut key, if configured. In some games, the &#8216;Fullscreen&#8217; option will be unavailable. For these, choose &#8216;No Border&#8217;.)</p>
<p>As you might have noticed, Windowed Play has its disadvantages, particularly if your window manager does not have its own fullscreen feature. The biggest advantage is that, if you are like me and are supposed to be working rather than playing games, you can still at least have a business or work app open on the other screen to offer some semblance of efficiency.</p>
<p><img class="alignnone size-full wp-image-13001" title="yo-frankie" src="http://imagecdn.maketecheasier.com/2010/03/gaming-yo-frankie.jpg" alt="Yo Frankie played on a dual-monitor Linux system" width="575" height="180" /></p>
<p><strong>Single Full Screen</strong></p>
<p>On nearly all native Linux games that I have encountered, you can achieve true fullscreen results simply by configuring the game to use the resolution of one monitor. This, however, does not guarantee that it will be on the screen you want.</p>
<p>A universal method is to use xrandr to turn off one of the monitors. For example, you can run the following command in a terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$  xrandr <span style="color: #660033;">--output</span> MONITORNAME <span style="color: #660033;">--off</span></pre></div></div>

<p>There are also graphical xrandr programs available, such as <em>krandtray</em> (Resize and Rotate) or <em>gnome-randr-applet</em> (Display Geometry Switcher). In either case, simply select the monitor you want to turn off and disable it, or in the case of a large virtual display (such as the kind with TwinView), select the smaller resolution.</p>
<p>For SDL games, you can setup an environment variable that will force it to use the screen you want, and this will dim the unused screen as long as you are playing.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$  <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">SDL_VIDEO_FULLSCREEN_HEAD</span>=<span style="color: #000000;">2</span></pre></div></div>

<p>The number indicates the display number of the monitor, so change it according to your needs. You can even plug this into the game&#8217;s startup script and make it all automatic.</p>
<p><img class="alignnone size-full wp-image-13002" title="maryo-nq8" src="http://imagecdn.maketecheasier.com/2010/03/gaming-maryo-nq8.jpg" alt="Secret Maryo Chronicles on a dual-monitor Linux system" width="575" height="180" /></p>
<p><strong>Windows Games in Wine</strong></p>
<p>There is an easy way to use a windowed mode in Wine:</p>
<p>1. Start Wine Configuration (winecfg)</p>
<p>2. Click on the &#8216;Graphics&#8217; tab</p>
<p>3. Check &#8216;Emulate a virtual desktop&#8217;</p>
<p>4. Next to &#8216;Desktop size&#8217; enter your exact screen resolution.</p>
<p><img class="alignnone size-full wp-image-13003" title="assassins-creed-nq8" src="http://imagecdn.maketecheasier.com/2010/03/gaming-assassins-creed-nq8.jpg" alt="Assassin's Creed in Wine on a dual-monitor Linux system" width="575" height="180" /></p>
<p>When you start Wine applications, it will have a Windows desktop in the background. When starting games, the games should go fullscreen with no window border.</p>
<p>This should prevent Windows games from stretching over both screens and give you a fullscreen experience.</p>
<p>There are other options available for fullscreen gaming on dual monitors, and the only way to find the best method for your setup is to experiment with different techniques.</p>
<p><!--adsense#468x60--></p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01&amp;title=How+to+Run+Fullscreen+Games+In+Linux+With+Dual+Monitors&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01">How to Run Fullscreen Games In Linux With Dual Monitors</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/run-fullscreen-games-in-linux-with-dual-monitors/2010/03/01/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How To Setup Dual Monitors With XRandR</title>
		<link>http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01</link>
		<comments>http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01#comments</comments>
		<pubDate>Mon, 01 Jun 2009 21:47:19 +0000</pubDate>
		<dc:creator>Tavis J. Hampton</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[dual screens]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[monitors]]></category>
		<category><![CDATA[xorg]]></category>
		<category><![CDATA[xrandr]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=5053</guid>
		<description><![CDATA[Dual monitor setup in Linux has never been easier. While methods such as the xinerama extension sometimes drive people insane, using RandR (Resize and Rotate) is quick and painless. This will allow you to use both monitors as one big screen instead of two identical ones (cloning). Follow these simple steps to get started. Note: [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01&amp;title=How+To+Setup+Dual+Monitors+With+XRandR&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01">How To Setup Dual Monitors With XRandR</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-5054" src="http://imagecdn.maketecheasier.com/2009/05/xrandr-screens-scaled.jpg" alt="xrandr-screens-scaled" width="570" height="178" /></p>
<p>Dual monitor setup in Linux has never been easier. While methods such as the xinerama extension sometimes drive people insane, using RandR (Resize and Rotate) is quick and painless. This will allow you to use both monitors as one big screen instead of two identical ones (cloning). Follow these simple steps to get started.</p>
<p><em>Note: This HOWTO assumes that you are using the opensource drivers for your video card (ATI or Intel). Nvidia and AMD proprietary drivers come with their dual screen components.</em><span id="more-5053"></span></p>
<p><strong>1. </strong>Setup your xorg.conf configuration file:</p>
<p>Edit it as root:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gksudo gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf</pre></div></div>

<p>(in GNOME) or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">kdesudo kate <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf</pre></div></div>

<p>(in KDE)</p>
<p><strong>2.</strong> Create a subsection under the &#8220;Screen&#8221; section with the following.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">SubSection <span style="color: #ff0000;">&quot;Display&quot;</span>
Depth <span style="color: #000000;">24</span>
Modes <span style="color: #ff0000;">&quot;1440x900&quot;</span> <span style="color: #ff0000;">&quot;1440x900&quot;</span> <span style="color: #666666; font-style: italic;">#the resolutions of your monitors</span>
Virtual <span style="color: #000000;">2880</span> <span style="color: #000000;">800</span>
EndSubSection</pre></div></div>

<p>Xrandr will function without these xorg.conf lines, but it will limit the size of your desktop.</p>
<p>For my computer, I am using two monitors with 1440&#215;900 resolution. If you have a different resolution, put those resolutions under &#8220;modes&#8221; and then combine the width of both for &#8220;virtual&#8221;. In other words, if you have a 1280&#215;800 monitor, it would be &#8220;Virtual 2560 800&#8243;.</p>
<p><strong>3</strong>. Save your changes, exit and restart X.</p>
<p><strong>4</strong>. Now, you can setup your dual screens however you like. First find out some information about the screens. Open a terminal emulator and type:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xrandr <span style="color: #660033;">-q</span></pre></div></div>

<p>It should tell you the name of each screen and its current resolution. On my computer, my screens are &#8220;DVI-0&#8243; and &#8220;DVI-1&#8243;.</p>
<p><strong>5</strong>. To make one large desktop including both screens, run this command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">xrandr <span style="color: #660033;">--auto</span> <span style="color: #660033;">--output</span> DVI-<span style="color: #000000;">0</span> <span style="color: #660033;">--mode</span> 1440x900 <span style="color: #660033;">--right-of</span> DVI-<span style="color: #000000;">1</span></pre></div></div>

<p>DVI-0 is on the right, and DVI-1 is on the left.</p>
<p><strong>6.</strong> Create a script called &#8220;startxrandr&#8221; to run this command whenever you want.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
xrandr <span style="color: #660033;">--auto</span> <span style="color: #660033;">--output</span> DVI-<span style="color: #000000;">0</span> <span style="color: #660033;">--mode</span> 1440x900 <span style="color: #660033;">--right-of</span> DVI-<span style="color: #000000;">1</span></pre></div></div>

<p><strong>7</strong>. Make sure to make the script executable</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x startxrandr</pre></div></div>

<p>That is all it takes. You can play around with it and see all of xrandr&#8217;s commands by running &#8220;xrandr -help&#8221;.</p>
<p><strong>Notes:</strong></p>
<p>There are also a few GUI applications that allow you to control xrandr.  Check with your Linux distribution.</p>
<p>You can set xrandr to run when your display manager or desktop environment starts. See the its documentation for startup applications.</p>
<p>KDE and GNOME will automatically configure two screens correctly so that maximizing a window will only fill one of the screens. Some desktop environments do not yet have support for this. You will have to test the one you use. You should have no problems with Compiz.</p>
<p>You can have two monitors with different resolutions, which is useful if you are using a laptop connected to a larger monitor.</p>
<p>In KDE, each screen will automatically be a different activity, and you can apply different widgets on each.</p>
<p>Some applications, especially those that rely on SDL (like many Linux games), may not honor your xrandr settings. If you are lucky, it will just clone the game on both screens. For applications like Boxee, you will need to set the environment variable before starting it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">SDL_VIDEO_FULLSCREEN_HEAD</span>=<span style="color: #000000;">1</span></pre></div></div>

<p><!--adsense#468x60--></p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01&amp;title=How+To+Setup+Dual+Monitors+With+XRandR&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01">How To Setup Dual Monitors With XRandR</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/how-to-setup-dual-monitors-with-xrandr/2009/06/01/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

