← Back to team overview

dx-packages team mailing list archive

[Bug 1559731] Re: Battery indicator turns red at 30%

 

This looks like a Desktop variation of bug #1388235. The solution there
was to provide extra icons for 10%, 30%, 50%, 70%, and 90% so that we
could improve our accuracy when rounding to the closest icon, and also
to special case the rounding between [20-30%) to avoid hitting the red-
at-20% icons from not just our own icon sets but others eg Humanity.

I'm seeing the same behavior on my Xenial box when I set the battery to
28%.  The icon list sent by indicator-power is correct:

> {"battery-030", "gpm-battery-030", "battery-020", "gpm-battery-020",
"battery-low-symbolic", "battery-low"}

So the rounding rules described in bullet point #2 of
https://bugs.launchpad.net/ubuntu/+source/indicator-
power/+bug/1388235/comments/5 are working correctly and things look
great on devices with suru icons. The problem for the Desktop is that
bullet point #3 is incorrect:

> indicator-power keep providing the current icon names as fallbacks so
that this fix doesn't break compatibility with other icon themes

Because ?keeping the current icon names as fallbacks" means the problem
still persists in other icon sets. We should tweak the special case rule
for [20-30%) s.t. the fallback icon is *040* instead of *020*, e.g.:

-  {"battery-030", "gpm-battery-030", "battery-020", "gpm-battery-020", "battery-low-symbolic", "battery-low"}
+ {"battery-030", "gpm-battery-030", "battery-040", "gpm-battery-040", "battery-low-symbolic", "battery-low"}


** Changed in: indicator-power (Ubuntu)
       Status: Confirmed => Triaged

** Changed in: indicator-power (Ubuntu Xenial)
       Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to indicator-power in Ubuntu.
https://bugs.launchpad.net/bugs/1559731

Title:
  Battery indicator turns red at 30%

Status in indicator-power package in Ubuntu:
  Triaged
Status in indicator-power source package in Xenial:
  Triaged

Bug description:
  The indicator turns red as soon as battery goes 30%

  Please refer to the attached screenshot.

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: indicator-power 12.10.6+16.04.20160105-0ubuntu1
  ProcVersionSignature: Ubuntu 4.4.0-14.30-generic 4.4.5
  Uname: Linux 4.4.0-14-generic x86_64
  ApportVersion: 2.20-0ubuntu3
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Sun Mar 20 20:43:32 2016
  InstallationDate: Installed on 2016-03-18 (1 days ago)
  InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160313)
  SourcePackage: indicator-power
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-power/+bug/1559731/+subscriptions


References