<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Lock your laptop and turn off display with the touch of a keystroke in Ubuntu Karmic</title>
	<atom:link href="http://monda.hu/blog/2010/01/12/lock-your-laptop-and-turn-off-display-with-the-touch-of-a-keystroke-in-ubuntu-karmic/feed/" rel="self" type="application/rss+xml" />
	<link>http://monda.hu/blog/2010/01/12/lock-your-laptop-and-turn-off-display-with-the-touch-of-a-keystroke-in-ubuntu-karmic/</link>
	<description>My reality. Be my guest.</description>
	<lastBuildDate>Sat, 28 Jan 2012 05:07:11 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Laci</title>
		<link>http://monda.hu/blog/2010/01/12/lock-your-laptop-and-turn-off-display-with-the-touch-of-a-keystroke-in-ubuntu-karmic/comment-page-1/#comment-112190</link>
		<dc:creator>Laci</dc:creator>
		<pubDate>Sun, 19 Dec 2010 22:13:54 +0000</pubDate>
		<guid isPermaLink="false">http://monda.hu/blog/?p=821#comment-112190</guid>
		<description>Thanks for trying another workaround, Michael.  Yeah, this bug is quite nasty and there is no workaround except killing gnome-power-manager.</description>
		<content:encoded><![CDATA[<p>Thanks for trying another workaround, Michael.  Yeah, this bug is quite nasty and there is no workaround except killing gnome-power-manager.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael</title>
		<link>http://monda.hu/blog/2010/01/12/lock-your-laptop-and-turn-off-display-with-the-touch-of-a-keystroke-in-ubuntu-karmic/comment-page-1/#comment-112151</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Sun, 19 Dec 2010 06:34:22 +0000</pubDate>
		<guid isPermaLink="false">http://monda.hu/blog/?p=821#comment-112151</guid>
		<description>spoke to soon, that doesn&#039;t work either. you still have to disable gnome-power-manager</description>
		<content:encoded><![CDATA[<p>spoke to soon, that doesn't work either. you still have to disable gnome-power-manager</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael</title>
		<link>http://monda.hu/blog/2010/01/12/lock-your-laptop-and-turn-off-display-with-the-touch-of-a-keystroke-in-ubuntu-karmic/comment-page-1/#comment-112149</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Sun, 19 Dec 2010 06:11:18 +0000</pubDate>
		<guid isPermaLink="false">http://monda.hu/blog/?p=821#comment-112149</guid>
		<description>For those who use xscreensaver, you can get around locking the screen and disabling gnome-power-manager by just using:

xscreensaver-command -activate
sleep 0
xset dpms force off

the sleep 0 is probably not even necessary.</description>
		<content:encoded><![CDATA[<p>For those who use xscreensaver, you can get around locking the screen and disabling gnome-power-manager by just using:</p>
<p>xscreensaver-command -activate<br />
sleep 0<br />
xset dpms force off</p>
<p>the sleep 0 is probably not even necessary.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Laci</title>
		<link>http://monda.hu/blog/2010/01/12/lock-your-laptop-and-turn-off-display-with-the-touch-of-a-keystroke-in-ubuntu-karmic/comment-page-1/#comment-112002</link>
		<dc:creator>Laci</dc:creator>
		<pubDate>Wed, 15 Dec 2010 11:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://monda.hu/blog/?p=821#comment-112002</guid>
		<description>Hey Pablo,

I&#039;ve just tried your method of waiting 5s instead of 3s and it didn&#039;t work.  You may be using an upgraded version of gnome-power-manager which doesn&#039;t have this bug.  Anyways, I&#039;ll update to 10.10 soon and hopefully this problem will get solved.</description>
		<content:encoded><![CDATA[<p>Hey Pablo,</p>
<p>I've just tried your method of waiting 5s instead of 3s and it didn't work.  You may be using an upgraded version of gnome-power-manager which doesn't have this bug.  Anyways, I'll update to 10.10 soon and hopefully this problem will get solved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pablo</title>
		<link>http://monda.hu/blog/2010/01/12/lock-your-laptop-and-turn-off-display-with-the-touch-of-a-keystroke-in-ubuntu-karmic/comment-page-1/#comment-111981</link>
		<dc:creator>Pablo</dc:creator>
		<pubDate>Wed, 15 Dec 2010 02:17:57 +0000</pubDate>
		<guid isPermaLink="false">http://monda.hu/blog/?p=821#comment-111981</guid>
		<description>Hi Lazlo! I&#039;ve been using your script and followed your sugestions, except for removing gnome-power-manager or killing it.

However, I think I&#039;ve found a (quite simple) workaround for this (so called) &quot;bug&quot; (which now I&#039;m not really sure it is so)... just increase the number of seconds to sleep to, lets say... 5.

So, my script goes like this:

#!/bin/bash
gnome-screensaver-command -l
sleep 5
xset -display :0.0 dpms force off

Now, everything works just fine! :)

For those of you who don&#039;t want to lock the screen, I would recommend to sleep 1 sec before executing xset (otherwise it won&#039;t work). So, this second script would include the following lines:

#!/bin/bash
sleep 1
xset -display :0.0 dpms force off

Apparently, it might be that clicking or moving the mouse or maybe pressing the key combo, sends later events... that&#039;s why, Linux first needs some time to deal with those before you can successfully call xset.

Hope this helps you all in my same situation!

Greetings from Argentina! Pablo.</description>
		<content:encoded><![CDATA[<p>Hi Lazlo! I've been using your script and followed your sugestions, except for removing gnome-power-manager or killing it.</p>
<p>However, I think I've found a (quite simple) workaround for this (so called) "bug" (which now I'm not really sure it is so)... just increase the number of seconds to sleep to, lets say... 5.</p>
<p>So, my script goes like this:</p>
<p>#!/bin/bash<br />
gnome-screensaver-command -l<br />
sleep 5<br />
xset -display :0.0 dpms force off</p>
<p>Now, everything works just fine! :)</p>
<p>For those of you who don't want to lock the screen, I would recommend to sleep 1 sec before executing xset (otherwise it won't work). So, this second script would include the following lines:</p>
<p>#!/bin/bash<br />
sleep 1<br />
xset -display :0.0 dpms force off</p>
<p>Apparently, it might be that clicking or moving the mouse or maybe pressing the key combo, sends later events... that's why, Linux first needs some time to deal with those before you can successfully call xset.</p>
<p>Hope this helps you all in my same situation!</p>
<p>Greetings from Argentina! Pablo.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

