<?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>gHacks technology news &#187; Xorg</title>
	<atom:link href="http://www.ghacks.net/tag/xorg/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 03:24:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Get To Know Linux: Understanding xorg.conf</title>
		<link>http://www.ghacks.net/2009/02/04/get-to-know-linux-understanding-xorgconf/</link>
		<comments>http://www.ghacks.net/2009/02/04/get-to-know-linux-understanding-xorgconf/#comments</comments>
		<pubDate>Wed, 04 Feb 2009 18:29:50 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[linux resolution]]></category>
		<category><![CDATA[linux video configuration]]></category>
		<category><![CDATA[X Windows configuration]]></category>
		<category><![CDATA[Xorg]]></category>
		<category><![CDATA[xorg.conf]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=9651</guid>
		<description><![CDATA[For most Linux users the xorg.conf file is one of those files that makes many Linux users cringe with fear upon the threat of having to configure. There is a reason for that, it&#8217;s complex. But when you have an understanding of the pieces that make up the whole puzzle, configuring X Windows becomes much, [...]]]></description>
			<content:encoded><![CDATA[<p>For most Linux users the <strong>xorg.conf</strong> file is one of those files that makes many Linux users cringe with fear upon the threat of having to configure. There is a reason for that, it&#8217;s complex. But when you have an understanding of the pieces that make up the whole puzzle, configuring X Windows becomes much, much easier.</p>
<p>But now the Linux community has distributions, such as Fedora 10, that do not default to using  an xorg.conf file. This is great news for many users. However, it&#8217;s bad news when, for some reason, X isn&#8217;t working or you have specific needs that the default isn&#8217;t meeting. With that in mind we&#8217;re going to break down the xorg.conf file so that you will be able to troubleshoot your X Windows configuration when something is wrong.</p>
<p><span id="more-9651"></span><strong>The Basics</strong></p>
<p>The first thing you need to know is that xorg.conf (located typically in <strong>/etc/X11</strong>) is broken up into sections. Each section starts with the tag <strong>Section </strong>and ends with the tag <strong>EndSection</strong>. Each section can be broken into subsections as well. A subsections starts with the tag <strong>SubSection</strong> and ends with the tag <strong>EndSubSection</strong>. So a typical section with subsections contains the tags:<code><br />
Section Name<br />
   Section Information<br />
      SubSection Name<br />
      SubSection information<br />
   EndSubSection<br />
EndSection<br />
</code><br />
Of course you can&#8217;t just use random sections. There are specific sections to use. Those sections are:</p>
<ul>
<li>Files &#8211; pathnames for files such as fontpath</li>
<li>ServerFlags &#8211; global Xorg server options</li>
<li>Module &#8211; which modules to load</li>
<li>InputDevice &#8211; keyboard and pointer (mouse)</li>
<li>Device &#8211; video card description/information</li>
<li>Monitor &#8211; display device description</li>
<li>Modes &#8211; define video modes outside of Monitor section</li>
<li>Screen &#8211; binds a video adapter to a monitor</li>
<li>ServerLayout &#8211; binds one or more screens with one or more input devices</li>
<li>DRI &#8211; optional direct rendering infrastructure information</li>
<li>Vendor &#8211; vendor specific information</li>
</ul>
<p>Each section will have different information/options and is set up:</p>
<p><strong>Option Variable</strong></p>
<p>Let&#8217;s take a look at a sample section. We&#8217;ll examine a <strong>Device<em> </em></strong>section from a laptop. The section looks like:</p>
<p><code>Section "Device"<br />
   Identifier "device1"<br />
   VendorName "VIA Technologies, Inc."<br />
   BoardName "VIA Chrome9-based cards"<br />
   Driver "openchrome"<br />
   Option "DPMS"<br />
   Option "SWcursor"<br />
   Option "VBERestore" "true"<br />
EndSection<br />
</code><br />
The above section configures a Via Chrome video card (often a tricky one to get running) using the <em>openchrome</em> driver. Here&#8217;s how this section breaks down:</p>
<ul>
<li>The identifier (labled &#8220;device1&#8243;) connects this section to Screen section with the <em>Device &#8220;device1&#8243; </em>option.</li>
<li>The VendorName and BoardName both come from the make and model of the video adapter.</li>
<li>The Driver is the driver the video card will use.</li>
<li>Option &#8220;DPMS&#8221; &#8211; this enables the Display Power Management System.</li>
<li>Option &#8220;SWcursor&#8221; &#8211; this enables the cursor to be drawn by software (as opposed to the HWcursor drawing by hard ware).</li>
<li>Option &#8220;VBERestore&#8221; &#8220;true&#8221; &#8211; allows a laptop screen to restore from suspend or hibernate.</li>
</ul>
<p>The lengthiest section of your xorg.conf file will most likely be your Screen section. This section will contain all of the subsections that contain the modes (resolutions) for your monitor. This section will start off like this:</p>
<p><code>Section "Screen"<br />
   Identifier "screen1"<br />
   Device "device1"<br />
   Monitor "monitor1"<br />
DefaultColorDepth 24<br />
</code><br />
Notice how the above section references both a device and a monitor. These will refer to other sections in the xorg.conf file. This section also contains the <em>DefaultColorDepth</em> which will define the default color depth for your machine. In the case above the default is 24. Now, take a look below at the SubSections of this section:</p>
<p><code>Subsection "Display"<br />
   Depth 8<br />
   Modes "1440x900" "1280x800"<br />
EndSubsection<br />
Subsection "Display"<br />
   Depth 15<br />
   Modes "1440x900" "1280x800"<br />
EndSubsection<br />
Subsection "Display"<br />
   Depth 16<br />
   Modes "1440x900" "1280x800"<br />
EndSubsection<br />
Subsection "Display"<br />
   Depth 24<br />
   Modes "1440x900" "1280x800"<br />
EndSubsection<br />
EndSection<br />
</code><br />
As you can see there is a SubSection for four different color depths. Included in those subsections is the default 24. So when X reads the DefaultColorDepth option it will automatically attempt to set the modes configured in the <em>Depth 24</em> subsection. Also notice that each subsection contains two resolutions. X will attempt to set the first resolution (in the case above our first default is 1440&#215;900) and move on to the next if it can not set the first. Most likely X will be able to set the first.</p>
<p><strong>Final Thoughts</strong></p>
<p>This is only meant to be an introduction to the xorg.conf configuration file. As you might guess, xorg.conf, can get fairly complex. Add to the complexity numerous options available for each section and you have a valid case to make sure you RTFM (read the fine man page.) And the man page is an outstanding resource to find information on all of the available options. To read the man page issue the command <em>man xorg.conf</em> from the command line.</p>
<p>By having a solid understanding of the xorg.conf file you won&#8217;t have any problems fixing a fubar&#8217;d X installation or tweaking your xorg.conf file to get the most from your new video card.</p>

	Tags: <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/linux-resolution/" title="linux resolution" rel="tag">linux resolution</a>, <a href="http://www.ghacks.net/tag/linux-video-configuration/" title="linux video configuration" rel="tag">linux video configuration</a>, <a href="http://www.ghacks.net/tag/x-windows-configuration/" title="X Windows configuration" rel="tag">X Windows configuration</a>, <a href="http://www.ghacks.net/tag/xorg/" title="Xorg" rel="tag">Xorg</a>, <a href="http://www.ghacks.net/tag/xorgconf/" title="xorg.conf" rel="tag">xorg.conf</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/01/14/fedora-10-and-the-evolution-of-xorg/" title="Fedora 10 and the Evolution of Xorg (January 14, 2009)">Fedora 10 and the Evolution of Xorg</a> (8)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/07/widgets-for-linux-superkaramba/" title="Widgets for Linux: SuperKaramba (December 7, 2006)">Widgets for Linux: SuperKaramba</a> (6)</li>
	<li><a href="http://www.ghacks.net/2006/12/06/widgets-for-linux-gdesklets/" title="Widgets for Linux: gDesklets (December 6, 2006)">Widgets for Linux: gDesklets</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/02/04/get-to-know-linux-understanding-xorgconf/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Fedora 10 and the Evolution of Xorg</title>
		<link>http://www.ghacks.net/2009/01/14/fedora-10-and-the-evolution-of-xorg/</link>
		<comments>http://www.ghacks.net/2009/01/14/fedora-10-and-the-evolution-of-xorg/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 20:24:42 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Desktop Manager]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[Linux video]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[system-config-display]]></category>
		<category><![CDATA[Xorg]]></category>
		<category><![CDATA[xorg.conf]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=9891</guid>
		<description><![CDATA[This is a rant. This is only a rant. If this were a real review you would be notified by your local emergency broadcast station&#8230;Now that I have your attention, I want to direct you to what is happening with the latest version of Fedora and X configuration. If you have installed Fedora 10 and [...]]]></description>
			<content:encoded><![CDATA[<p>This is a rant. This is only a rant. If this were a real review you would be notified by your local emergency broadcast station&#8230;Now that I have your attention, I want to direct you to what is happening with the latest version of Fedora and X configuration. If you have installed Fedora 10 and have had no problems you&#8217;re in luck. If you have installed Fedora 10 and have noticed X Windows not looking as good as it did with 9 (or another distribution) welcome to the new world order of xorg.conf.</p>
<p>With the advent of Fedora 10 xorg.conf does not, by default, install an xorg.conf configuration file. In fact, I had Fedora 10 up and running with an NVidia GeForce 6600 card, with no xorg.conf file. Problem was, I couldn&#8217;t get the installation to run in 1200&#215;1024 resolution. Not until I jumped through a few hoops.</p>
<p><span id="more-9891"></span>One of the first things you should do, when you finish an installation of Fedora 10 is check in <em>/etc/X11</em> to see if there is an xorg.conf file. If there is not you need to issue the command <em>Xorg -configure :1</em>. What this will do is generate a default xorg.conf file based on your hardware.</p>
<p>Your next step can be tackled in a couple of ways. You can edit the xorg.conf file by hand (for advanced users) or you can install the <em>system-config-display </em>application with the command <em>yum install system-config-display</em>. Once you get that installed you can run the application (as root) with the command <em>system-config-display.</em> From that point the GUI tool should be pretty straight foward to use.</p>
<p>Of course, if you are using an NVidia card, you might have to install some proprietary drivers. Open up the Add/Remove Software tool and do a search for nvidia. Select the applicable drivers for your system if you need them. Once you install the drivers you should have the <em>nvidia-settings</em> tool. This will offer you some help in configuring your NVidia card with Fedora 10.</p>
<p>You will notice the default xorg.conf file generated is very bare-bones. And I understand that Xorg is going in a direction that doesn&#8217;t require an xorg.conf file. But there are chipsests out there, such as NVidia, who&#8217;s drivers still require an xorg.conf file. This, to me, seems as if Xorg is getting a bit ahead of itself.</p>
<p><strong>UPDATE: </strong>I can&#8217;t confirm this but the above statement about Xorg going in an xorg.conf&#8217;less direction seems to only be applying to Fedora. If anyone has any information that would indicate other distributions are following suite, let us know. Thanks all!</p>
<p>Now I can&#8217;t complain too much&#8230;X Windows does work out of the box and does a fairly admiriable job. But when you want higher resolutions than the default, you might find yourself jumping through some hoops. I have to admit Linux will find itself in much greener pastures once Xorg no longer requires a configuration file. But I do hope the developers of the various chipsets can get on the same page as the Xorg developer team. If they can&#8217;t Linux is going to find itself with a limited selection of video cards it can work with.</p>

	Tags: <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/linux-video/" title="Linux video" rel="tag">Linux video</a>, <a href="http://www.ghacks.net/tag/nvidia/" title="nvidia" rel="tag">nvidia</a>, <a href="http://www.ghacks.net/tag/system-config-display/" title="system-config-display" rel="tag">system-config-display</a>, <a href="http://www.ghacks.net/tag/xorg/" title="Xorg" rel="tag">Xorg</a>, <a href="http://www.ghacks.net/tag/xorgconf/" title="xorg.conf" rel="tag">xorg.conf</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/02/04/get-to-know-linux-understanding-xorgconf/" title="Get To Know Linux: Understanding xorg.conf (February 4, 2009)">Get To Know Linux: Understanding xorg.conf</a> (7)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/07/widgets-for-linux-superkaramba/" title="Widgets for Linux: SuperKaramba (December 7, 2006)">Widgets for Linux: SuperKaramba</a> (6)</li>
	<li><a href="http://www.ghacks.net/2006/12/06/widgets-for-linux-gdesklets/" title="Widgets for Linux: gDesklets (December 6, 2006)">Widgets for Linux: gDesklets</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/01/14/fedora-10-and-the-evolution-of-xorg/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
