! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfpm does not ask to shutdown on critical power when xfce4-session is not run...
Status:
RESOLVED: WONTFIX
Product:
Xfce4-power-manager
Component:
General

Comments

Description Roland Hieber 2012-06-11 02:36:57 CEST
Dear Maintainer,

when using xfce4-power-manager as a standalone application without the XFCE
desktop environment (for example with LXDE or Awesome), it does not ask for
shutdown when battery power is critically low and the user has configured it to
ask in this case. This is caused by xfpm_manager_ask_shutdown(...) in
xfpm-manager.c, which just tests if the session manager is running, and if not,
just returns without an action. This probably leads to confusion, because the
configuration dialog still allows the user to select "Ask" as the preferred
action in case of critical power.

I'm currently imagining three possible solutions for this unexpected behaviour.
First, one could test if the session is managed by XFCE in the configuration 
dialog, and prohibit the user from selecting "Ask" as the preferred action in 
case of critical power, but this is surely the least favorable solution. A 
better alternative would be to simply warn the user through a popup notification
(or libnotify) that the power is just about to die and that data may be lost. 
The best solution I currently have in mind is to implement a warning dialog 
like the one xfce4-session displays in that case, and just let the power manager
do a clean shutdown (hibernate, suspend) by itself, as the infrastructure for that already exists (see xfpm_manager_shutdown(...) and xfpm_power_sleep(...)). 

Thanks,
-- Roland
Comment 1 Simon Steinbeiss editbugs 2014-06-30 13:59:04 CEST
*** Bug 8549 has been marked as a duplicate of this bug. ***
Comment 2 Simon Steinbeiss editbugs 2014-06-30 14:22:42 CEST
We might have to get rid of the critical actions either way, because with UPower1.0/0.99 they're not configurable anymore (and according to UPower devs shouldn't be):
http://lists.freedesktop.org/archives/devkit-devel/2013-November/001533.html

So I don't think we'll add an extra dialog for something that is going away entirely.

Bug #9002

Reported by:
Roland Hieber
Reported on: 2012-06-11
Last modified on: 2014-06-30
Duplicates (1):
  • 8549 Power Button "Ask" option does nothing

People

Assignee:
Ali Abdallah
CC List:
2 users

Version

Attachments

Additional information