Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 802552 - sys-power/upower-0.99.12: does not recognize laptop battery
Summary: sys-power/upower-0.99.12: does not recognize laptop battery
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: https://gitlab.freedesktop.org/upower...
Whiteboard:
Keywords:
: 803263 (view as bug list)
Depends on: 803869
Blocks: 796896
  Show dependency tree
 
Reported: 2021-07-17 07:37 UTC by Marco Scardovi (scardracs)
Modified: 2021-07-26 18:12 UTC (History)
10 users (show)

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


Attachments
diff libgudev 234 vs 236 (libgudev236.patch,3.90 KB, patch)
2021-07-24 18:28 UTC, Maxim Britov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Scardovi (scardracs) 2021-07-17 07:37:46 UTC
Yesterday (2021-07-16) upower 0.99.12 was released and my laptop with kde suddently stops showing the battery capacity. Moving back to .11 fixes the problem
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-07-17 08:59:47 UTC
I can confirm this. Downgrading to upower-0.99.11 "fixes" the issue.
Comment 2 Pacho Ramos gentoo-dev 2021-07-17 09:22:21 UTC
What happens if you stop applying
https://gitlab.freedesktop.org/upower/upower/-/commit/2949136b152e94aa3b57da5130bcb9022724debe

as current ebuild does?
Comment 3 Marco Scardovi (scardracs) 2021-07-17 09:43:56 UTC
(In reply to Pacho Ramos from comment #2)
> What happens if you stop applying
> https://gitlab.freedesktop.org/upower/upower/-/commit/
> 2949136b152e94aa3b57da5130bcb9022724debe
> 
> as current ebuild does?

Tested, it's not the patch
Comment 4 Andreas Sturmlechner gentoo-dev 2021-07-17 09:58:27 UTC
Arch seem to be packaging it at commit 0f2837acded0bf82acedf5caafc81684e1919c89, but no way for me to check that out right now for inaccessible cgit.freedesktop.
Comment 5 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-07-17 18:11:24 UTC
(In reply to Andreas Sturmlechner from comment #4)
> but no way for me to check that
> out right now for inaccessible cgit.freedesktop.

Is

  https://gitlab.freedesktop.org/upower/upower/-/tree/master

a different repository?
Comment 6 Andreas Sturmlechner gentoo-dev 2021-07-17 19:11:31 UTC
Nah, that's actually the current one, they did not update their homepage to link to it, thx.
Comment 7 Alexey Shvetsov archtester gentoo-dev 2021-07-19 10:41:03 UTC
I can confirm this issue. Also I think that br0ken upower should be masked untill fix will be applyed
Comment 8 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2021-07-19 10:54:52 UTC
(In reply to Alexey Shvetsov from comment #7)
> I can confirm this issue. Also I think that br0ken upower should be masked
> untill fix will be applyed

IMHO it needs to be reported to upstream first in order to get a fix ;)
Comment 9 Marco Scardovi (scardracs) 2021-07-22 06:41:04 UTC
*** Bug 803263 has been marked as a duplicate of this bug. ***
Comment 10 Pacho Ramos gentoo-dev 2021-07-22 10:51:02 UTC
Are you running systemd or eudev?
Comment 11 Maxim Britov 2021-07-24 12:55:19 UTC
For me it seems libgudev-236 fix my Dell Battery and upower-0.99.12


libgudev-236.news 

CHANGES WITH 236:
        * Fix meson project name to match autotools

CHANGES WITH 235:
        * Port build system to meson and remove autotools
        * Fix conversion of sysfs attributes to boolean
Comment 12 Maxim Britov 2021-07-24 18:28:21 UTC
Created attachment 726574 [details, diff]
diff libgudev 234 vs 236

mkdir -p /etc/portage/patches/dev-libs/libgudev-234
put patch to the folder
emerge dev-libs/libgudev
check it
Comment 13 Larry the Git Cow gentoo-dev 2021-07-26 18:12:57 UTC
The bug has been closed via the following commit(s):

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

commit 84cc5276796ac5ebe1074b6f2473869fe9fb7218
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2021-07-26 18:10:24 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2021-07-26 18:12:05 +0000

    sys-power/upower: Raise minimum dev-libs/libgudev version to 236
    
    Thanks-to: Maxim Britov <maxbritov@ya.ru>
    Closes: https://bugs.gentoo.org/802552
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 sys-power/upower/upower-0.99.12-r1.ebuild | 102 ++++++++++++++++++++++++++++++
 1 file changed, 102 insertions(+)