Battery of 66% shows full icon

Bug #1840557 reported by Daniel Szulc
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-shell (Ubuntu)
Fix Released
Undecided
Unassigned
yaru-theme (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The battery indicator at 66% show a full battery icon on 19.04
At about 55%ish he started to show a different icon (about 80% full icon)
Rebooting system did not help.
Updating system did not help.
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu27.1
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
DisplayManager: gdm3
DistroRelease: Ubuntu 19.04
GsettingsChanges:
 b'org.gnome.shell' b'favorite-apps' redacted by apport
 b'org.gnome.desktop.interface' b'gtk-im-module' b"'gtk-im-context-simple'"
InstallationDate: Installed on 2019-08-05 (13 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
NonfreeKernelModules: nvidia_modeset nvidia
Package: gnome-shell 3.32.0+git20190410-1ubuntu1
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 5.0.0-25.26-generic 5.0.18
Tags: disco
Uname: Linux 5.0.0-25-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Chris Guiver (guiverc) wrote :
Revision history for this message
Daniel Szulc (thinker123) wrote :

This bug is about icon vs % displayed (icon full, % show 66%), it's not about estimation of discharge, it is about icon should match percentage.

Paul White (paulw2u)
affects: ubuntu → gnome-shell (Ubuntu)
tags: added: disco
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

apport-collect 1840557

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel Szulc (thinker123) wrote : Dependencies.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Daniel Szulc (thinker123) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Daniel Szulc (thinker123) wrote : ProcEnviron.txt

apport information

Revision history for this message
Daniel Szulc (thinker123) wrote : Re: Battery indicator at 66% show full icon on 19.04

I was not able to catch executable name using crosshairs:
WM_CLASS: not found

Revision history for this message
Daniel Szulc (thinker123) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

> I was not able to catch executable name using crosshairs: WM_CLASS: not found

The executable name is 'gnome-shell' :)

Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Could you please also tell us the laptop model and run:

  dmesg > dmesg.txt

and attach the file 'dmesg.txt' here?

Changed in gnome-shell (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel Szulc (thinker123) wrote :

DELL Inspiron 7559

Revision history for this message
Daniel Szulc (thinker123) wrote :
summary: - Battery indicator at 66% show full icon on 19.04
+ [Dell Inspiron 7559] Battery of 66% shows full icon on 19.04
Changed in gnome-shell (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: [Dell Inspiron 7559] Battery of 66% shows full icon on 19.04

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

I'm also affected by this bug from the Yaru snap on Bionic, which is the same Yaru theme on 19.04 I presume. And I don't think it's a bug in gnome-shell or hardware related.

Upstream adwaita-icon-theme added some fixes some time ago to the legacy battery icons (by now there are new battery icons), maybe Yaru have (had) the same issues:
https://gitlab.gnome.org/GNOME/adwaita-icon-theme/commit/03eae765c15a5c5c3a44f3abd2a1c968b0b0ed5c
https://gitlab.gnome.org/GNOME/adwaita-icon-theme/commit/ff788b65f2df30aa5a53ad0692816f75e3ed5f1e

From GNOME 3.34 onward, there are newer battery icons with 10% charging steps. The new icons are in adwaita-icon-theme 3.34¹ and yaru-theme 19.10.2², and gnome-shell 3.34³ has the required code to implement that, older releases don't.
¹ https://gitlab.gnome.org/GNOME/adwaita-icon-theme/commit/377044f755c3ec994f661d787f50e633487b929d
² https://github.com/ubuntu/yaru/commit/0960898d65e82e90c51406dbe463ee7e4f5d2b1e
³ https://gitlab.gnome.org/GNOME/gnome-shell/commit/bd18313d125aa1873c21b9cce9bbf81a335e48b0

Revision history for this message
Amr Ibrahim (amribrahim1987) wrote :

This is fixed in the latest yaru-theme 19.10.4, gnome-shell 3.34 and adwaita-icon-theme 3.34.

However, yaru-theme in the Bionic snap is still on the legacy battery icons, which exhibit this bug, because the older gnome-shell 3.28 in Bionic cannot use the new battery icons.

Changed in yaru-theme (Ubuntu):
status: New → Fix Released
Changed in gnome-shell (Ubuntu):
status: Confirmed → Fix Released
summary: - [Dell Inspiron 7559] Battery of 66% shows full icon on 19.04
+ Battery of 66% shows full icon on 19.04
summary: - Battery of 66% shows full icon on 19.04
+ Battery of 66% shows full icon
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.