<?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>Alex Sleat &#187; monitor</title>
	<atom:link href="https://alexsleat.co.uk/tag/monitor/feed/" rel="self" type="application/rss+xml" />
	<link>https://alexsleat.co.uk</link>
	<description>/home/alex</description>
	<lastBuildDate>Tue, 19 Jun 2012 13:34:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Switching Between Two Resolutions in Linux</title>
		<link>https://alexsleat.co.uk/2011/10/24/switching-between-two-resolutions-in-linux/</link>
		<comments>https://alexsleat.co.uk/2011/10/24/switching-between-two-resolutions-in-linux/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 19:56:06 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[10.10]]></category>
		<category><![CDATA[11.04]]></category>
		<category><![CDATA[11.10]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[resolution]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[settings]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[tv]]></category>
		<category><![CDATA[xorg]]></category>
		<category><![CDATA[xrandr]]></category>

		<guid isPermaLink="false">https://alexsleat.co.uk/?p=22690</guid>
		<description><![CDATA[<br/><p>I have a TV and my monitor connected to my PC by a VGA switch box but what&#8217;s annoying is they aren&#8217;t the same resolution. This causes problems because I can&#8217;t see what I&#8217;m doing when I have switched to TV and usually have to leave the setting manager open so that when I [...]]]></description>
			<content:encoded><![CDATA[<br/><p>I have a TV and my monitor connected to my PC by a VGA switch box but what&#8217;s annoying is they aren&#8217;t the same resolution. This causes problems because I can&#8217;t see what I&#8217;m doing when I have switched to TV and usually have to leave the setting manager open so that when I change between them I just have to hit return and the resolution changes. That&#8217;s great and all but it&#8217;s far more effort than I want for something I do fairly often.</p>
<p>My plan was initially to create two xorg.conf files and switch between them using a script, I figured this would be the easiest way even though I haven&#8217;t messed around with xorg stuff for a few years ever since things just started working better in Linux. Turns out I couldn&#8217;t even find where they keep the xorg.conf file, it sure isn&#8217;t in /etc/X11 where it was the last time I looked..</p>
<p>On the search for this file though I came across another useful tool called xrandr, which essentially allows you to change the resolution from the command line.</p>
<blockquote>
<p style="text-align: left;">Xrandr is used to set the size, orientation and/or reflection of the outputs for a<br />
screen. It can also set the screen size.</p>
<p style="text-align: left;">If invoked without any option, it will dump the state of the outputs, showing the<br />
existing modes for each of them, with a &#8216;+&#8217; after the preferred mode and a &#8216;*&#8217;<br />
after the current mode.</p>
<p style="text-align: left;">There are a few global options. Other options modify the last output that is spec‐<br />
ified in earlier parameters in the command line. Multiple outputs may be modified<br />
at the same time by passing multiple &#8211;output options followed immediately by<br />
their corresponding modifying options.</p>
</blockquote>
<p style="text-align: right;">For more information on xrandr check out the <a href="http://linux.die.net/man/1/xrandr">manual page</a> (or type <em>man xrandr</em> in terminal).</p>
<p style="text-align: left;">It turns out it&#8217;s an extremely easy tool to use, with a command as simple as the following changing the resolution:</p>
<div class="dean_ch" style="white-space: wrap;">xrandr &#8211;output VGA1 &#8211;mode 1440&#215;900</div>
<p>So the next thing I did was create the following script which allows the resolution to switch between 1440&#215;900 and 1360&#215;768 (my monitor and my TV native resolutions).</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#!/bin/bash</span></p>
<p><span class="re2">TV=</span><span class="st0">&quot;1360 x 768&quot;</span><br />
<span class="re2">MONITOR=</span><span class="st0">&quot;1440 x 900&quot;</span></p>
<p><span class="re2">TEST=</span><span class="st0">&quot;$(xrandr | grep current | sed -e &#8216;s/.*current //;s/, maximum.*//&#8217;)&quot;</span></p>
<p><span class="re3">#echo <span class="re1">$TEST</span></span></p>
<p><span class="kw1">if</span> <span class="br0">&#91;</span> <span class="st0">&quot;$TEST&quot;</span> == <span class="st0">&quot;$MONITOR&quot;</span> <span class="br0">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xrandr &#8211;output VGA1 &#8211;mode 1360&#215;768</p>
<p><span class="kw1">elif</span> <span class="br0">&#91;</span> <span class="st0">&quot;$TEST&quot;</span> == <span class="st0">&quot;$TV&quot;</span> <span class="br0">&#93;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xrandr &#8211;output VGA1 &#8211;mode 1440&#215;900</p>
<p><span class="kw1">else</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw3">exit</span></p>
<p><span class="kw1">fi</span></div>
<p>This script simply checks what the current resolution is being used and then toggles between the two set resolutions.</p>
]]></content:encoded>
			<wfw:commentRss>https://alexsleat.co.uk/2011/10/24/switching-between-two-resolutions-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Fix &#8220;Fatal server error: no screens found&#8221; &#124; Ubuntu</title>
		<link>https://alexsleat.co.uk/2011/03/04/how-to-fix-fatal-server-error-no-screens-found-ubuntu/</link>
		<comments>https://alexsleat.co.uk/2011/03/04/how-to-fix-fatal-server-error-no-screens-found-ubuntu/#comments</comments>
		<pubDate>Fri, 04 Mar 2011 12:02:01 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[dual]]></category>
		<category><![CDATA[fatal error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[no screens]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[screens]]></category>
		<category><![CDATA[startx]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubunut]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[where is xorg.conf]]></category>
		<category><![CDATA[x11]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">https://alexsleat.co.uk/?p=12283</guid>
		<description><![CDATA[<br/><p>If you&#8217;re running off a live USB disk or changing your graphics card the error below might appear when Xorg is looking for the wrong drivers or device. You might also get this error while using the Nvidia drivers, I found however this was caused by some of the extra options added into the [...]]]></description>
			<content:encoded><![CDATA[<br/><p>If you&#8217;re running off a live USB disk or changing your graphics card the error below might appear when Xorg is looking for the wrong drivers or device. You might also get this error while using the Nvidia drivers, I found however this was caused by some of the extra options added into the xorg.conf file (usually located /etc/X11/xorg.conf). If the case is that it&#8217;s a problem with the aditional options I suggest making a backup of the file and attempting to comment out (#) aditional options, this will need a bit more of an expert eye to see what isn&#8217;t needed though.. You can also use the following to rollback to a working version when using the Nvidia drivers.</p>
<p>There is a pretty simple fix, if it is caused by broken or changed xorg.conf file:</p>
<p><strong>Fix:</strong><br />
Make a backup of your current Xorg.conf, just in case something goes even more wrong and it can be easily restored:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> <span class="kw2">cp</span> /etc/X11/xorg.conf /etc/X11/xorg.bckup</div>
<p>Now you&#8217;ll want to restore the failsafe <em>(sometimes called xorg.conf.backup)</em> config to be used as the default:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> <span class="kw2">cp</span> /etc/X11/xorg.conf.failsafe /etc/X11/xorg.conf</div>
<p>Yeah, it was that simple (if this error was caused by a broken or changed xorg.conf anyway. So you can continue and start the x server with:</p>
<div class="dean_ch" style="white-space: wrap;">startx</div>
<p><strong>Error:</strong></p>
<div class="dean_ch" style="white-space: wrap;">X.Org X Server <span class="nu0">1.9</span><span class="nu0">.0</span><br />
Release Date: <span class="nu0">2010</span><span class="nu0">-08</span><span class="nu0">-20</span><br />
X Protocol Version <span class="nu0">11</span>, Revision <span class="nu0">0</span><br />
Build Operating System: Linux <span class="nu0">2.6</span><span class="nu0">.24</span><span class="nu0">-27</span>-server i686 Ubuntu<br />
Current Operating System: Linux ubuntu <span class="nu0">2.6</span><span class="nu0">.35</span><span class="nu0">-22</span>-generic <span class="re3">#<span class="nu0">33</span>-Ubuntu SMP Sun Sep <span class="nu0">19</span> <span class="nu0">20</span>:<span class="nu0">34</span>:<span class="nu0">50</span> UTC <span class="nu0">2010</span> i686</span><br />
Kernel <span class="kw3">command</span> line: noprompt cdrom-detect/try-<span class="re2">usb=</span>true persistent <span class="re2">file=</span>/cdrom/preseed/ubuntu.seed <span class="re2">boot=</span>casper <span class="re2">initrd=</span>/casper/initrd.lz quiet splash &#8212; maybe-ubiquity<br />
Build Date: <span class="nu0">16</span> September <span class="nu0">2010</span> &nbsp;<span class="nu0">05</span>:<span class="nu0">39</span>:22PM<br />
xorg-server <span class="nu0">2</span>:<span class="nu0">1.9</span><span class="nu0">.0</span>-0ubuntu7 <span class="br0">&#40;</span>For technical support please see http://www.ubuntu.com/support<span class="br0">&#41;</span> <br />
Current version of pixman: <span class="nu0">0.18</span><span class="nu0">.4</span><br />
&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Before reporting problems, check http://wiki.x.org<br />
&nbsp; &nbsp; &nbsp; &nbsp; to <span class="kw2">make</span> sure that you have the latest version.<br />
Markers: <span class="br0">&#40;</span>&#8211;<span class="br0">&#41;</span> probed, <span class="br0">&#40;</span>**<span class="br0">&#41;</span> from config <span class="kw2">file</span>, <span class="br0">&#40;</span>==<span class="br0">&#41;</span> default setting,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#40;</span>++<span class="br0">&#41;</span> from <span class="kw3">command</span> line, <span class="br0">&#40;</span>!!<span class="br0">&#41;</span> notice, <span class="br0">&#40;</span>II<span class="br0">&#41;</span> informational,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#40;</span>WW<span class="br0">&#41;</span> warning, <span class="br0">&#40;</span>EE<span class="br0">&#41;</span> error, <span class="br0">&#40;</span>NI<span class="br0">&#41;</span> not implemented, <span class="br0">&#40;</span>??<span class="br0">&#41;</span> unknown.<br />
<span class="br0">&#40;</span>==<span class="br0">&#41;</span> Log <span class="kw2">file</span>: <span class="st0">&quot;/var/log/Xorg.0.log&quot;</span>, Time: Fri Mar &nbsp;<span class="nu0">4</span> <span class="nu0">11</span>:<span class="nu0">35</span>:<span class="nu0">54</span> <span class="nu0">2011</span><br />
<span class="br0">&#40;</span>==<span class="br0">&#41;</span> Using config <span class="kw2">file</span>: <span class="st0">&quot;/etc/X11/xorg.conf&quot;</span><br />
<span class="br0">&#40;</span>==<span class="br0">&#41;</span> Using system config directory <span class="st0">&quot;/usr/share/X11/xorg.conf.d&quot;</span><br />
<span class="br0">&#40;</span>EE<span class="br0">&#41;</span> No devices detected.</p>
<p>Fatal server error:<br />
no screens found</p>
<p>Please consult the The X.Org Foundation support <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;at http://wiki.x.org<br />
&nbsp;<span class="kw1">for</span> <span class="kw3">help</span>. <br />
Please also check the log <span class="kw2">file</span> at <span class="st0">&quot;/var/log/Xorg.0.log&quot;</span> <span class="kw1">for</span> additional information.</p>
<p>&nbsp;ddxSigGiveUp: Closing log<br />
giving up.<br />
xinit: No such <span class="kw2">file</span> or directory <span class="br0">&#40;</span>errno <span class="nu0">2</span><span class="br0">&#41;</span>: unable to connect to X server<br />
xinit: No such process <span class="br0">&#40;</span>errno <span class="nu0">3</span><span class="br0">&#41;</span>: Server error.</div>
]]></content:encoded>
			<wfw:commentRss>https://alexsleat.co.uk/2011/03/04/how-to-fix-fatal-server-error-no-screens-found-ubuntu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
