FDI File Problems

Richard Hughes hughsient at gmail.com
Mon Oct 17 07:58:17 PDT 2005


On Mon, 2005-10-17 at 10:20 -0400, David Zeuthen wrote:
> On Sat, 2005-10-15 at 11:43 +0100, Richard Hughes wrote:
> > Guys, this should work right?:
> > 
> >   <device>
> >     <match key="smbios.system.manufacturer" string="TOSHIBA">
> >       <match key="smbios.system.product" string="Satellite Pro A10">
> > 	<merge key="smbios.bios.quirk.lastfull" type="bool">true</merge>
> > 	<merge
> > key="/org/freedesktop/Hal/devices/acpi_BAT1:battery.reporting.last_full"
> > type="int">3200</merge>
> >       </match>
> >     </match>
> >   </device>
> 
> No, the computer object is the first to be created so there is no
> 
>  /org/freedesktop/Hal/devices/acpi_BAT1:battery.reporting.last_full
> 
> object at that point. You want to do it the other way around.

Of course.

  <device>
    <match key="battery.model" string="G71C00037510">
      <match
key="/org/freedesktop/Hal/devices/computer:smbios.system.manufacturer"
string="TOSHIBA">
        <match
key="/org/freedesktop/Hal/devices/computer:smbios.system.product"
string="Satellite Pro A10">
	  <merge key="smbios.bios.quirk.lastfull" type="bool">true</merge>
	  <merge key="smbios.bios.quirk.design" type="bool">true</merge>
	  <merge key="smbios.bios.quirk.unit" type="bool">true</merge>
	  <merge
key="/org/freedesktop/Hal/devices/acpi_BAT1:battery.reporting.last_full"
type="int">3200</merge>
	  <merge
key="/org/freedesktop/Hal/devices/acpi_BAT1:battery.reporting.design"
type="int">3200</merge>
	  <merge
key="/org/freedesktop/Hal/devices/acpi_BAT1:battery.reporting.unit"
type="string">mWh</merge>
        </match>
      </match>
    </match>
  </device>

Works fine.

Thanks,

Richard.



More information about the hal mailing list