BatteryStatus doesn't display power information about battery

Bug #583654 reported by Ivan Zorin
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Battery Status
Fix Released
High
Ivan Zorin

Bug Description

> What steps will reproduce the problem?

Open main menu of BatteryStatus applet/indicator.

> What is the expected result?

For see power status of battery.

> What happens instead?

"No battery" information although battery is set up and available for DeviceKit-Power/UPower and GNOME Power Manager.

> Provide any additional related information

This happens at some hardware (some Acer laptops/netbooks, for example), when DeviceKit-Power/UPower enumerate primary battery device not as battery_BAT0 ( see this comments for details- http://www.webupd8.org/2010/05/battery-status-01-released-improved.html#disqus_thread )

Revision history for this message
Ivan Zorin (iaz) wrote :

If someone else has the same problem, then please, post here output of this command:
On Lucid:
$ dbus-send --print-reply --system --dest=org.freedesktop.UPower /org/freedesktop/UPower org.freedesktop.UPower.EnumerateDevices
On Karmic:
$ dbus-send --print-reply --system --dest=org.freedesktop.DeviceKit.Power /org/freedesktop/DeviceKit/Power org.freedesktop.DeviceKit.Power.EnumerateDevices

Changed in battery-status:
importance: Undecided → High
status: New → Incomplete
Ivan Zorin (iaz)
Changed in battery-status:
assignee: nobody → Ivan Zorin (iaz)
Revision history for this message
Ivan Zorin (iaz) wrote :

> post here output of this command:

Here from Lucid on an Acer Aspire Timeline 1810T:
method return sender=:1.16 -> dest=:1.116 reply_serial=2
array [
object path "/org/freedesktop/UPower/devices/line_power_ACAD"
object path "/org/freedesktop/UPower/devices/battery_BAT1"
]

Changed in battery-status:
status: Incomplete → Confirmed
Ivan Zorin (iaz)
Changed in battery-status:
status: Confirmed → In Progress
Revision history for this message
martin (martu) wrote :

in my case, the battery "name" is C1BE, so i have modified these lines:

  704: self.power_battery_name = "battery_C1BE"
2331: self.power_battery_name = "battery_C1BE"

Ivan Zorin (iaz)
Changed in battery-status:
milestone: none → 0.2
Revision history for this message
Omar Campagne (ocampagne) wrote :

Debian Squeeze (lucid dbus). The above message solved my issue.
HP Compaq 6715s.
My battery name was C1ED.

Ivan Zorin (iaz)
Changed in battery-status:
status: In Progress → Fix Committed
Revision history for this message
Ivan Zorin (iaz) wrote :

New version with fixed bug available in PPA - https://edge.launchpad.net/~iaz/+archive/battery-status
Now code detects battery without any hard-coded variables, so looks like bug has been fixed.
But let me know and post comment here, if problem still exists.

Changed in battery-status:
status: Fix Committed → Fix Released
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.