<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.xfce.org/extern.php?action=feed&amp;tid=6893&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Xfce Forums / How to auto switch monitor when laptop dock/undock?]]></title>
		<link>http://forum.xfce.org/viewtopic.php?id=6893</link>
		<description><![CDATA[The most recent posts in How to auto switch monitor when laptop dock/undock?.]]></description>
		<lastBuildDate>Sun, 06 Jan 2013 16:46:24 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: How to auto switch monitor when laptop dock/undock?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=28469#p28469</link>
			<description><![CDATA[<p>Sorry for bumping an old topic, but I was looking for the very same thing.</p><div class="codebox"><pre><code>while true; do nice -n 19 xrandr --auto; sleep 2; done</code></pre></div><p>Seems to work as expected and doesn&#039;t really take such a big load as I&#039;ve hought.</p>]]></description>
			<author><![CDATA[dummy@example.com (churchyard)]]></author>
			<pubDate>Sun, 06 Jan 2013 16:46:24 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=28469#p28469</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to auto switch monitor when laptop dock/undock?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25723#p25723</link>
			<description><![CDATA[<p>It would be nice to merge/integrate xfce display settings and arandr, or maybe just to have a button in display settings to launch arandr , since these two are a bit &quot;overlapping&quot; ...</p><p>EDIT: following your idea, I&#039;ve added a keyboard shortcut to &quot;reset displays&quot; that runs</p><div class="codebox"><pre><code>xrandr --auto</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (paolo321)]]></author>
			<pubDate>Sun, 08 Apr 2012 20:17:31 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25723#p25723</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to auto switch monitor when laptop dock/undock?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25694#p25694</link>
			<description><![CDATA[<p>After jumping ship from GNOME to Xfce I started down this route of automation like this but then realised it&#039;s not quite with the lightweight mantra of the system. Anyhow, I ended up with a pretty neat solution:</p><ul><li><p>Install arandr</p></li><li><p>Create and save a layout for each of my setups</p></li><li><p>Add a monitor selection menu to my bottom panel for switching</p></li><li><p>Add a keyboard shortcut that runs &quot;just the laptop monitor&quot; that I can use in a pinch</p></li></ul><p>Works REALLY well, if I unplug my main screen I can just CTRL+SHIFT+ALT+L and get just my laptop screen visible where I can then pick out a preset or setup a new monitor:</p><p><span class="postimg"><img src="http://img835.imageshack.us/img835/3893/screenshot070412122321.png" alt="screenshot070412122321.png" /></span></p>]]></description>
			<author><![CDATA[dummy@example.com (oodavid)]]></author>
			<pubDate>Sat, 07 Apr 2012 11:40:39 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25694#p25694</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to auto switch monitor when laptop dock/undock?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25470#p25470</link>
			<description><![CDATA[<p>Thanks very much everyone, arandr for now I think, but I&#039;ll keep an eye on this thread in case something comes up<br />Cheers</p>]]></description>
			<author><![CDATA[dummy@example.com (rogerdean)]]></author>
			<pubDate>Tue, 27 Mar 2012 07:02:32 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25470#p25470</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to auto switch monitor when laptop dock/undock?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25407#p25407</link>
			<description><![CDATA[<p><a href="http://www.signal11.us/oss/udev/" rel="nofollow">http://www.signal11.us/oss/udev/</a><br />specifically &quot;libudev - Monitoring Interface&quot; would be of use.</p>]]></description>
			<author><![CDATA[dummy@example.com (eric_the_idiot)]]></author>
			<pubDate>Wed, 21 Mar 2012 16:04:08 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25407#p25407</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to auto switch monitor when laptop dock/undock?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25401#p25401</link>
			<description><![CDATA[<p>the monitor event theoretically COULD be detected someway, but basically that would involve constant polling (almost by the second, to register with the immediacy that most average users expect) the port to detect if there was a device connected or not. i cant speak with certainty on the issue because my coding experience only goes so far as web technologies, but i think its safe to say that constant background process of poll after poll would be quite resource intensive.</p>]]></description>
			<author><![CDATA[dummy@example.com (lifeinthegrey)]]></author>
			<pubDate>Wed, 21 Mar 2012 06:15:16 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25401#p25401</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to auto switch monitor when laptop dock/undock?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25396#p25396</link>
			<description><![CDATA[<p>not sure about it... but I imagine that the &quot;monitor connected&quot; event could be detected someway (udev ???), and then it would be possible to run custom scripts with arandr ...</p><p>Just googled <a href="http://stackoverflow.com/questions/1430840/will-linux-emit-event-when-monitor-connect-with-d-sub-connector" rel="nofollow">http://stackoverflow.com/questions/1430 … -connector</a> ...<br />there are other interesting resources: <a href="https://encrypted.google.com/search?hl=en&amp;q=linux+detect+event+monitor+connected" rel="nofollow">https://encrypted.google.com/search?hl= … +connected</a></p>]]></description>
			<author><![CDATA[dummy@example.com (paolo321)]]></author>
			<pubDate>Tue, 20 Mar 2012 20:12:16 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25396#p25396</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to auto switch monitor when laptop dock/undock?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25353#p25353</link>
			<description><![CDATA[<p>Personally, I just use arandr to activate/deactivate monitors on the fly. Its not &quot;automatic&quot; persay, but it is certainly a simpler option than any other option I&#039;ve seen. I use Wheezy XFCE as well.</p>]]></description>
			<author><![CDATA[dummy@example.com (lifeinthegrey)]]></author>
			<pubDate>Sat, 17 Mar 2012 09:06:31 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25353#p25353</guid>
		</item>
		<item>
			<title><![CDATA[How to auto switch monitor when laptop dock/undock?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25344#p25344</link>
			<description><![CDATA[<p>Hello all</p><p>I&#039;m a refugee from gnome, having a go with Wheezy XFCE. I have a Thinkpad X60s and dock with monitor. </p><p>When I dock the laptop I&#039;d like the external monitor only to be active and at the right resolution, and when I undock I&#039;d like the laptop screen to reactivate (which it doesn&#039;t at present). Right now I have a shortcut to Display prefs on my desktop, but I&#039;m sure there must be a better way than this? </p><p>Any thoughts appreciated. Allbest<br />Roger</p>]]></description>
			<author><![CDATA[dummy@example.com (rogerdean)]]></author>
			<pubDate>Fri, 16 Mar 2012 07:06:26 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25344#p25344</guid>
		</item>
	</channel>
</rss>
