You are not logged in.

#1 2012-06-16 17:10:06

lo
Member
Registered: 2012-06-16
Posts: 3

[solved] xfce power manager popup

hi all.
i installed xfce4-power-manager but i got a couple of issues.

the main one is that, although it periodically triggers discharging notifications, it doesn't prompt with the "last chance" popup.
i used to have it in crunchbang and it was so needful!
is it possibile to set it in archlinux too?

the second issue is that some preferences are greyed out.
for example, i'm not able to adjust the "put the computer to sleep when inactive for" sliders...

these are some of my settings,
please ask for more if needed.

$ grep DAEMONS /etc/rc.conf 
DAEMONS=(syslog-ng atd crond network rpcbind nfs-common @netfs dbus)

$ pacman -Qsq | grep -P "acpi|dbus|upower|laptop|pm\-"
acpi
acpid
dbus
dbus-core
dbus-glib
laptop-mode-tools
pm-quirks
pm-utils
upower

$ groups
staff audio power users

thanks everyone!

:: edit
image expired

Last edited by lo (2012-07-06 15:28:43)

Offline

#2 2012-06-23 16:37:33

lo
Member
Registered: 2012-06-16
Posts: 3

Re: [solved] xfce power manager popup

i solved my second (minor) issue installing consolekit and launching my openbox session behind ck-launch-session.
but i'm still stuck with the main problem instead.

:: edit
i'm actually launching openbox with exec ck-launch-session dbus-launch --exit-with-session openbox-session

i guess that the level at which the popup should appear is settable by the xfce power manager preferences, "extended" tab, "consider the computer on low power at:", am i right?
i have it set at 10%.


the following are some debug outputs.

$ xfce4-power-manager --debug

TRACE[xfpm-battery.c:150] xfpm_battery_refresh_visible(): visible=TRUE: ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-disks.c:147] xfpm_disks_set_spin_timeouts(): On Battery=0 spin_down_enabled=1 timeout=800
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon
TRACE[xfpm-battery.c:286] xfpm_battery_refresh_icon(): Battery state 2
TRACE[xfpm-power.c:1148] xfpm_power_refresh_adaptor_visible(): Tray icon configuration: : ((XfpmShowIcon) SHOW_ICON_ALWAYS)
TRACE[xfpm-power.c:1113] xfpm_power_hide_adapter_icon(): Hide adaptor icon

$ tail -f /var/log/pm-powersave.log

Running hook /usr/lib/pm-utils/power.d/pcie_aspm true:
/usr/lib/pm-utils/power.d/pcie_aspm: line 8: echo: write error: Operation not permitted

no useful output from "upower -m" instead.

thank you for any help.

Last edited by lo (2012-06-23 16:45:58)

Offline

#3 2012-07-06 15:28:07

lo
Member
Registered: 2012-06-16
Posts: 3

Re: [solved] xfce power manager popup

just to let you know... (so many of you!)

i inspected xfce4-power-manager source code to understand its behavior and i noticed that the new version has completely changed (also the mantainer has changed).

till version 0.8.5 it all seemed ok, then the critical battery level management has changed to something i don't like at all:

first, configuration is weird.
selecting "ask" it will prompt to suspend or hibernate and selecting "nothing" it will prompt to suspend, hibernate or suspend. do not make any sense...

second, it won't prompt any popup at all if you have the notification daemon that supports buttons.
in this case the popup is avoided on behalf of the top right corner notification.
unfortunately the notification is time limited and then disappears so that if you are not watching the screen during those seconds you will miss the critical level warning.

third and last, if it triggers the critical level alert, it won't trigger it again until it reaches a certain low battery level so that if you unplugged the power before it has reached that level, no other alert will come.
previous version triggered the alert as many times as it is necessary...

in the end i found and switched to xfce4-battery-plugin that suits my needs.

thanks for the attention...

Last edited by lo (2012-07-06 15:36:25)

Offline

Board footer

Powered by FluxBB