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
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(+)