[Pkg-utopia-maintainers] Bug#460072: hal: I have two batteries with Linux 2.6.24

Mike Hommey mh at glandium.org
Mon Jan 14 10:23:12 UTC 2008


On Sat, Jan 12, 2008 at 08:55:07PM +0900, Mike Hommey wrote:
> On Sat, Jan 12, 2008 at 07:47:02PM +0900, Mike Hommey wrote:
> > On Thu, Jan 10, 2008 at 11:54:00AM +0000, Sam Morris wrote:
> > > Subject: hal: I have two batteries with Linux 2.6.24
> > > Package: hal
> > > Version: 0.5.10-5
> > > Severity: normal
> > > 
> > > After upgrading to 2.6.24-rc7, my laptop grew another battery!
> > 
> > Same problem here. One is from /sys/class/power_supply/ and the other is
> > from /proc/acpi/battery. Same applies for AC adapter.
> 
> Plus, the second battery has no up to date information (discharge rate,
> etc.)

FWIW, I worked around the issue by creating a
/etc/hal/fdi/preprobe/sysfs-battery.fdi file containing the following:
<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
  <device>
    <match key="linux.sysfs_path" prefix="/sys/class/power_supply/">
      <merge key="info.ignore" type="bool">true</merge>
    </match>
  </device>
</deviceinfo>

This avoids devices in /sys/class/power_supply to be registered in hal.

Mike





More information about the Pkg-utopia-maintainers mailing list