<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule">

<channel>
	<title>Fabian Moser &#187; bug</title>
	<atom:link href="http://fabianmoser.at/schlagwort/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://fabianmoser.at</link>
	<description>&#34;as simple as possible, but not simpler&#34;</description>
	<lastBuildDate>Thu, 26 Jan 2012 13:19:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/at/</creativeCommons:license>		<item>
		<title>Enabling the suspend hotkey in KDE4</title>
		<link>http://fabianmoser.at/blog/2010/02/28/enabling-the-suspend-hotkey-in-kde4-2/</link>
		<comments>http://fabianmoser.at/blog/2010/02/28/enabling-the-suspend-hotkey-in-kde4-2/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 09:17:20 +0000</pubDate>
		<dc:creator>Fabian Moser</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Konfiguration]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Thinkpad]]></category>

		<guid isPermaLink="false">http://fabianmoser.at/?p=576</guid>
		<description><![CDATA[There are several reports of problems with the suspend hotkey on KDE4 [1] [2]. And there is even a bug report on that issue. Naturally, I wouldn&#8217;t write about this if I hadn&#8217;t experienced the same problem myself. I solved &#8230; <a href="http://fabianmoser.at/blog/2010/02/28/enabling-the-suspend-hotkey-in-kde4-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are several reports of problems with the suspend hotkey on KDE4 <a title="Sleep Button in KDE 4 Workaround - Helpful Linux Tidbits" href="http://linuxtidbits.wordpress.com/2009/11/12/sleep-button-in-kde-4-workaround/">[1]</a> <a title="When PowerDevil does not recognize the suspend button in KDE 4.2" href="http://linuxbasement.com/content/when-powerdevil-does-not-recognize-suspend-button-kde-42">[2]</a>. And there is even a <a title="KDE Bug Tracking System" href="https://bugs.kde.org/show_bug.cgi?id=181444">bug report</a> on that issue. Naturally, I wouldn&#8217;t write about this if I hadn&#8217;t experienced the same problem myself. I solved it by slightly modifiying the approach described at <a href="http://linuxbasement.com/content/when-powerdevil-does-not-recognize-suspend-button-kde-42">Linux Basement</a>, avoiding the need to create a dedicated shell script somewhere.</p>
<p>This might not have been possible in KDE 4.2 (I haven&#8217;t verified), but it is in KDE SC 4.4. The Input Actions dialog (under System Settings) allows for the configuration of DBus calls from hotkeys. This was configured fast and works painless. I have exported the hotkey group and pasted the content below. To use it, save this as <code>PowerManagement.khotkeys</code> and import it in the Input Actions dialog.</p>

<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;"><span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Data<span style="">&#93;</span></span>
<span style="color: #000099;">DataCount</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Data_1<span style="">&#93;</span></span>
<span style="color: #000099;">Comment</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">Power management mappings of XF86 events</span>
<span style="color: #000099;">DataCount</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span>
<span style="color: #000099;">Enabled</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">true</span>
<span style="color: #000099;">Name</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">Power Management</span>
<span style="color: #000099;">SystemGroup</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span>
<span style="color: #000099;">Type</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">ACTION_DATA_GROUP</span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Data_1Conditions<span style="">&#93;</span></span>
<span style="color: #000099;">Comment</span><span style="color: #000066; font-weight:bold;">=</span>
<span style="color: #000099;">ConditionsCount</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Data_1_1<span style="">&#93;</span></span>
<span style="color: #000099;">Comment</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">Enables suspend hotkey</span>
<span style="color: #000099;">Enabled</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">true</span>
<span style="color: #000099;">Name</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">Suspend</span>
<span style="color: #000099;">Type</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">SIMPLE_ACTION_DATA</span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Data_1_1Actions<span style="">&#93;</span></span>
<span style="color: #000099;">ActionsCount</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Data_1_1Actions0<span style="">&#93;</span></span>
<span style="color: #000099;">Arguments</span><span style="color: #000066; font-weight:bold;">=</span>
<span style="color: #000099;">Call</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">org.freedesktop.PowerManagement.Suspend</span>
<span style="color: #000099;">RemoteApp</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">org.freedesktop.PowerManagement</span>
<span style="color: #000099;">RemoteObj</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">/org/freedesktop/PowerManagement</span>
<span style="color: #000099;">Type</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">DBUS</span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Data_1_1Conditions<span style="">&#93;</span></span>
<span style="color: #000099;">Comment</span><span style="color: #000066; font-weight:bold;">=</span>
<span style="color: #000099;">ConditionsCount</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">0</span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Data_1_1Triggers<span style="">&#93;</span></span>
<span style="color: #000099;">Comment</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">Simple_action</span>
<span style="color: #000099;">TriggersCount</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">1</span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Data_1_1Triggers0<span style="">&#93;</span></span>
<span style="color: #000099;">Key</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">Sleep</span>
<span style="color: #000099;">Type</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">SHORTCUT</span>
<span style="color: #000099;">Uuid</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;"><span style="">&#123;</span>c1706a53-bde8-4364-b0af-71e9c1be6b3f<span style="">&#125;</span></span>
&nbsp;
<span style="color: #000066; font-weight:bold;"><span style="">&#91;</span>Main<span style="">&#93;</span></span>
<span style="color: #000099;">AllowMerge</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">true</span>
<span style="color: #000099;">ImportId</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">Power Management</span>
<span style="color: #000099;">Version</span><span style="color: #000066; font-weight:bold;">=</span><span style="color: #660066;">2</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://fabianmoser.at/blog/2010/02/28/enabling-the-suspend-hotkey-in-kde4-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

