HAL *assumes* laptop battery is rechargeable but doesn't check

Bug #120721 reported by TJ on 2007-06-16
Affects Status Importance Assigned to Milestone
hal (Ubuntu)

Bug Description

Binary package hint: hal

I'm currently debugging a problem with Feisty + kernel where ACPI is getting confused and reporting the laptop battery as non-rechargeable. In the course of my investigations I was comparing the output of acpitool and lshal with respect to battery parameters.

acpitool was reporting battery-technlogy "non-rechargeable" whereas hal was reporting battery.is_rechargeable == true.

I decided to find out how these results were being determined by examining the respective source codes. As a result I've discovered a couple of issues in both. I've already reported the acpitools issue in


I've also found that hal doesn't actually check whether a battery is rechargeable or not - it simply assumes it is. This seems to me to be a significant bug that could lead to problems by any packages that rely on its output being accurate.

hal- line 580:

  /* we are assuming a laptop battery is rechargeable */
  hal_device_property_set_bool (d, "battery.is_rechargeable", TRUE);

Adam Niedling (krychek) wrote :

Feisty is not supported anymore.

Changed in hal:
status: New → Invalid
gianluca (amato) wrote :

This also affect Intrepid

Changed in hal:
status: Invalid → Confirmed
gianluca (amato) wrote :

This also affects Intrepid

Intrepid is not supported any more. Does this also happen in supported Ubuntu versions?

Changed in hal (Ubuntu):
status: Confirmed → Incomplete
Launchpad Janitor (janitor) wrote :

[Expired for hal (Ubuntu) because there has been no activity for 60 days.]

Changed in hal (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