Power statistics not refreshing

Bug #1261196 reported by tw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
upower (Ubuntu)
New
Undecided
Unassigned

Bug Description

My problem is the following, when i check the battery status in Power
Statistics (gnome-power-statistics in terminal), it shows that my battery
status is being refreshed every 20 seconds or so...
The thing is, that it doesn't refresh the AC Adapter, and so it shows that the
adapter is disconnected all the time. (clearly, if i started the computer with
the adapter disconnected, if i did it with it connected, it will show it as
always charging).

the command 'acpi -v' does take notice of when the adapter is connected, but
fails to recognize that the battery is being charged, and power statistics
don't refresh the status.

Any ideas on how to solve this?

The refresh on the battery side seems to be dependent (among other things) of
the battery status. For example, (i restarted with the ac adapter plugged in,
so it knows it is plugged, but not refreshing) when my battery got fully
charged, as it doesn't recognize when the AC adapter gets unplugged, and so, it
doesn't need to refresh the battery status (if it isn't losing any battery
charge, because the AC adapter has been plugged all the time, why refresh it?).

if i use acpi -V,with the cable connected, i get:

tw@potatOS:~$ acpi -V
Battery 0: Discharging, 96%, 06:14:38 remaining
Battery 0: design capacity 6100 mAh, last full capacity 6400 mAh = 100%
Adapter 0: on-line
Thermal 0: ok, 29.8 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 106.0 degrees
C
Thermal 0: trip point 1 switches to mode passive at temperature 95.0 degrees C
Thermal 1: active, 56.0 degrees C
Thermal 1: trip point 0 switches to mode critical at temperature 106.0 degrees
C
Thermal 1: trip point 1 switches to mode active at temperature 87.0 degrees C
Thermal 1: trip point 2 switches to mode active at temperature 55.0 degrees C
Cooling 0: LCD 0 of 100
Cooling 1: Processor 0 of 10
Cooling 2: Processor 0 of 10
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10
Cooling 5: Fan 1 of 1
Cooling 6: Fan 1 of 1
Cooling 7: Fan 1 of 1
Cooling 8: Fan 1 of 1

If i use it, without it being connected,

tw@potatOS:~$ acpi -V
Battery 0: Discharging, 96%, 04:23:30 remaining
Battery 0: design capacity 6100 mAh, last full capacity 6400 mAh = 100%
Adapter 0: off-line
Thermal 0: ok, 29.8 degrees C
Thermal 0: trip point 0 switches to mode critical at temperature 106.0 degrees
C
Thermal 0: trip point 1 switches to mode passive at temperature 95.0 degrees C
Thermal 1: ok, 54.0 degrees C
Thermal 1: trip point 0 switches to mode critical at temperature 106.0 degrees
C
Thermal 1: trip point 1 switches to mode active at temperature 87.0 degrees C
Thermal 1: trip point 2 switches to mode active at temperature 55.0 degrees C
Cooling 0: LCD 0 of 100
Cooling 1: Processor 0 of 10
Cooling 2: Processor 0 of 10
Cooling 3: Processor 0 of 10
Cooling 4: Processor 0 of 10
Cooling 5: Fan 1 of 1
Cooling 6: Fan 1 of 1
Cooling 7: Fan 1 of 1
Cooling 8: Fan 1 of 1
Cooling 9: Fan 0 of 1

I dont know how to check the version of the power manager, but if i try to
install it, i get:

tw@potatOS:~$ sudo apt-get install gnome-power-manager
[sudo] password for tw:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnome-power-manager is already the newest version.

Thanks in advance!

Revision history for this message
Victor Martinez (victored) wrote :

Thanks for your report.

Wingpanel displays the indicators, but it doesn't control their contents. The correct project for this report would be "indicator-power".

Changed in wingpanel:
status: New → Invalid
Cody Garver (codygarver)
affects: wingpanel → indicator-power (Ubuntu)
Changed in indicator-power (Ubuntu):
status: Invalid → New
Revision history for this message
Charles Kerr (charlesk) wrote :

Hi Tomas, thanks for reporting this.

If 'acpi -v' isn't noticing that the battery is being charged, then the problem isn't in the indicator's label -- indicator-power gets its information from upower, so this can't be fixed at the indicator-power level unless the indicator is showing you something different from what you would see by running "upower --dump".

Moving up the food chain to upower in launchpad. :)

affects: indicator-power (Ubuntu) → upower (Ubuntu)
Revision history for this message
tw (twwvb) wrote :
Download full text (3.3 KiB)

This is what I just got. I have the battery fully charged.

tw@potatOS:~$ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ADP1
  power supply: yes
  updated: Tue 25 Mar 2014 08:20:03 PM CLST (19445 seconds ago)
  has history: no
  has statistics: no
  line-power
    online: yes

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: SAMSUNG Electronics
  power supply: yes
  updated: Tue 25 Mar 2014 11:19:19 PM CLST (8689 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: fully-charged
    energy: 42.18 Wh
    energy-empty: 0 Wh
    energy-full: 42.18 Wh
    energy-full-design: 45.14 Wh
    energy-rate: 2.01793 W
    voltage: 8.383 V
    percentage: 100%
    capacity: 93.4426%
    technology: lithium-ion

Daemon:
  daemon-version: 0.9.15
  can-suspend: yes
  can-hibernate no
  on-battery: no
  on-low-battery: no
  lid-is-closed: no
  lid-is-present: yes
  is-docked: no

Here it is, a minute later (or so), after the AC being disconnected from the computer

tw@potatOS:~$ upower --dump
Device: /org/freedesktop/UPower/devices/line_power_ADP1
  native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/ADP1
  power supply: yes
  updated: Tue 25 Mar 2014 08:20:03 PM CLST (19616 seconds ago)
  has history: no
  has statistics: no
  line-power
    online: yes

Device: /org/freedesktop/UPower/devices/battery_BAT1
  native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:01/PNP0C09:00/PNP0C0A:00/power_supply/BAT1
  vendor: SAMSUNG Electronics
  power supply: yes
  updated: Tue 25 Mar 2014 11:19:19 PM CLST (8860 seconds ago)
  has history: yes
  has statistics: yes
  battery
    present: yes
    rechargeable: yes
    state: fully-charged
    energy: 42.18 Wh
    energy-empty: 0 Wh
    energy-full: 42.18 Wh
    energy-full-design: 45.14 Wh
    energy-rate: 2.01793 W
    voltage: 8.383 V
    percentage: 100%
    capacity: 93.4426%
    technology: lithium-ion

Daemon:
  daemon-version: 0.9.15
  can-suspend: yes
  can-hibernate no
  on-battery: no
  on-low-battery: no
  lid-is-closed: no
  lid-is-present: yes
  is-docked: no

As you can see, the thing is, that the status of the AC Adapter isn't being picked up by the computer, and thus, isn't telling the computer that the status of the battery might change. For example, the other day I had full battery, disconnected the AC Adapter, and forgot about it.What happened was, as there was no change in the status, th...

Read more...

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.