[lucid] battery status not detected/shown until /proc entry viewed

Bug #513716 reported by Matt Behrens on 2010-01-28
This bug affects 18 people
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)

Bug Description

Binary package hint: gnome-power-manager

Spotted this after my recent alpha 2 install on my Asus EeePC 1000HE. If I boot it up on battery, the battery icon shows full and on AC.

In an attempt to actually see what my remaining charge was, I did a cat /proc/acpi/battery/BAT0/state. Immediately, the battery icon showed the correct charge level, screen dimmed, etc.

ProblemType: Bug
Architecture: i386
Date: Thu Jan 28 05:56:13 2010
DistroRelease: Ubuntu 10.04
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha i386 (20100113)
Package: gnome-power-manager 2.29.1-0ubuntu2
 PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.32-11.15-generic
SourcePackage: gnome-power-manager
Uname: Linux 2.6.32-11-generic i686

Matt Behrens (zigg) wrote :
cimh (martin-briscoe) wrote :

I am getting exactly the same as this on my eee901 with 10.04a2
cat /proc/acpi/battery/BAT0/state - fixes it and slighly dims the screen

Also plugging the charger in then taking out seems to reset it as well


Matt Behrens (zigg) on 2010-01-29
Changed in gnome-power-manager (Ubuntu):
status: New → Confirmed
cimh (martin-briscoe) wrote :

installed all available upgrades tonight via synaptic and the battery icon is now working correctly even tho gnome-power-manager is still version 2.29.1-0ubuntu2

asus eee 901
lucid lynx alpha2

Matt Behrens (zigg) wrote :

Yeah, this was probably a different package's problem, I'm not sure which, and can't figure out which... but it is also now working for me as well. I'll mark g-p-m as invalid, seems like the right thing to do...

Changed in gnome-power-manager (Ubuntu):
status: Confirmed → Invalid
Meter (meter) wrote :

I installed and updated Lucid tonight on my Toshiba M45-S269 and am having the same issue. When starting with the AC adapter plugged in, I have to invoke cat /proc/acpi/battery/BAT1/state to get gnome-power-manager to recognize the battery. (I haven't tried booting from battery.) So I'm not so sure that the problem has actually gone away.

Meter (meter) on 2010-02-11
Changed in gnome-power-manager (Ubuntu):
status: Invalid → Confirmed
jnns (jnns) wrote :

I installed Lucid on my »Fujitsu-Siemens Amilo Si 3655« and experienced the issue as well.

Dax (bugs-metworst) wrote :

Using all upgrades, this also affects my Acer Aspire 7730 notebook.
Also in 'Power Management Preferences' the battery options are not available
(ie shutdown when battery is critically low)

Vladimir Hidalgo (vlad88sv) wrote :

I installed Lucid when in AC, not battery icon is shown.

:~$ cat /proc/acpi/battery/BAT0/state
present: yes
capacity state: ok
charging state: charged
present rate: 0 mW
remaining capacity: 42180 mWh
present voltage: unknown

:~$ cat /proc/acpi/battery/BAT0/info
present: yes
design capacity: 42180 mWh
last full capacity: 42180 mWh
battery technology: non-rechargeable
design voltage: 124070 mV
design capacity warning: 1000 mWh
design capacity low: 400 mWh
capacity granularity 1: 100 mWh
capacity granularity 2: 100 mWh
model number:
serial number:
battery type: LiOn
OEM info: Sony Corp.

Also does not give me an icon about battery level in the taskbar, also I can't find any battery related applet to add.

I've installed gnome-power-manager (as default Lucid installation did not installed it(?))

But trying to launch it gives me:

:~$ gnome-power-manager

(gnome-power-manager:2618): GLib-GObject-WARNING **: /build/buildd/glib2.0-2.24.0/gobject/gsignal.c:2273: signal `proxy-status' is invalid for instance `0x9788c70'

Vladimir Hidalgo (vlad88sv) wrote :

I rebooted without the AC plugged in, and now there's the battery level in the "Notifications mini-applications".

I've spotted what may be the cause, there's a preference option in this indicator that is set by default to "show only when charging/discharging" so I *think* the cause may be that when you boot with the AC plug and the battery is at 100% of its charge, this applet it's not displayed because of before mentioned option is active (which is fine, as it's the intended behavior) but when you remove the AC plug, nothing alerts the applet that the battery is now discharging and it must be displayed.

So this bug (at least for me) resume as follows:

"Battery level indicator fails to display on charging/discharging mode when booting with ac plugged in and battery at %100 of its charge"

Alex Murray (alexmurray) wrote :

@Vladimir - that doesn't sound like a bug to me - of course it will fail to display if set to only display when charging / discharging and battery is at 100% with AC since it *isn't* charging / discharging, it's full. This is just the correct, expected behaviour for that setting. If you want it to be always visible regardless of if its charging / discharging then change that setting appropriately.

Brandon Bell (brandonbell) wrote :

Same issue on a Macbook Pro 5,3.

However, doing a cat of /proc/acpi/battery/BAT0/* did not make the batter notification appear when booting and operating solely from the battery.

Glyph Lefkowitz (glyph) wrote :

I have the same symptoms as Brandon Bell.

Oedipe (oedipe) wrote :

Same here, with the .xsession-errors warning... signal `proxy-status' is invalid for instance etc.. etc...

elq (eva-lotte) wrote :

Current Lucid on HP Pavilion dv3550eg.

Booting on fully charged battery (without AC plugged in) resulted in the icon ("display always") showing I was running on AC with fully charged battery.

Calling cat /proc/acpi/battery/BAT0/state didn't change anything. But plugging it in suddenly updated the icon and was still ok after unplugging again.

It is interesting that the statistics plot that you can call from the icon showed that the battery was discharging. Only the icon itself didn't represent it.

I'm following another bug that there is no alarm at critical battery charge: https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/481576 Is this maybe somehow related?

tbuck (bdiddy84) wrote :

I have the same issue as elq, hp dv3510nr

nickthecook (nickthecook) wrote :

I have the issue where "cat"ing the proc entry for battery state does not help.

Fresh install of Lucid on Macbook Pro 5,1.

Immediately after install, I saw the battery indicator, and in Power Management options, there was a "On Battery" tab. After a reboot, there was no indicator, and no "On Battery" tab. However, the display still dimmed when I unplugged the power, and brightened when I plugged it back in.

I wanted to try laptop-mode instead of the default power-management package (can't remember exactly what it's called, but it gets removed when you install laptop-mode). I installed laptop-mode, rebooted, and both the battery indicator in the notification area, and the "On Battery" tab had reappeared. After another reboot, they were gone again.

Is there any information I can provide to help resolve this?

Victor Vargas (kamus) wrote :

Please could somebody check if this behaviour is still occurring under latest release included in Ubuntu Maverick? Thanks

Changed in gnome-power-manager (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
aaron (aaron-zareason) wrote :

I'm getting this in maverick. What info do you need?

Launchpad Janitor (janitor) wrote :

[Expired for gnome-power-manager (Ubuntu) because there has been no activity for 60 days.]

Changed in gnome-power-manager (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers