<?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=6158&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Xfce Forums / xfce power manager and power button]]></title>
		<link>http://forum.xfce.org/viewtopic.php?id=6158</link>
		<description><![CDATA[The most recent posts in xfce power manager and power button.]]></description>
		<lastBuildDate>Fri, 17 Feb 2012 08:34:45 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25038#p25038</link>
			<description><![CDATA[<p>Hi, sorry if I stayed away for a while from my own post :-)</p><p>In the meanwhile, I used Xubuntu Oneiric 11.10 on my netbook, and power button works (probably because I&#039;ve not numlock on by default, but I cannot remember exactly)<br />Tried just now in a virtual machine, and I can confirm: power button works only without numlock...</p><p>Really really weird :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (paolo321)]]></author>
			<pubDate>Fri, 17 Feb 2012 08:34:45 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25038#p25038</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=24610#p24610</link>
			<description><![CDATA[<p>Yes, can confirm, after the fix I mentioned above, I also had to ensure numlock was off for the shutdown dialogue to work properly when pressing power button. </p><p>I&#039;m back to using Gnome now so can&#039;t really comment further except I remember at the time the behaviour was slightly different on two different computers; on an Asus 1001HA netbook the numlock light was on at boot and stayed on until manually switched off, but on a Dell Inspiron 6400 numlock was off at boot but did indeed mess up the shutdown dialogue if I switched it on (both using xfce at the time obviously).</p>]]></description>
			<author><![CDATA[dummy@example.com (Hobbs)]]></author>
			<pubDate>Fri, 20 Jan 2012 12:16:00 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=24610#p24610</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=24581#p24581</link>
			<description><![CDATA[<p>Hi,</p><p>Weird thing happen to my notebook. One day my power button don&#039;t work anymore (meaning power button configure to &quot;Ask&quot; when pressed, but nothing happen when it is pressed). I found out that it is fixed by switching off the Numlock in ~/.config/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml</p><p>Here is my tests : <br />- Create new empty account : testa<br />- Login with testa. Configure to &quot;Ask&quot; when power button pressed<br />- Press &quot;Power&quot; =&gt; Logout dialog =&gt; Logout<br />- With root, change NumLock to &quot;true&quot; in /home/testa/.config/xfce4/xfconf/xfce-perchannel-xml/keyboards.xml<br />- Login with testa<br />- Press &quot;Power&quot; =&gt; nothing happen<br />- Logout with the Xfce menu<br />- Change back Numlock to &quot;false&quot;<br />- Login with testa<br />- Press &quot;Power&quot; =&gt; Logout dialog appear.</p><p>My xfce version (on OpenSuse 12.1, kernel 3.1.0, i686) :</p><div class="codebox"><pre class="vscroll"><code>exo                           0.6.2-63.1
gtk-xfce-engine               2.8.1-23.1
libthunarx-2-0                1.2.3-75.1
libxfce4menu-0_1-0            4.6.2-27.1
libxfce4panel-1_0-3           4.8.6-74.1
libxfce4panel-1_0-3-debuginfo 4.8.6-74.1
libxfce4ui                    4.8.1-34.1
libxfce4util                  4.8.2-34.1
libxfce4util-devel            4.8.2-34.1
libxfcegui4                   4.8.1-40.1
libxfconf-0-2                 4.8.1-29.1
libxfconf-devel               4.8.1-29.1
thunar                        1.2.3-75.1
thunar-doc                    1.2.3-75.1
thunar-volman                 0.6.0-36.1
xfce4-appfinder               4.8.0-27.1
xfce4-dev-tools               4.8.0-34.1
xfce4-icon-theme              4.4.3-31.1
xfce4-mixer                   4.8.0-38.1
xfce4-notifyd                 0.2.2-36.1
xfce4-panel                   4.8.6-74.1
xfce4-panel-doc               4.8.6-74.1
xfce4-power-manager           1.0.10-73.1
xfce4-session                 4.8.2-96.1
xfce4-settings                4.8.3-47.1
xfce4-taskmanager             1.0.0-25.1
xfce4-volumed                 0.1.13-20.1
xfce-utils                    4.8.3-34.1
xfconf                        4.8.1-29.1
xfdesktop                     4.8.1-3.6.1
xfwm4                         4.8.3-51.1
xfwm4-doc                     4.8.3-51.1
xfwm4-themes                  4.6.0-29.1</code></pre></div><p>It&#039;s really weird that keyboard numlock is messing with power manager ... It would be great if someone can confirm this behavior.</p><p>EDIT: solved by applying a patch. See <a href="https://bugzilla.xfce.org/show_bug.cgi?id=8360" rel="nofollow">https://bugzilla.xfce.org/show_bug.cgi?id=8360</a></p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Thu, 19 Jan 2012 01:46:31 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=24581#p24581</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=23979#p23979</link>
			<description><![CDATA[<p>Hi</p><p>Just discovered the same problem in PCLinuxOS Xfce 2011.07 (Phoenix). </p><p>Found a solution that worked for me;</p><p>I have the file: /etc/acpi/events/power in which there is the line: action=/etc/acpi/actions/pm-fallback-shutdown. I simply deleted the word &#039;shutdown&#039; from the end of that line, and saved the file.</p><p>Now the user specified options set in Xfce4 Power Manager (general options tab) function correctly when the power button is pressed.</p><p>Thought it might be some help.</p>]]></description>
			<author><![CDATA[dummy@example.com (Hobbs)]]></author>
			<pubDate>Thu, 08 Dec 2011 11:42:38 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=23979#p23979</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22731#p22731</link>
			<description><![CDATA[<p>I&#039;ve found no useful information about &quot;could not map...&quot; , most people just say that they moved to use standard acpi tools and not xfce power manager.<br />Seems there are already bugreport in various distributions, maybe it will be fixed ...<br />I&#039;m trying the script below to run commands impersonating logged in user, So I can show logout window on power button, or lock screen from /etc/pm/sleep.d ....</p><p>I have tried it a couple of times and it SEEMS to work, using it like<br />action=/usr/local/sbin/run-as-X-user.sh /usr/bin/xfce4-session-logout</p><p>Important: enable access to your X server with xhost +local:</p><div class="codebox"><pre><code>#!/bin/bash

LOGGED_IN_USER=`ls -trl /tmp/.ICE-unix/ | tail -n -1 | cut -d&#039; &#039; -f3`
NUM_X_USERS=`echo $LOGGED_IN_USER | wc -l`
# SESSION_MANAGER format determined analyzing current variable...
# DBUS_SESSION_BUS_ADDRESS found checking environment of xfce4-panel

if [ $NUM_X_USERS -eq 1 ]; then
su -c &quot;export HOST=`hostname` ;
export SESSION_ID=`ls -t /tmp/.ICE-unix/ | head -n1` ;
export DISPLAY=:0.0 ;
export SESSION_MANAGER=local/$HOST:@/tmp/.ICE-unix/$SESSION_ID,unix/$HOST:/tmp/.ICE-unix/$SESSION_ID ;
export DBUS_SESSION_BUS_ADDRESS=`cat /proc/$(pidof xfce4-panel)/environ | tr &#039;\0&#039; &#039;\n&#039; | grep DBUS_SESSION_BUS_ADDRESS | cut -d &#039;=&#039; -f2-` ;
$*&quot; $LOGGED_IN_USER
fi</code></pre></div><p>Sources:<br /><a href="http://wiki.xfce.org/tips" rel="nofollow">http://wiki.xfce.org/tips</a><br /><a href="https://bbs.archlinux.org/viewtopic.php?pid=757342" rel="nofollow">https://bbs.archlinux.org/viewtopic.php?pid=757342</a><br /><a href="http://ubuntuforums.org/showthread.php?t=1059023" rel="nofollow">http://ubuntuforums.org/showthread.php?t=1059023</a></p>]]></description>
			<author><![CDATA[dummy@example.com (paolo321)]]></author>
			<pubDate>Thu, 18 Aug 2011 07:01:29 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22731#p22731</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22712#p22712</link>
			<description><![CDATA[<p>It seems that xfce4-power-manager don&#039;t get the power button signal ... why : don&#039;t know. Try to google : <strong>could not map keysym 1008ffa8 to keycode</strong></p><p>Otherwise, I manage to get a very ugly way to launch xfce4-session-logout with acpid :<br />In the <em>/etc/acpi/events/power_button</em> script, put :</p><div class="codebox"><pre><code>event=button/power.*
action=/tmp/runme.sh</code></pre></div><p>In the <em>/tmp/runme.sh</em> script, put : </p><div class="codebox"><pre><code>#!/bin/bash

USER=xxxx  # &lt; put here the user that is currentely login with xfce !!!
su -l $USER -c &quot;DISPLAY=:0 /usr/bin/xfce4-session-logout&quot; &amp;&gt; /tmp/out</code></pre></div><p>Make sure to replace <em>xxxx</em> by your login name.<br />Make the script executable. Push the power button ? If nothing happen, see what in /tmp/out ...</p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Wed, 17 Aug 2011 02:10:06 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22712#p22712</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22711#p22711</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Tried on several virtual machines and on a physical PC ...<br />Tried also to install from scratch 12.1 milestone 3 xfce ...</p><p>After this, I don&#039;t know what I could try :-)</p></div></blockquote></div><p>Uhm ... go back to version 0.8.4 (available on Opensuse 11.3 repo). </p><p>I switched back the old version, which is HAL dependent, because this one have &quot;Automatically Reduce brightness after a defined period&quot; :-p<br />I know that is not a solution but ... maybe worth a try ?</p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Wed, 17 Aug 2011 00:28:38 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22711#p22711</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22645#p22645</link>
			<description><![CDATA[<p>Tried to install 1.0.10-20.1 from tumbleweed and 1.0.10-54.3 from factory , no luck :-(</p><p>ACPI system from /etc/acpi works...<br />Xfce Power Manager works if i select manually an action, but not if I just press power button...</p><p>Tried on several virtual machines and on a physical PC ...<br />Tried also to install from scratch 12.1 milestone 3 xfce ...</p><p>After this, I don&#039;t know what I could try :-)</p><p>PS:<br />I could only use acpi scripts, making my own wrappers and custom actions, totally without Xfce Power Manager...<br />It&#039;s possible, yeah, maybe it would work (MAYBE) ... but I prefer to not reinvent the wheel :-)</p><p>EDIT:<br />I&#039;ve been able to activate xflock4 from /etc/pm/sleep.d (to lock screen when suspend/hybernate)<br />but not to activate xfce4 session logout window from /etc/acpi/events when pressing power button</p><p>I&#039;m quite confused, since these 2 things should happen out of the box, without problems ...</p>]]></description>
			<author><![CDATA[dummy@example.com (paolo321)]]></author>
			<pubDate>Sat, 13 Aug 2011 18:28:42 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22645#p22645</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22638#p22638</link>
			<description><![CDATA[<div class="quotebox"><cite>paolo321 wrote:</cite><blockquote><div><p>Version used is Xfce Power Manager 1.0.3</p></div></blockquote></div><p>I have version 1.0.10 from Factory, maybe that is why ?</p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Sat, 13 Aug 2011 13:06:09 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22638#p22638</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22637#p22637</link>
			<description><![CDATA[<p>yes, putting /bin/true there it will do nothing on power button press, but xfce power manager does not detect power button, anyway...<br />acpi_listen shows</p><div class="codebox"><pre><code>button/power PWRF 00000080 00000003</code></pre></div><p>It&#039;s much like debian thread linked in my first post...<br />Version used is Xfce Power Manager 1.0.3</p><p>Running it with --debug only error I see is </p><div class="codebox"><pre><code>(xfce4-power-manager:6886): xfce4-power-manager-WARNING **: could not map keysym 1008ffa8 to keycode</code></pre></div><p> just near BUTTON_POWEROFF ...</p><p>Then, i tried to use Solution 1 with my custom logout menu done with zenity (I need screen locking on suspend or hibernate...)<br />And I just disabled Xfce Power Manager</p><p>I hit power button, and I see my zenity window... CORRECTLY !!!</p><p>I&#039;m happy it&#039;s quite working... But I&#039;m quite confused: this seems definitely a bug in Xfce Power Manager<br />... But then why you have the same configuration WITHOUT this problem? :-)</p><p>Thank you again really much, BTW !!!</p>]]></description>
			<author><![CDATA[dummy@example.com (paolo321)]]></author>
			<pubDate>Sat, 13 Aug 2011 12:56:04 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22637#p22637</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22636#p22636</link>
			<description><![CDATA[<p>If &quot;Solution #1&quot; give you something ... it means that the /etc/acpi/event file is honored ? Then if you put /bin/true in the action field, it will at least do nothing when the power button is pressed. Is it the case ?</p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Sat, 13 Aug 2011 12:13:09 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22636#p22636</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22634#p22634</link>
			<description><![CDATA[<p>Looked on that wiki...<br />I have the same exact file that you , but solution #2 from wiki ( /bin/true ) seems not working ...<br />solution #1 gives me some weird problems, I need to investigate more ...</p><p>BTW: did you have a solution also for locking screen after suspend or hybernate ? I made a custom zenity logout window, but I&#039;d like a cleaner solution...</p>]]></description>
			<author><![CDATA[dummy@example.com (paolo321)]]></author>
			<pubDate>Sat, 13 Aug 2011 10:36:34 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22634#p22634</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22620#p22620</link>
			<description><![CDATA[<p>I also have OpenSuse 11.4 and xfce 4.8 on a netbook.<br />I have this file : <strong>/etc/acpi/events/power_button</strong><br />And to let Xfce control the power instead of acpi, edit it to :</p><div class="codebox"><pre><code>event=button/power.*
#action=/usr/lib/acpid/power_button
action=/bin/true</code></pre></div><p>What do you have in your /etc/acpi folder ? What the result of :<br /><strong>find /etc/acpi/</strong></p><p>I just discover that we now have a wiki : <a href="https://wiki.xfce.org/tips?&amp;#handle_acpi_event_for_power_button_show_xfce_logout_options" rel="nofollow">https://wiki.xfce.org/tips?&amp;#handle_acp … ut_options</a></p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Sat, 13 Aug 2011 02:09:00 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22620#p22620</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22476#p22476</link>
			<description><![CDATA[<p>Perhaps you should file a bug report.</p>]]></description>
			<author><![CDATA[dummy@example.com (ToZ)]]></author>
			<pubDate>Thu, 04 Aug 2011 02:27:02 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22476#p22476</guid>
		</item>
		<item>
			<title><![CDATA[Re: xfce power manager and power button]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=22468#p22468</link>
			<description><![CDATA[<p>~&gt; cat ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml</p><div class="codebox"><pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;

&lt;channel name=&quot;xfce4-power-manager&quot; version=&quot;1.0&quot;&gt;
  &lt;property name=&quot;xfce4-power-manager&quot; type=&quot;empty&quot;&gt;
    &lt;property name=&quot;power-button-action&quot; type=&quot;uint&quot; value=&quot;3&quot;/&gt;
    &lt;property name=&quot;hibernate-button-action&quot; type=&quot;uint&quot; value=&quot;3&quot;/&gt;
    &lt;property name=&quot;sleep-button-action&quot; type=&quot;uint&quot; value=&quot;3&quot;/&gt;
  &lt;/property&gt;
&lt;/channel&gt;</code></pre></div><p>So, it should be correct , but it doesn&#039;t ask ...</p>]]></description>
			<author><![CDATA[dummy@example.com (paolo321)]]></author>
			<pubDate>Wed, 03 Aug 2011 20:02:01 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=22468#p22468</guid>
		</item>
	</channel>
</rss>
