Devuan bug report logs - #394
Cinnamon on Beowulf - Power Management fails to update battery status

version graph

Package: gir1.2-upowerglib-1.0; Maintainer for gir1.2-upowerglib-1.0 is Devuan Developers <devuan-dev@lists.dyne.org>; Source for gir1.2-upowerglib-1.0 is src:upower.

Reported by: josh.bowyer@protonmail.com

Date: Thu, 13 Feb 2020 18:48:04 UTC

Severity: normal

Tags: beowulf

Found in version 1:0.9.23-2+devuan1.3

Done: Mark Hindley <mark@hindley.org.uk>

Full log


🔗 View this message in rfc822 format

MIME-Version: 1.0
X-Mailer: MIME-tools 5.509 (Entity 5.509)
X-Loop: owner@bugs.devuan.org
From: "Devuan bug Tracking System" <owner@bugs.devuan.org>
To: Mark Hindley <mark@hindley.org.uk>
Subject: bug#394: marked as done (Cinnamon on Beowulf - Power Management
 fails to update battery status)
Message-ID: <handler.394.D394.167601870423195.ackdone@bugs.devuan.org>
References: <Y+YD+OzGG003zCug@hindley.org.uk>
 <EWorRCJFrpb1DF0Nwfjl8S_sHGNwFAYAkzrwhz87JqsNxVuD8ovjHuJGw21eCChyrTCUANUawn5NGyfoYwrpP_Up3_mWkq9TgcQcn72tl8Q=@protonmail.com>
X-Devuan-PR-Message: closed 394
X-Devuan-PR-Package: gir1.2-upowerglib-1.0
X-Devuan-PR-Keywords: beowulf
X-Devuan-PR-Source: upower
Reply-To: 394@bugs.devuan.org
Date: Fri, 10 Feb 2023 08:46:01 +0000
Content-Type: multipart/mixed; boundary="----------=_1676018761-23207-0"
[Message part 1 (text/plain, inline)]
Your message dated Fri, 10 Feb 2023 08:44:40 +0000
with message-id <Y+YD+OzGG003zCug@hindley.org.uk>
and subject line Re: bug#394: Cinnamon on Beowulf - Power Management fails to update battery status
has caused the Devuan bug report #394,
regarding Cinnamon on Beowulf - Power Management fails to update battery status
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.devuan.org
immediately.)


-- 
394: https://bugs.devuan.org/cgi/bugreport.cgi?bug=394
Devuan Bug Tracking System
Contact owner@bugs.devuan.org with problems
[Message part 2 (message/rfc822, inline)]
From: josh.bowyer@protonmail.com
To: "submit@bugs.devuan.org" <submit@bugs.devuan.org>
Subject: Cinnamon on Beowulf - Power Management fails to update battery status
Date: Thu, 13 Feb 2020 18:28:48 +0000
[Message part 3 (text/plain, inline)]
Package: gir1.2-upowerglib-1.0
Version: 1:0.9.23-2+devuan1.3

On Devuan Beowulf, the Cinnamon Power Management (and therefore also the battery indicator applet) fail to read updated information from the system.

The script that handles this is cs_power.py, which is a module called by cinnamon-settings.py. I have pared it down to the bare minimum lines to return the battery percentage and state:

###################################################################
#!/usr/bin/python3

import gi
gi.require_version('CinnamonDesktop', '3.0')
gi.require_version('UPowerGlib', '1.0')
from gi.repository import CinnamonDesktop, Gdk, UPowerGlib, Gio

(UP_ID, UP_VENDOR, UP_MODEL, UP_TYPE, UP_ICON, UP_PERCENTAGE, UP_STATE, UP_SECONDS) = range(8)

up_client = UPowerGlib.Client.new()

csd_power_proxy = Gio.DBusProxy.new_sync(
    Gio.bus_get_sync(Gio.BusType.SESSION, None),
    Gio.DBusProxyFlags.NONE,
    None,
    "org.cinnamon.SettingsDaemon.Power",
    "/org/cinnamon/SettingsDaemon/Power",
    "org.cinnamon.SettingsDaemon.Power",
    None)

devices = csd_power_proxy.GetDevices()
for device in devices:
    if device[UP_TYPE] == UPowerGlib.DeviceKind.BATTERY:
        batdevice = device
percentage = batdevice[UP_PERCENTAGE]
state = batdevice[UP_STATE]

print(percentage)
print(state)
###############################################

The result, when I ran it, showed 89% and discharging whereas $(upower -i /org/freedesktop/UPower/devices/battery_BAT0) returned 58% and charging. Therefore the issue is with UPowerGlib, which is provided by the package gir1.2-upowerglib-1.0

Current software versions:

Lenovo Thinkpad T480s
Linux Josh-Laptop 4.19.0-8-amd64 #1 SMP Debian 4.19.98-1 (2020-01-26) x86_64 GNU/Linux
Devuan Beowulf
gir1.2-upowerglib-1.0/now 1:0.9.23-2+devuan1.3 amd64
cinnamon-settings-daemon/testing,now 3.8.4-2 amd64
upower/now 1:0.9.23-2+devuan1.3 amd64
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Mark Hindley <mark@hindley.org.uk>
To: 394-done@bugs.devuan.org
Cc: josh.bowyer@protonmail.com
Subject: Re: bug#394: Cinnamon on Beowulf - Power Management fails to update battery status
Date: Fri, 10 Feb 2023 08:44:40 +0000
On Thu, Feb 13, 2020 at 09:01:32PM +0000, Mark Hindley wrote:
> We will need to ensure that this requirement goes in the Release notes for
> ascii->beowulf upgrades.

Closing: fixed and included in Release Notes.

Mark

Send a report that this bug log contains spam.


Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Mon Nov 11 20:03:25 2024;