Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 671570 - sys-power/upower: battery full status incorrectly reported since kernel 4.18
Summary: sys-power/upower: battery full status incorrectly reported since kernel 4.18
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-20 15:16 UTC by Maik
Modified: 2019-01-20 13:40 UTC (History)
0 users

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


Attachments
user patch against upower-0.99.8-r1 (upower-state-pending-charge.patch,733 bytes, text/plain)
2018-11-21 10:36 UTC, Maik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maik 2018-11-20 15:16:10 UTC
Due to changes in kernel 4.18 and up, on some notebooks (Thinkpad/Ideapad/Asus) the status of the battery is reported as unknown by sys-power/upower when fully charged.
Fix is in upower git:
https://gitlab.freedesktop.org/upower/upower/commit/a074631c0b1748c8a791c4f0dad99da75805a328
I can confirm this fixes the issue on my ideapad.
Comment 1 Maik 2018-11-21 10:36:44 UTC
Created attachment 555854 [details]
user patch against upower-0.99.8-r1

For convenience, attaching a user patch to put in
/etc/portage/patches/sys-power/upower-0.99.8-r1
for affected people to get their battery back.
Comment 2 Larry the Git Cow gentoo-dev 2019-01-20 13:40:47 UTC
The bug has been closed via the following commit(s):

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

commit ef11ee8b619f1317a8063d404cba5ee4edbd16d1
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2019-01-20 13:36:50 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2019-01-20 13:40:34 +0000

    sys-power/upower: Consider pending-charge when calculating
    
    Thanks-to: Maik
    Closes: https://bugs.gentoo.org/671570
    Package-Manager: Portage-2.3.55, Repoman-2.3.12
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 .../files/upower-0.99.9-pending-charge1.patch      | 33 ++++++++
 .../files/upower-0.99.9-pending-charge2.patch      | 48 +++++++++++
 sys-power/upower/upower-0.99.9-r1.ebuild           | 98 ++++++++++++++++++++++
 3 files changed, 179 insertions(+)