From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B1DE7C6778A for ; Tue, 24 Jul 2018 09:12:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6FFC420874 for ; Tue, 24 Jul 2018 09:12:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6FFC420874 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ucw.cz Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388297AbeGXKSA (ORCPT ); Tue, 24 Jul 2018 06:18:00 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47743 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725723AbeGXKR6 (ORCPT ); Tue, 24 Jul 2018 06:17:58 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id B0AA08054E; Tue, 24 Jul 2018 11:12:27 +0200 (CEST) Date: Tue, 24 Jul 2018 11:12:26 +0200 From: Pavel Machek To: "Rafael J. Wysocki" , lucas.magasweran@ieee.org Cc: "Rafael J. Wysocki" , kernel list , Linux-pm mailing list , Len Brown , ACPI Devel Maling List Subject: Re: linux-next-20180723: battery status funny after bootup Message-ID: <20180724091226.GB22465@amd> References: <20180723214917.GA3733@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="v9Ux+11Zm5mwPlX6" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --v9Ux+11Zm5mwPlX6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-07-24 10:27:08, Rafael J. Wysocki wrote: > On Mon, Jul 23, 2018 at 11:49 PM, Pavel Machek wrote: > > > > pavel@amd:~$ cat /proc/acpi/battery/BAT0/state > > present: yes > > capacity state: ok > > charging state: charged > > present rate: 0 mW > > remaining capacity: 0 mWh > > present voltage: 0 mV > > pavel@amd:~$ uname -a > > Linux amd 4.18.0-rc6-next-20180723+ #141 SMP Mon Jul 23 22:11:47 CEST > > 2018 i686 GNU/Linux > > > > It will correct itself if I unplug/replug the AC adapter, I > > believe. Gnome2 battery monitor also looks confused. >=20 > There are two battery changes in linux-next now that are not present > in the mainline >=20 > 2a2aad34362b ACPI: battery: remove redundant old_present check on inserti= on > 706ac4aa536f ACPI: battery: use cache_time as cache "enabled" >=20 > Does reverting any of them help? Or is the problem present in the > mainline too? Thanks for pointers! Not it mainline, I'd notice that. I reverted 706ac4aa536f , and on the next boot: pavel@amd:~$ cat /proc/acpi/battery/BAT0/state present: yes capacity state: ok charging state: charged present rate: 0 mW remaining capacity: 37150 mWh present voltage: 16400 mV =2E.plus icon was ok from the start. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --v9Ux+11Zm5mwPlX6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAltW7XoACgkQMOfwapXb+vJKoACfX7UvnOz1OH8T4iDG1HcD+fV7 TfgAoIeanpCs3k+VsgMI5UkwxEFm0oDZ =SXUu -----END PGP SIGNATURE----- --v9Ux+11Zm5mwPlX6--