Power button mode "ask" does not work

Bug #1116643 reported by Jan Reucker
50
This bug affects 8 people
Affects Status Importance Assigned to Milestone
xfce4-power-manager (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I'm running Lubuntu 12.10 on a Samsung N145 netbook. When setting the power button action to "ask" in xfce4-power-manager-settings, the system does not react to power button presses. I debugged into xfce4-power-manager and found out that the button press action results in a call to

static void
xfpm_manager_ask_shutdown (XfpmManager *manager)
{
    if ( manager->priv->session_managed )
        xfce_sm_client_request_shutdown (manager->priv->client, XFCE_SM_CLIENT_SHUTDOWN_HINT_ASK);
}

where session_managed is 0, so the shutdown request is not sent.

If xfce4-power-manager is started with the --no-daemon command line option, the system reacts correctly (the logout dialog pops up).

If the power button action is configured as "shutdown", the system also reacts properly to the power button press and shuts down immediately.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: xfce4-power-manager 1.2.0-1ubuntu1.1
ProcVersionSignature: Ubuntu 3.5.0-23.35-generic 3.5.7.2
Uname: Linux 3.5.0-23-generic i686
ApportVersion: 2.6.1-0ubuntu10
Architecture: i386
Date: Tue Feb 5 21:32:18 2013
InstallationDate: Installed on 2013-01-26 (10 days ago)
InstallationMedia: Lubuntu 12.10 "Quantal Quetzal" - Release i386 (20121017.1)
MarkForUpload: True
SourcePackage: xfce4-power-manager
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jan Reucker (slowhand-47) wrote :
Revision history for this message
Jan Reucker (slowhand-47) wrote :

I was wrong about the --no-daemon option. It only matters when xfce4-power-manager is started:

- directly after login, the power button won't work
- if I kill xfce4-power-manager and restart it, the power button works as expected, even when set to "ask"

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in xfce4-power-manager (Ubuntu):
status: New → Confirmed
Revision history for this message
Rüdiger Kupper (ruediger.kupper) wrote :

I confirm this problem on Lubuntu 12.10.
Additional:
- option "ask" does not work as "critical action", either
- choosing "Help" from the indicator menu does not work (there is a separate bug report for this)
- killing and restarting xfce4-power-manager does *not* solve the problem for me.

tags: added: saucy
Changed in xfce4-power-manager (Ubuntu):
status: Confirmed → Triaged
importance: Undecided → Medium
Revision history for this message
crysman (crysman) wrote :

Not working on clean Saucy Xubuntu 13.10 install either! It just shuts down even though I have "Ask" selected.

Revision history for this message
crysman (crysman) wrote :
Download full text (5.8 KiB)

I've made some debug for You:
[code]xfce4-power-manager --debug > ~/logs/xfce4-power-manager.log 2>&1[/code]

[code]cat ~/logs/xfce4-power-manager.log

(xfce4-power-manager:3673): xfce4-power-manager-WARNING **: Unable to create proxy for 'org.freedesktop.ConsoleKit'

(xfce4-power-manager:3673): xfce4-power-manager-WARNING **: could not map keysym 1008ffa8 to keycode

TRACE[xfpm-main.c:203] xfpm_start(): Starting the power manager
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for general-notification
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for lock-screen-suspend-hibernate
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for power-save-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for enable-cpu-freq-control
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for critical-power-level
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for show-brightness-popup
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for change-brightness-on-key-events
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for show-tray-icon
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for critical-power-action
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for hibernate-button-action
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for sleep-button-action
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for lid-action-on-ac
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for lid-action-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for brightness-level-on-ac
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for brightness-level-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for dpms-enabled
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-sleep
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for dpms-on-battery-off
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for dpms-sleep-mode
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for inactivity-on-ac
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for inactivity-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for inactivity-sleep-mode
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for brightness-on-ac
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for brightness-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for spin-down-on-ac
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for spin-down-on-battery
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for spin-down-on-ac-timeout
TRACE[xfpm-xfconf.c:156] xfpm_xfconf_load(): Using default configuration for spin-down-on-battery-timeout
TRAC...

Read more...

Revision history for this message
crysman (crysman) wrote :

PPS:
1) before running the power manager with --debug I ran "xfce4-power-manager -q" to quit it first.
2) my battery is currently not present in the notebook (just for the information wholeness)

(I would add this as an edit, but I do not know how to do it here on launchpad :(

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

crysman, starting with Ubuntu 13.10 the power button is managed by systemd/logind (default action is to shutdown the system, see /etc/systemd/logind.conf). As of now xfce4-power-manager is not able to inhibit these actions (bug 1222021) and the function to popup a dialog and ask the user might be still broken.

Revision history for this message
crysman (crysman) wrote :

Hmm, OK, thanks. But, what can I do then to make it work? Or is it going to be fixed somehow (I suppose)?

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

crysman, bug 1222021 has been fixed some time ago. However, does the initial issue still affect Lubuntu users?

Revision history for this message
crysman (crysman) wrote :

@thad-fisch: yep, that's true, it is working now on my Xubuntu 13.10 (it is asking). Regarding to Lubuntu, I cannot say, some Lubuntu user has to report... Cheers!

Revision history for this message
Thaddaeus Tintenfisch (thad-fisch-deactivatedaccount) wrote :

This problem has been resolved and does not affect Ubuntu 13.10 and 14.04.

Changed in xfce4-power-manager (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.