battery icon doesn't show it is charging when it's plugged in

Bug #1048041 reported by Laura Czajkowski
42
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Upower
New
Undecided
Unassigned
indicator-power (Ubuntu)
Invalid
Medium
Charles Kerr

Bug Description

have just upgraded from 12.04 to 12.10

I've noticed that when I have my power plugged in to be charging the icon doesn't show that it is in fact charging. When you unplug it, it does notice that is is discharging.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: indicator-power 12.10.1-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-14.15-generic 3.5.3
Uname: Linux 3.5.0-14-generic x86_64
ApportVersion: 2.5.1-0ubuntu7
Architecture: amd64
Date: Sat Sep 8 23:36:34 2012
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
SourcePackage: indicator-power
UpgradeStatus: Upgraded to quantal on 2012-09-08 (0 days ago)

Revision history for this message
Laura Czajkowski (czajkowski) wrote :
tags: added: regression
removed: regression-update
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in indicator-power (Ubuntu):
status: New → Confirmed
Revision history for this message
Lars Karlitski (larsu) wrote :

This has been working for me for a while now, but Laney reports that this still happens to him in quantal.

Changed in indicator-power (Ubuntu):
assignee: nobody → Charles Kerr (charlesk)
importance: Undecided → Medium
Revision history for this message
Alan Barr (alanb) wrote :

I notice this in 12.04 on a Samsung 550P5C. Generally it doesn't realise it is charging - the time remaining just increases - but once or twice it hasn't realised it was discharging.

If I put the laptop into suspend and wake it, the icon/information changes to the correct state.

Omer Akram (om26er)
summary: - Power icon doesn't show it is charging when it's plugged in
+ battery icon doesn't show it is charging when it's plugged in
Revision history for this message
Maxxer (lorenzo-milesi) wrote :

Same here on Samsung NP530U3B

Revision history for this message
Budo Zindovic (bzindovic) wrote :

The same is happening to me with Ubuntu 12.04.2 on my netbook Acer Aspire One 722 and on my laptop Toshiba Satellite A660. Battery indicator icon is not changing levels during recharge but the icons for it are present in the themes Ambiance/Radiance. The isonc are present in the /usr/share/icons/ubuntu-mono-dark/status and /usr/share/icons/ubuntu-mono-light/status folders. It must be the problem with the indicator-power since the icon is correct in the Power Settings menu.

Revision history for this message
Budo Zindovic (bzindovic) wrote :

I was browsing the code for indicator-power.c and only following icons are referenced for chargning state (lines :
battery-000-charging
battery-caution-charging-symbolic (doesn't exist)
battery-caution-charging (doesn't exist)
gpm-battery-000-charging

All available icons are not used and is clearly visible in the code (lines 486-489). By looking the code for the discharge state, I suggest replace the original lines 486-489 with the following:

      const gchar *percentage = get_icon_percentage_for_status (suffix_str);
      g_string_append_printf (filename, "battery-%s-charging;", suffix_str);
      g_string_append_printf (filename, "battery-%s-charging-symbolic;", suffix_str);
      g_string_append_printf (filename, "battery-%s-charging;", percentage);
      g_string_append_printf (filename, "gpm-battery-%s-charging;", percentage);

After I thoroughly test it, I'll report if the fix is correct.

Revision history for this message
Budo Zindovic (bzindovic) wrote :

I've noticed the use of pointers in the lines 494-498 in the original code. Will that cause a memory leak once the build_battery_icon is executed? I'm asking this since I don't have experience with GLib nor does it have smart-pointers.

Revision history for this message
Tatiane Pires (tatianeps) wrote :

This bug started to happen on my notebook a few days ago. I might have started to happen after an update, but I'm not sure. My notebook is a Samsung NP530U3C-AD5BR. It happens exactly as described above: "when I have my power plugged in to be charging the icon doesn't show that it is in fact charging. When you unplug it, it does notice that is is discharging".

Ubuntu 12.04.3 LTS
Linux 3.5.0-40-generic x86_64

Revision history for this message
Mark Rich (sir-marky) wrote :

This has now started happening to me on a fresh install of 13.10.
The battery indicator does show but never shows it is charging any more.
I am using a Samsung Series 9 NP900X3C.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you get a "upower --dump" log when the issue is happening?

Charles Kerr (charlesk)
Changed in indicator-power (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Maxxer (lorenzo-milesi) wrote :

As this is happening to me too right now I'm attaching what requested.

To be precise, my laptop was discharging, I plugged power and the battery indicator is still "red", while laptop led is orange (charging)

Changed in indicator-power (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
sebasao (sebasao) wrote :

Hi,

I'm having the same issue here with Ubuntu 13.10 on a Samsung Series 5 ultrabook.
I'm attaching the upower --dump log

Revision history for this message
Charles Kerr (charlesk) wrote :

This doesn't seem to be an indicator-power issue. Both "upower --dump" logs show upower reporting a `discharging' state when the users say their laptops are in a charging state. If the people experiencing this could report it upstream to the upower maintainers at https://bugs.freedesktop.org/describecomponents.cgi?product=upower , that would be great.

Changed in indicator-power (Ubuntu):
status: Confirmed → Invalid
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.