Power button mode "ask" does not work

Bug #1116643 reported by Jan Reucker on 2013-02-05
50
This bug affects 8 people
Affects Status Importance Assigned to Milestone
xfce4-power-manager (Ubuntu)
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)

Jan Reucker (slowhand-47) wrote :
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"

Launchpad Janitor (janitor) wrote :

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

Changed in xfce4-power-manager (Ubuntu):
status: New → Confirmed

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
crysman (crysman) wrote :

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

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...

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 :(

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.

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)?

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

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!

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  Edit
Everyone can see this information.

Other bug subscribers