[Pkg-utopia-maintainers] Bug#462723: hal does not give actual values of battery states with 2.6.24

Didier Raboud didier at raboud.com
Sun Jan 27 14:52:21 UTC 2008


Le dimanche, 27 janvier 2008 03.42:46 Michael Biebl, vous avez écrit :
> Didier Raboud wrote:
> > (...)
> > This is still a bug in hal though. :)
>
> Depends. A lot of information (on my system) is missing in the new /sys
> interface (that's also why I prefer proc atm). Also, what you describe
> is simply hal reporting the values provided by the kernel. So it might
> actually be a kernel issue after all.
>
>
> Cheers,
> Michael

Hi, 

I don't think so, and I prove it. Attached to this mail, you'll find a graph 
showing the differences between values in /sys/ and reported by hal and the 
script I used to generate the data. (battery discharging, AC adapter plugged 
in, then battery charging and then # /etc/init.d/hal restart).

So hal is visibly faulty and not the kernel (at least on this specific issue).

---- hal-0.5.10/hald/linux/acpi.c ----
// (...)
        /* collect batteries */
        acpi_synthesize ("/proc/acpi/battery", ACPI_TYPE_BATTERY, TRUE);
        /* collect processors */
        acpi_synthesize ("/proc/acpi/processor", ACPI_TYPE_PROCESSOR, TRUE);
        /* collect fans */
        acpi_synthesize ("/proc/acpi/fan", ACPI_TYPE_FAN, TRUE);
        /* collect AC adapters */
        acpi_synthesize ("/proc/acpi/ac_adapter", ACPI_TYPE_AC_ADAPTER, TRUE);
// (...)
--------

Regards,
Didier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: faulty_hal_2-6-24.png
Type: image/png
Size: 30113 bytes
Desc: Graphical results with 2.6.24
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20080127/e65ad22c/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_hal_sys.sh
Type: application/x-shellscript
Size: 693 bytes
Desc: Script used to test hal and /sys correspondancy
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20080127/e65ad22c/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20080127/e65ad22c/attachment-0001.pgp 


More information about the Pkg-utopia-maintainers mailing list