[Bug 200541] sysutils/upower: Update to 0.99.3

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jun 15 13:49:27 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=200541

Eric Koegel <eric.koegel at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric.koegel at gmail.com

--- Comment #4 from Eric Koegel <eric.koegel at gmail.com> ---
If it helps, I wrote the UPower/ConsoleKit2/Fallback Xfce patches for
xfce4-power-manager (xfpm) and xfce4-session (xfsm).

With both packages, if UPower < 0.99 then UPower's suspend/hibernate will be
used.

If UPower 0.99.0+ and ConsoleKit2 (CK2) is installed, then it will use
ConsoleKit2's suspend/hibernate calls (i.e.
http://consolekit2.github.io/ConsoleKit2/#Manager.Suspend).

If UPower 0.99.0+ and no CK2 (just old ConsoleKit or no ConsoleKit), then it
uses an internal fallback. For the fallback code, the can we suspend/can we
hibernate code is here:
http://git.xfce.org/xfce/xfce4-power-manager/tree/src/xfpm-suspend.c?h=xfce-4.12

The actual suspend/hibernate commands are handled with the pm-helper:
http://git.xfce.org/xfce/xfce4-power-manager/tree/src/xfpm-pm-helper.c?h=xfce-4.12#n67

xfsm has a similar setup, and CK2 should be the same.

With xfce4-power-manager --debug it should print something like "using xfpm
internal suspend backend". xfpm and xfsm fallback code is protected with polkit
rules (a change from xfsm in 4.10 that used sudo, to support things like
fingerprint readers and auth tokens), org.xfce.power.xfce4-pm-helper and
org.xfce.session.xfsm-shutdown-helper respectively and it ships rules that
*should* work.


Note that newer dev versions of xfpm (1.5.0+) have dropped support UPower <
0.99 as it's on the Xfce roadmap for 4.14. If this is an issue for FreeBSD open
a bug report to let us know.

Now if any of the above doesn't work, feel free to open bug reports. Sorry it's
so complicated... it's actually worse since we also support systemd on linux as
well.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the freebsd-gnome mailing list