Public bug reported:

Binary package hint: hal

I'm currently debugging a problem with Feisty + kernel 2.6.20.16.28
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

https://bugs.launchpad.net/ubuntu/+source/acpitool/+bug/120708

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-0.5.8.1/hald/linux/acpi.c line 580:

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

** Affects: hal (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
HAL *assumes* laptop battery is rechargeable but doesn't check
https://bugs.launchpad.net/bugs/120721
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to