From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: battery.el broken? Date: Sat, 05 Jun 2021 18:52:44 -0700 Message-ID: References: <20210605135544.0203EC207FB@raman-glaptop.localdomain> <87lf7oj6lj.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24659"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: "Basil L. Contovounesios" , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 06 03:53:23 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lphyc-0006CW-Tu for ged-emacs-devel@m.gmane-mx.org; Sun, 06 Jun 2021 03:53:22 +0200 Original-Received: from localhost ([::1]:56092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lphyb-00067i-Vr for ged-emacs-devel@m.gmane-mx.org; Sat, 05 Jun 2021 21:53:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lphy7-0005Sp-8J for emacs-devel@gnu.org; Sat, 05 Jun 2021 21:52:51 -0400 Original-Received: from mail-pg1-x535.google.com ([2607:f8b0:4864:20::535]:39855) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lphy5-00047i-Hf for emacs-devel@gnu.org; Sat, 05 Jun 2021 21:52:51 -0400 Original-Received: by mail-pg1-x535.google.com with SMTP id v14so11035530pgi.6 for ; Sat, 05 Jun 2021 18:52:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=p8EcbecYJH7nlQf4b+0k9J8vBai+4COi4e/0p9DfWs4=; b=V6zZuOyKlAEYNHh7gVEVnyh8D5UTbCsly8Fq5DfLosUpD3eE7PvuIpfUJ5J9fEadX8 Yk4w9P5+p3Af5ZlTXMdr/zCEz5qYJzRfqOyZLG3g4bY5J1HXJI378AJai6TJVKHL21af c+jFL/BWOJe0FAoYOIr4ucV5wgIXHC9m62eufzvPN+tsHeFX8JZVWsQuHeienlgdnKqo mIeTi87RwHUfpNEX1mavGoKNnG1GFatpa54L19r4P11h5Q4Da96uBiVhysFvXRgFN4se xwmTtQ5TYu24J4Hk+Xk2wVQEfph3EyPy1OfXk5izIPIIiaTePc5pOYYzrCrdvET/CEdo fmyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=p8EcbecYJH7nlQf4b+0k9J8vBai+4COi4e/0p9DfWs4=; b=mdR9fUSr4V6bn5UrHkDTmzpkbYIuvdtPG4EAv0mcEa8cw4dk4GCHIO4T24Si2pt/8x /StrNz0SftmR7/00jOxyl1EJNTI9jnNyCOYHJYiFKA9SWYw2QTv6AYFCC4GTFnk1eUNK MX7XJQi4u9INvSJfeNUsdk6wKqaP4pC1+v9ujMvGb6qIg/YZLMIqlcIfosn/Ch/siTVZ fpk24bOFij6pqFREOcTXWfKMKxLEssEujD//TRHegw+7/jtfeAR5Xdu4vmQRh2KZMLmC /AwotJps2UZKiXre9ZpCfFrxHmrlsegE4wikvINoW4OPTbPh2r9xaVlkxenilBrq3pKh ClSw== X-Gm-Message-State: AOAM532d7nszWpJ+NKS+llVZvL2ARwL39Zi8IbwgZZsL9dmWRU7XnQzF aInbSdPtt0VR5KBbtFhsFsew9C3NiI/nUC4t X-Google-Smtp-Source: ABdhPJxHLgrLCbhZeM9ckEBXwJGjCMAqfAK3G4Kl4CWPRobH0bo9/asbYyE8EJLmqJMcJ1TkIvAlNQ== X-Received: by 2002:a63:8f0b:: with SMTP id n11mr11810142pgd.342.1622944367202; Sat, 05 Jun 2021 18:52:47 -0700 (PDT) Original-Received: from raman-glaptop.localdomain (c-24-4-174-65.hsd1.ca.comcast.net. [24.4.174.65]) by smtp.gmail.com with ESMTPSA id p26sm4877085pfw.178.2021.06.05.18.52.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Jun 2021 18:52:46 -0700 (PDT) Original-Received: by raman-glaptop.localdomain (Postfix, from userid 13930) id BF6CDC20890; Sat, 5 Jun 2021 18:52:44 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Sat, 05 Jun 2021 18:23:45 -0400") Received-SPF: pass client-ip=2607:f8b0:4864:20::535; envelope-from=raman@google.com; helo=mail-pg1-x535.google.com X-Spam_score_int: -175 X-Spam_score: -17.6 X-Spam_bar: ----------------- X-Spam_report: (-17.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:270453 Archived-At: Stefan Monnier writes: I am mostly convinced this is a dbus/upower bug since I too checked and nothing has changed on the Emacs side on the machine, still running Emacs from Github@HEAD. Will now try some of the other status functions, I think the output stopped telling me time left likely a couple of days ago. Typing this with the machine fully charged and not plugged into the AC jack, but the upower output shown below appears to think it's on AC Power. battery-status-function =3D=3D battery-upower (mapcar #'battery--upower-device-properties (battery--upower-devices) ) ((("NativePath" . "AC") ("Vendor" . "") ("Model" . "") ("Serial" . "") ("Up= dateTime" . 1622943939) ("Type" . 1) ("PowerSupply" . t) ("HasHistory") ("H= asStatistics") ("Online") ("Energy" . 0.0) ("EnergyEmpty" . 0.0) ...) (("Na= tivePath" . "BAT0") ("Vendor" . "SMP") ("Model" . "01AV431") ("Serial" . "5= 195") ("UpdateTime" . 1622944181) ("Type" . 2) ("PowerSupply" . t) ("HasHis= tory" . t) ("HasStatistics" . t) ("Online") ("Energy" . 51.36) ("EnergyEmpt= y" . 0.0) ...) (("NativePath" . "ucsi-source-psy-USBC000:001") ("Vendor" . = "") ("Model" . "") ("Serial" . "") ("UpdateTime" . 1622943939) ("Type" . 1)= ("PowerSupply" . t) ("HasHistory") ("HasStatistics") ("Online" . t) ("Ener= gy" . 0.0) ("EnergyEmpty" . 0.0) ...) (("NativePath" . "ucsi-source-psy-USB= C000:002") ("Vendor" . "") ("Model" . "") ("Serial" . "") ("UpdateTime" . 1= 622943940) ("Type" . 1) ("PowerSupply" . t) ("HasHistory") ("HasStatistics"= ) ("Online") ("Energy" . 0.0) ("EnergyEmpty" . 0.0) ...)) >> If so, please say which Emacs version you're running and what your value >> of battery-status-function is. > > You might also want to try using another of those > battery-status-functions to see if that helps. > > > Stefan > > --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =817=A94 Id: kg:/m/0285kf1 =950=DC8