Received: by 10.213.65.68 with SMTP id h4csp228643imn; Tue, 13 Mar 2018 02:17:22 -0700 (PDT) X-Google-Smtp-Source: AG47ELtClv0D0PTPGsH+Ncjjmsolo4GWVDjwKatwaJhUBExStnGmLJ0Gijaxs3OvgKGBhe7SYqdK X-Received: by 10.99.120.205 with SMTP id t196mr8874780pgc.392.1520932642544; Tue, 13 Mar 2018 02:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520932642; cv=none; d=google.com; s=arc-20160816; b=mYkoKMYF71r2uUSPsz2j9zjRPYgtJR5GDZRuVqT8w1fwQ3ceqBtpXWIv4GV/gsoK0M meohpPjkq5wdwlJgZpw4HUHHOqN15EraFvHHt0MiGaVb64eb/MxfIX8MB8uxI1uJgb76 1lOvMlOe6Mbze/6i26F4gibjXwsVOpRgErmXRsiXSMxZqug+73sJiyWmoypEpj+FVuu3 MWVfvoDMmvEmX1eBhG13Y2IIZP6QXZsirxvZhGDaqbPiXf1o11o9w4Oly5Mog8Btm1U6 tM+0sPUbBriME9g+TQW8sU979aJU8Qzl0Hcknni72QfiHAdJZrsag5azE9L+7+nRfJpV CIfg== 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=M/spAV4fkFgbi4Gb8eYg0gYsv4lXMilOgll9jT1wPz0=; b=PXLjCROl8PYYJsx3WlKssJUmMmxmV23lnh3f15Qi55mxy3pBHREBAU7vAWonTKsMwX A5LXKEOdaNeimZe4CSGB2CGcYGH6lEYtUDDfPE8AK6XsBytKxLvFMAzI9It7ZXeuUo4d iQWBX7LSA7uMyreSohuSZlCLLypVbA3/d4oAH09MdX8HaG0UHHiCSpHOC1e4uInHY4h5 V577gan1kXXguz6VsBoWm6fbtopPvuiMr6TW/sU421gsXoNO1tea/znB553+4MatYuBC 8k8BZDraKUx7JPA2NTmRa0XirZRfDb7BSqokyAeh5/xyFAmHzusiwqm2tyodwoq3msCy hrfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=Yg5b4np0; 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 t134si6301364pgc.175.2018.03.13.02.17.07; Tue, 13 Mar 2018 02:17:22 -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=Yg5b4np0; 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 S1752668AbeCMJPn (ORCPT + 99 others); Tue, 13 Mar 2018 05:15:43 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:46606 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbeCMJPk (ORCPT ); Tue, 13 Mar 2018 05:15:40 -0400 Received: by mail-oi0-f53.google.com with SMTP id x12so14707283oie.13; Tue, 13 Mar 2018 02:15:40 -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=M/spAV4fkFgbi4Gb8eYg0gYsv4lXMilOgll9jT1wPz0=; b=Yg5b4np0dC8PpT/bvhyE78zwaEbzzm0VKj955C+FQ49rCzbwSMRkZKP3ZTIrnEpS2b M9SRGqlpnuypeHfSqjw0qcP3KGYYyHQFPVJcKhOZDvhI3pgrsMwj1Owc5AJA4WiI18nD 7rK8X676Gkz8Y3ZuIHgpC8J6f85g2rS8s04wrneFSQxwzsJeP3pMv7xQ1jUFXyyMl6Dx r+OmsORvekjZvgoh9jDFy5YimCC4ySBOXG4F80/7N1O2WyOz6IYJyqceFRCaVycOUeLR iJsYnBteevKtLslgM20jeZFTJRkglp0aATEUaVsGH0Xy/JYDfIsl4OdoRfC3ePmcSW9u VGtg== 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=M/spAV4fkFgbi4Gb8eYg0gYsv4lXMilOgll9jT1wPz0=; b=porYM+VvVUjgb7Yi+mTTtWpSNASEGsIahfuso7DhZ3AoDHRr7IyV02NCcb/+O7Voad pvIXDxdATCx6nmu7YKdywzswp0lNF3nMZYtg/oakHP6Ycu/ckJiyiTFmd7mwLfnIhgR+ +fnJVoy5K+VEpzuADEdYlff4YkXBZNtidcFSVTtFDfC5r6hZbEXD0MYLH/BIaKgSgmBX Z8jG6AaRRqpXEheITEzRXCAo1XX8ouYb+WjYwVGpfPFsfqNoaR97ixq433zBti0nhjtv L4Pr7gmLm0DsGd1u0fyEoddDEv7CprYqrOizpPeR5NpHwFoIeuJLpy1/0dkQsfYpvdLz J6Aw== X-Gm-Message-State: AElRT7ENvQzuD1CLPxtpe6mkv3Ooj1AtHPC4uC3DpAuhuBR7eFFSpD8X pD3xSXT49/3/xXPvjfYLaPSHY50uQh4n9pCLgSA= X-Received: by 10.202.108.73 with SMTP id h70mr6540571oic.282.1520932540299; Tue, 13 Mar 2018 02:15:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:2c92:0:0:0:0:0 with HTTP; Tue, 13 Mar 2018 02:15:39 -0700 (PDT) In-Reply-To: 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:15:39 +0100 X-Google-Sender-Auth: ySCmza7BLDsShEwPJVfCDrarus0 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: 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 10:14 AM, Rafael J. Wysocki wro= te: > On Tue, Mar 13, 2018 at 1:51 AM, Ognjen Gali=C4=87 w= rote: >> 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. = After >>> > >> > >> reboot to recent mainline problem goes away. Tooltip says "ba= ttery >>> > >> > >> 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. T= hat >>> > >> 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 w= ay >>> > > 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. s/bus/bugs/ (obviously)