Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 668084 - sys-power/upower-0.99.8 fails to track AC power changes when started via systemd
Summary: sys-power/upower-0.99.8 fails to track AC power changes when started via systemd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-10-08 20:18 UTC by Peter Tworek
Modified: 2018-10-13 09:06 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Tworek 2018-10-08 20:18:26 UTC
This is actually an upstream bug that got fixed after 0.99.8 release. The patch fixing this can be seen at https://cgit.freedesktop.org/upower/commit/?id=fe356951a9d45fee73036aaa72661f0319dffba3. It'd be nice if this patch could be applied to current ebuild version in the tree since without it charger detection in desktop environments using upower is simply broken.

Reproducible: Always

Steps to Reproduce:
1. Start upower via systemd on some battery powered device
2. Run upower -d from command line check AC status
3. Unplug/Plug the charger.
4. Run upwer -d again
Actual Results:  
AC line status does not change after the charger is plugged/unplugged.

Expected Results:  
AC line status is different in steps 2 and 4
Comment 1 Larry the Git Cow gentoo-dev 2018-10-13 09:06:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71d8682c51b91e629fff6cb3bddbca9378650406

commit 71d8682c51b91e629fff6cb3bddbca9378650406
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2018-10-13 09:04:46 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2018-10-13 09:06:30 +0000

    sys-power/upower: Apply important fixes from upstream
    
    - Fix upower not having access to udev events (#668084)
    - Fix upower's keyboard backlight support
    
    Thanks-to: Peter Tworek
    Closes: https://bugs.gentoo.org/668084
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>
    Package-Manager: Portage-2.3.51, Repoman-2.3.11

 .../files/upower-0.99.8-keyboard-backlight.patch   | 30 +++++++
 .../upower/files/upower-0.99.8-udev-events.patch   | 32 +++++++
 sys-power/upower/upower-0.99.8-r1.ebuild           | 99 ++++++++++++++++++++++
 3 files changed, 161 insertions(+)