Received: by 10.213.65.68 with SMTP id h4csp228251imn; Tue, 13 Mar 2018 02:16:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELvgMY/wIBWIXoJk+/IOgBfBszsvf5Pw5htyPFUh/svW8LC8V3sUw4p5HUyvkGVIiY+BG59O X-Received: by 2002:a17:902:12e:: with SMTP id 43-v6mr10918399plb.77.1520932577585; Tue, 13 Mar 2018 02:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520932577; cv=none; d=google.com; s=arc-20160816; b=aBezZpYmzbNa0lNKynDImmcoH+gHsmmn/+1UcyL/pE0WU9eSonwwo4Vneug9OHI8r/ 7E2/Eou8F2elQX4duUFxAB1ALNX5B/az9bzVsIFwwAOchQIXhx0WuZ3hmT4fv0uZp4rP 6WRfFGYXooJlULcVbN9Mc2ShQwBYLNldXU4Pct6fgDWv8xZrXz0Qc6D+Z6BQb9Q3YkqG 2noe+M7Kg21tRe+mDWCCgirnM3JkiQV/nb3Ck/T9PHyLJ1nYIKmEnTrIn8WOyByzRtsw TbINmQd6T6VaZEIMcF12kowc5hiSDmdpm7fz7xeVSApP2z8p6duzrj8wNL4IspoTNGB8 99Lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=2R+CULWJ5VWHNXOUK1m4s8w+IMawJ61kAp1by4OxB/Q=; b=CdyranPRAd+tzs2E8HO5cvvlXcRh0xZ/dZT/PKrBqYBNYNrB94fPTGsNgbPPvQn0Jw 6e5IbLHNo20UTzOiwk/nGv68Vq6d5SFVD/04jwZLht1I4oKEGu6qmF0MR5pnvpWOC08k oC2tJyiF8r1wwUzLUl5+xwTjJYt0+/46AS7jGJXYEGmC2QBDb/TMCFpmPN3j+PVbTcUE 3CGm48KSBLI4Xo22ICciB2gCIWaXJk6Ycwhm9UFFADXEfyx2kDvpswTCwV4Zm3kKLn1A YEYji21k/iCO/k3A0qDLeJuihomys/Pf6ydy4ztp89ZHQyA3SyrRZvFtZR3HoBWU/4OH TtHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=bjsd0r+h; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s198si3648154pgc.151.2018.03.13.02.16.03; Tue, 13 Mar 2018 02:16:17 -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=fail header.i=@gmail.com header.s=20161025 header.b=bjsd0r+h; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752618AbeCMJOr (ORCPT + 99 others); Tue, 13 Mar 2018 05:14:47 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:46903 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752252AbeCMJOo (ORCPT ); Tue, 13 Mar 2018 05:14:44 -0400 Received: by mail-ot0-f195.google.com with SMTP id g97so18200944otg.13; Tue, 13 Mar 2018 02:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=2R+CULWJ5VWHNXOUK1m4s8w+IMawJ61kAp1by4OxB/Q=; b=bjsd0r+hu4VpHNFuJvwe7rpK8NanCQu9BDq5tWXEY8EpF42X0vlfXBfYMY5ovdcQAK enTjutNI6umHf40mzTL8gLW69sC9ab18iy6jNJ22bmr+elft/uFokbyyBKVXX8LjO/y0 a5tE8xqGxEl3vyhNHKAfBESt1PdAd7KVVSx2IThOcNhCJ5qsJOeMbqLW8zekoM+d3dyO ZCoDAAaNecKlAnaM9qwOorqqYl0KfAdSkEokmCkheH9JpkDyjpmkd1YyYtx8VhO9dBtL Ovs326K/6pVkILAv7bc7qJnGrCK5RO7u03J/RBSItBF/irOIxa010Pubh5kWPPuJsmpe 7gnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=2R+CULWJ5VWHNXOUK1m4s8w+IMawJ61kAp1by4OxB/Q=; b=N/N2Lbs9dhjKEmTvtclCndJyfmwYJSj+QrEXf8jBsm0dCYM5q2Gfn0vOWIWfIyNNZs DEJeMNziHYDMS3nTRd6lb40vGZFFljzuGiVZf/OolV61NYXxdXAZmrsXKl2uJMB7hGyd dJsZXXIM5TN/vvaeo2pL+a55xw1k8E5ZKFn2dJSLEIOqvQOqk3YmGpqkD0b0c3Qyedhl 15loU3hx0OnW+Yw6+R4OGSQ59QhJVtmyR8OyaBBOfchpRff5TSvP83L8H3fRoAtUBr5K d5D0CI7AH4ZwzS0U0kCIL/GqLjGfQGIIuY/PfynZiFJvRurPbAQOqTT5qx0uon0F2gYZ Jntw== X-Gm-Message-State: AElRT7EXlz+fmp1QBEnF5LeZ0QwC97Zs2KzUMtO2QjKwpMXAPt37c/mA HbEELBMe7PUMTVIvbVJShFW8FCChEzlOC1MEWrU= X-Received: by 10.157.64.3 with SMTP id m3mr8038302ote.271.1520932483750; Tue, 13 Mar 2018 02:14:43 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2c92:0:0:0:0:0 with HTTP; Tue, 13 Mar 2018 02:14:43 -0700 (PDT) In-Reply-To: <20180313005103.brhhrxlatxfkdw7p@thinkpad> References: <20180312194715.GA3992@amd> <20180312194944.GA3979@amd> <20180312223521.vzccevf6z7ik5ysf@thinkpad> <20180312230407.GA7612@amd> <20180312231847.GB7612@amd> <20180313005103.brhhrxlatxfkdw7p@thinkpad> From: "Rafael J. Wysocki" Date: Tue, 13 Mar 2018 10:14:43 +0100 X-Google-Sender-Auth: 4gmv8tgdVuavYCEJ2f27heoO8HY Message-ID: Subject: Re: linux-next on thinkpad x60: full battery is indicated as battery error in mate To: =?UTF-8?Q?Ognjen_Gali=C4=87?= , Pavel Machek Cc: "Rafael J. Wysocki" , kernel list , ACPI mailing list , "Rafael J. Wysocki" , Sebastian Reichel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 13, 2018 at 1:51 AM, Ognjen Gali=C4=87 wro= te: > On Tue, Mar 13, 2018 at 12:18:47AM +0100, Pavel Machek wrote: >> Hi! >> >> > >> > >> Fully charged >> > >> > >> battery shows as empty battery with red "x" in Mate desktop. A= fter >> > >> > >> reboot to recent mainline problem goes away. Tooltip says "bat= tery >> > >> > >> 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. Th= at >> > >> battery does not understand "Not Charging" inside the MATE Power >> > >> Manager. The above patch fixes that in MATE. >> > > >> > > Ok, so problem is 91eea70e5e5ce12eb1c7cd922e561fab43e201bd. >> > > >> > > And now, I see that MATE should be improved. >> > > >> > > But what I also see is that kernel is changing its interface in a wa= y >> > > that (while making sense) breaks existing application. And we don't >> > > break existing applications. >> > > >> > > [Now... maybe if the fix for the application is available for long >> > > long time and noone is really looking and everyone already has new >> > > application version, maybe ... But pull request for MATE is 9 days >> > > old, and not even merged. So there is no way this is suitable for >> > > 4.17.] >> > >> > Right. >> > >> > This basically means that we will have to defer the battery changes >> > until user space is ready and not just upstream, but also in distro >> > packages. >> >> Yes please. >> >> Note that only 91eea70e5e5ce12eb1c7cd922e561fab43e201bd should break >> anything, the others should be safe AFAICT? >> >> Pavel >> > > Actually there is a bug in UPower itself, and that reflects the status > icon being broken in almost all desktop environments. I will work on > fixing UPower in the following days. Disregard my previous comment. I have reverted commit 91eea70e5e5ce12e for the time being. Of course, it can be applied again after all of the bus triggered by it have been fixed and the fixes have gone to users.