Received: by 10.213.65.68 with SMTP id h4csp14828imn; Mon, 12 Mar 2018 15:36:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELtxmTOgyPp3vGF5Cm6BmGcgxBW2x+m3rRP14nNUMpdsErbg9aFFPXblHv3a/VYjPoDiYz1C X-Received: by 10.99.121.140 with SMTP id u134mr7742668pgc.89.1520894206126; Mon, 12 Mar 2018 15:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520894206; cv=none; d=google.com; s=arc-20160816; b=0gGNtap53ZaNK7u3ONzn+VhUqqMMfyJSJdlOrqGIRdQnmmUGttlz27ew73C+rH8Z8A OSOqouAH1Qlr4Z7XAoeJqe8SMLlqIxl9mz74A75eVsmXXkxXbsf0gUICIvLa1V7B8IPX moiMdg/Uz3jp/nbE+uT0cX36s4Ww7QtmLOOAl7hAoqwZmMYkAQlDgHBSosAGrbl7ZB9M pGc4RyI6DtyvOaztc09FUwkfw+LfjqW9mVau5ml5jpWI/TJIX+U3aqqMhnUNgyLONQLu ObNVE2JjSMQB0y1W5ETwMm2TL+pUaeY9IX4kLwNWzF+Mb/LV5cax4sK20b7fSipEnqx3 2zqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=C3cqHCgF0Lf7nK1FkGbD5SYKE9Ca9UvWMg/bssm9c74=; b=gsY52PaFboQ+16CUz7YFJlt0gKpq96sCiHgfMCgj9EBQM9lcXhSAnYgwDJG576Oy/s 6z76mYa2gSWNaLVwLNFh2t0YQYPJvBLGH40tHg5tgQ5Jv5g81mnNl1yjFMCYNEWLv+qF He2VaY1jwXCqBKL1zEYlGNyzOJfAC+5wDB/V+CK6cQOkfB0IaBGOJjv9e8yqmyJYVAv9 NUTf+Oog40eIBB+Z1HO4TrWu7yGf+cslQuxPUoqs3MRjHesAHpbuyCuaCNuaF6KxdDKL dg+QAJQBicq5xV0n73kd16gupEbdWDxiGIY2kladAlx7KSg6CLbVIZJFRMuVlh7G90c9 p0Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kUICAHsy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3si5606633pgo.349.2018.03.12.15.36.30; Mon, 12 Mar 2018 15:36:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kUICAHsy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751450AbeCLWf2 (ORCPT + 99 others); Mon, 12 Mar 2018 18:35:28 -0400 Received: from mail-wm0-f47.google.com ([74.125.82.47]:55432 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751312AbeCLWf0 (ORCPT ); Mon, 12 Mar 2018 18:35:26 -0400 Received: by mail-wm0-f47.google.com with SMTP id q83so19844627wme.5; Mon, 12 Mar 2018 15:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=C3cqHCgF0Lf7nK1FkGbD5SYKE9Ca9UvWMg/bssm9c74=; b=kUICAHsyh0hiX2FV42KrAK8f2d+zL64o8AZeEBBd9yxj06XmqthctIOYaBlclFraUv Io/mqCR4D0THhzpa7KSQbqYKwZLtZzjoEv/D21PqrA0c0iWNRUmr5iT4u83GzM0AIK2K q9VEJddZ74e/UJSkC6nimfe1txTvJ78shIzpn4mAsM4SzrsqdbK4+az1MQQqk4Lcq55j j2S3IBqS7EjNXsPkTXXX9MXWks2EzraUkgoGEjihV7lqEOKfLq1pkRZ1gvWzeCCbuQ65 cKQJ0lJIv6HtAGkuifiLzaMHhgSrlYAORq/yLlmAkTEeR4V3LIQkvn/HvnJWvOrBWuI7 GxYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=C3cqHCgF0Lf7nK1FkGbD5SYKE9Ca9UvWMg/bssm9c74=; b=tgmzXhhvOlIBwx47x4EjQDQ3/0RYMgo+yG8yFrOaGBSQtUALUlE42tPuWTVLJ31XQv zxT0DXwr5cS3QYmHrN/lGRA0tHm38ldQakmusTWm6yNji8YSjkhm58YsBlXXhTvvTKZL lLb5zf7qQtdwDchHGOyNabJ6EaLPqgzMdfElAFIrG9Z7Ft6JOcBnCtTGmOhgtHsqo/z6 x+jZXLlKZ0MuwRT8zSddFAD5/A++1XTtFzebzN/Ln81UQTKlGCq0rD02LK1SuenqrBoq Zmf3uliI7ARnj5I7aNkQg82Dmlq8X6fX4pzpyb7bK4kdlAB3Xmm/tw1AmDgkOf2GUcDe N0Jg== X-Gm-Message-State: AElRT7GwB3JQqNoilyvlT5WmTv4h7acX+Cv/IN3v6zEoziKoVIlglAr6 CgHMQrFfJrVGnxtlEbQE5gyxsQ== X-Received: by 10.28.241.15 with SMTP id p15mr6538123wmh.42.1520894125043; Mon, 12 Mar 2018 15:35:25 -0700 (PDT) Received: from thinkpad (pppoe-46-239-9-93.teol.net. [46.239.9.93]) by smtp.googlemail.com with ESMTPSA id f23sm9372873wra.51.2018.03.12.15.35.23 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Mar 2018 15:35:24 -0700 (PDT) Date: Mon, 12 Mar 2018 23:35:21 +0100 From: Ognjen =?utf-8?B?R2FsacSH?= To: "Rafael J. Wysocki" Cc: Pavel Machek , kernel list , ACPI mailing list , "Rafael J. Wysocki" , Sebastian Reichel Subject: Re: linux-next on thinkpad x60: full battery is indicated as battery error in mate Message-ID: <20180312223521.vzccevf6z7ik5ysf@thinkpad> References: <20180312194715.GA3992@amd> <20180312194944.GA3979@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 12, 2018 at 11:29:56PM +0100, Rafael J. Wysocki wrote: > On Mon, Mar 12, 2018 at 8:49 PM, Pavel Machek wrote: > > On Mon 2018-03-12 20:47:15, Pavel Machek wrote: > >> Hi! > >> > >> Did something change recently with battery reporting? > > Yes, it did, and specifically for Thinkpads. > > >> Fully charged > >> battery shows as empty battery with red "x" in Mate desktop. After > >> reboot to recent mainline problem goes away. Tooltip says "battery > >> waiting to charge". > >> For the MATE bug see: https://github.com/mate-desktop/mate-power-manager/pull/251 The problem is in the new composite battery system in UPower, it "merges" two external batteries into a single one for reporting. That battery does not understand "Not Charging" inside the MATE Power Manager. The above patch fixes that in MATE. > >> /proc/acpi/battery/BAT0/state looks ok: > >> present: yes > >> capacity state: ok > >> charging state: charged > >> present rate: 0 mW > >> remaining capacity: 41240 mWh > >> present voltage: 16495 mV > >> > >> Linux amd 4.16.0-rc3-next-20180302 #30 SMP Fri Mar 2 10:28:44 CET 2018 > >> i686 GNU/Linux > >> pavel@amd:~$ cat /sys/class/power_supply/BAT0/status > >> Not charging > > > > Reboot to mainline: > > > > pavel@amd:~$ uname -a > > Linux amd 4.16.0-rc4+ #509 SMP Thu Mar 8 15:28:06 CET 2018 i686 > > GNU/Linux > > pavel@amd:~$ cat /sys/class/power_supply/BAT0/status > > Unknown > > > > Mate shows it as "laptop battery is fully charged". > > > >> Thinkpad X60. > > Please try to revert commits fa93854f7a7e..a20136a67a99 from > linux-next and see if that helps.