Bug 197529 - sysutils/xfce4-power-manager is incompatible with upower
Summary: sysutils/xfce4-power-manager is incompatible with upower
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Olivier Duchateau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-10 23:03 UTC by ml
Modified: 2015-03-13 17:40 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ml 2015-02-10 23:03:54 UTC
xfce4-power-manager 1.2.0 broke when upower was upgraded to 0.99.

No power event has any effect:
_ [dis]connecting power is not noticed (icon stay as it was at startup);
_ reported battery level never changes;
_ lid close does not start screensaver.

Version 1.3.0 is out which should fix this.
Meanwhile other distros seems to have patched 1.2.0.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2015-02-11 03:38:30 UTC
Fix Summary and assign.
Comment 2 Olivier Duchateau freebsd_committer freebsd_triage 2015-02-11 21:32:29 UTC
In Xfce devel repo, we have the latest release (1.4.2) of sysutils/xfce4-power-manager.

Some tests need to check, before to be committed, because this application was re-written.
Comment 3 Sergey V. Dyatko 2015-02-12 06:40:01 UTC
Hi Olivier, 
thanks for your work:)

* do I need to update other xfce4-* things ? ideally I would like to update xfce4-power-manager only on my laptop. Is this possible ?
* where xfce4 devel repo located? Long time ago I install 4.10(?) after CFT on ML but seems I lost repository URL ;-(
Comment 4 Olivier Duchateau freebsd_committer freebsd_triage 2015-02-13 14:32:44 UTC
(In reply to Sergey V. Dyatko from comment #3)

sysutils/xfce4-power-manager works fine with Xfce 4.10 and 4.11 (developement release).
Currently is only available in 4.11 (and trunk) branch.

If you want to test it, you can clone the 4.11 branch, see our wiki page [1] for details.

Or get these two ports.
* sysutils/power-manager-common
* sysutils/xfce4-power-manager (it provides panel plugin)

svn (or svnlite) co https://subversion.assembla.com/svn/xfce4/tags/4.11/sysutils/power-manager-common
svn (or svnlite) https://subversion.assembla.com/svn/xfce4/tags/4.11/sysutils/xfce4-power-manger

Remove previous port and install them.

FreeBSD backend was enhanced (now uses sysctl), but if acpi_video(4) is not functional panel still crashes (like 1.2.0).

[1] https://wiki.freebsd.org/Xfce
Comment 5 Sergey V. Dyatko 2015-02-13 16:50:58 UTC
(In reply to Olivier Duchateau from comment #4)

Hi, Olivier.
In short: thank you and all FreeBSD xfce team, seems It works! (c)

* I didn't test actions in 'Levels and actions' tab. 
* Tray icon changed when I [un]plug power, lag between icon change is around 15-20 secs
* lid close still doesn't start xscreensaver ;(

For the record in case somebody ( ml at netfence.it for example :) ) wants to test new version brief how-to from me:

* you must have xfce4.10 installed from ports/packages (I use packages from my poudriere instance with custom options)
* checkout sysutils/power-manager-common and sysutils/xfce4-power-manger from tags/4.11 
* remove old xfce4-power-manager (pkg delete -f xfce4-power-manager-1.2.0_2).
change sysutils/xfce4-power-manger/Makefile
-MASTERDIR=     ${.CURDIR}/../../sysutils/power-manager-common
+MASTERDIR=     ${.CURDIR}/../power-manager-common
* install xfce4-power-manger
* add new panel item
Comment 6 Olivier Duchateau freebsd_committer freebsd_triage 2015-02-14 16:39:48 UTC
(In reply to Sergey V. Dyatko from comment #5)

Xfce4-power-manager stands on UPower (except backlight brightness), so if something is wrong, the first thing is to explore this way.

About screensaver, in git upstream there's support of light-locker (it depends of lightdm, I worked on it, but port is not finished), for xscreensaver I added patches, currently only available in 'trunk' branch (or here [1]). If xfce4-power-manager is in presentation mode, screensaver is inhibited.

As I can't use panel plugin (it crashes, due to lack of support for my laptop), the /xfce4-power-manager/presentation-mode property must be created and enabled.

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -n -t bool -s true


[1] https://people.freebsd.org/~olivierd/patches/power-manager-common/
Comment 7 Olivier Duchateau freebsd_committer freebsd_triage 2015-03-13 17:40:03 UTC
New version is available since revision r380565