<?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>blog.tordeu.com &#187; GNOME</title>
	<atom:link href="http://blog.tordeu.com/?cat=51&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://blog.tordeu.com</link>
	<description>a blog about stuff</description>
	<lastBuildDate>Thu, 25 Apr 2013 07:03:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.2</generator>
		<item>
		<title>Disable GNOME3&#8242;s Habbit Of Turning Off The Display After Some Time.</title>
		<link>http://blog.tordeu.com/?p=292</link>
		<comments>http://blog.tordeu.com/?p=292#comments</comments>
		<pubDate>Sun, 15 Jan 2012 04:29:32 +0000</pubDate>
		<dc:creator>tordeu</dc:creator>
				<category><![CDATA[Command Line]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[GUI]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.tordeu.com/?p=292</guid>
		<description><![CDATA[Gnome3 has the annoying habbit of turning off the monitor after a while, even if you are watching a video. Unfortunately, if you go to System Settings &#62; Screen   you will be surprised that if offers you the possibility to change the time the system has to be idle for the monitor to be <a href='http://blog.tordeu.com/?p=292'>[...]</a>]]></description>
				<content:encoded><![CDATA[<p>Gnome3 has the annoying habbit of turning off the monitor after a while, even if you are watching a video. Unfortunately, if you go to</p>
<address>System Settings &gt; Screen</address>
<address> </address>
<p>you will be surprised that if offers you the possibility to change the time the system has to be idle for the monitor to be turned off from 1 minute to 1 hour. But what is missing is an option to turn this function off entirely.</p>
<p>Fortunately, it is possible to do that, just not in System Settings and you can either do that from command line or with a GUI.</p>
<p><span id="more-292"></span></p>
<h2>Explanation</h2>
<p>I will not explain GSettings here, but just in case you don&#8217;t know: GSettings (which replaces GConf) is used to store the configuration of the GNOME desktops. Don&#8217;t worry, you don&#8217;t need to know GSettings to follow the instructions below. But GSettings is also used to store the information about when to turn off the display. The keys that are important here are the following:</p>
<pre>org.gnome.settings-daemon.plugins.power sleep-display-ac
org.gnome.settings-daemon.plugins.power sleep-display-battery
org.gnome.desktop.session idle-delay</pre>
<p>Those are the keys that the System Settings GUI is changing when you use it.</p>
<p>The first two determine when the display is turned off (on a desktop system that is always plugged in the first value is the important one. The second key is used in case the system is running on a battery, which is important for portable devices like notebooks and tablets).</p>
<p>The third key is important, because it is used to determine when to start the screensaver and lock the screen, although there are additional values that target those two in org.gnome.desktop.session.</p>
<p><span style="text-decoration: underline;">The values of all three keys are in seconds (so a value of 600 stands for 600s = 10min).</span></p>
<p>But because the System Settings GUI does change these three keys altogether and there is a connection between these three, it is probably a good idea for most people to change all three to the same value by hand as well.</p>
<p>&nbsp;</p>
<h2>Using Command Line</h2>
<p>You can use the gsettings command to change the values of the keys.</p>
<p>First, let&#8217;s see what the values of these keys are. You can do that by running the following three commands.</p>
<pre>gsettings get org.gnome.settings-daemon.plugins.power sleep-display-ac
gsettings get org.gnome.settings-daemon.plugins.power sleep-display-battery
gsettings get org.gnome.desktop.session idle-delay</pre>
<p>Each command will print the value of the given key. You will notice (most likely) that all three values are equal and that they reflect the value that is displayed in System Settings. If you change the value in System Settings, you will notice that these three keys do change accordingly.</p>
<p>To set these by hand you can use the following three commands:</p>
<pre>gsettings set org.gnome.settings-daemon.plugins.power sleep-display-ac &lt;value&gt;
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery &lt;value&gt;
gsettings set org.gnome.desktop.session idle-delay &lt;value&gt;</pre>
<p>Just replace &lt;value&gt; with the number of seconds you want the system to wait before turning off the display (and potentially locking the screen). To tell the system that it should let the display turned on forever, you can use the value 0:</p>
<pre>gsettings set org.gnome.settings-daemon.plugins.power sleep-display-ac 0
gsettings set org.gnome.settings-daemon.plugins.power sleep-display-battery 0
gsettings set org.gnome.desktop.session idle-delay 0</pre>
<p>&nbsp;</p>
<h2>Using A GUI</h2>
<p>To change the keys you can use &#8220;dconf Editor &#8220;. You can start the program by one of the following ways:</p>
<ul>
<li>go to Applications and either</li>
<ul>
<li>search for dconf or</li>
<li>look for it under &#8220;System Tools&#8221; or</li>
</ul>
<li>press Alt+F2 and enter: dconf-editor or</li>
<li>open a terminal and run &#8220;dconf-editor&#8221;</li>
</ul>
<p>Once dconf Editor starts, you will see the following window:</p>
<div id="attachment_297" class="wp-caption aligncenter" style="width: 534px"><a href="http://blog.tordeu.com/wp-content/uploads/2012/01/1.png"><img class="size-full wp-image-297 " title="dconf-editor_1" src="http://blog.tordeu.com/wp-content/uploads/2012/01/1.png" alt="dconf-editor 1" width="524" height="463" /></a><p class="wp-caption-text">The dconf-editor window after starting the I</p></div>
<p>On the left side you now need to navigate to &#8220;org.gnome.settings-daemon.plugins.power&#8221; (that means: open &#8220;org&#8221;, then &#8211; within &#8220;org&#8221; &#8211; open &#8220;gnome&#8221; and so on until you reach &#8220;power&#8221;). Then, you need to find the keys &#8220;sleep-display-ac&#8221; and &#8220;sleep-display-battery&#8221; on the right side:</p>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 696px"><a href="http://blog.tordeu.com/wp-content/uploads/2012/01/2b.png"><img class="size-full wp-image-301" title="dconf-editor 2b" src="http://blog.tordeu.com/wp-content/uploads/2012/01/2b.png" alt="dconf-editor 2b" width="686" height="596" /></a><p class="wp-caption-text">The dconf-edtior window after navigating to the first key</p></div>
<p>Change both numbers to 0 to prevent the system from turning off the display.</p>
<p>After that you should navigate to &#8220;org.gnome.desktop.session&#8221; on the left side and change the key &#8220;idle-delay&#8221; (on the right side) to 0 as well.</p>
<p>After that, just quit the editor (the changes are automatically saved).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tordeu.com/?feed=rss2&#038;p=292</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
