Hal 0.5.0

David Zeuthen david at fubar.dk
Mon Mar 14 21:33:35 PST 2005


On Fri, 2005-03-11 at 23:47 +0000, Sergey Udaltsov wrote:
> BTW, just curious, which version of hal is supposed to include my
> long-pending patch for the mouse battery level?;)
> 

Heh, yeah, sorry, I'm the king of being slow these days (or rather, this
year). All the pieces are now in place for this, but things has changed
quite a bit with hal so it needs to be slightly redone...

I'm commenting on the addons.tar.gz file you sent Jan 13 at 7:09PM EST.

I think the .fdi file needs to be placed in 

    information/10freedesktop/10-wireless-mice.fdi
 
and it should look somewhat like this

        <?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
        <deviceinfo version="0.2">
          <device>
            <match key="usb.vendor_id" int="0x046d"> <!-- Logitech, Inc. -->
              <match key="usb.product_id" int="0xc50e"> <!-- Receiver for MX1000
                <append key="info.addons" type="strlist">hald-addon-usb-csr</append>
                <merge key="battery.type" type="string">mouse</merge>
              </match>
            </match>
          </device>
        </deviceinfo>
        
We can extend this file with the USB vid/pid as suitable as we discover
other USB devices that supports the CSR way of reading battery state.
Note that I've removed all the battery.* properties except battery.mouse
(other CSR devices may not necessarily be mice); the code needs to set
the rest. 

The code looks good but needs to be adapted to the new libhal (mostly
s/hal_/libhal_/ but also some error handling); it should be placed in
hald/linux2/addons. With these changes it should just work. See also the
other code in that directory; you may want to copy-paste the initial
blurbs.

Much sorry again for the huge delay, but I needed to do a lot of
internal changes that kept the code being in flux. That should be fixed
now :-)

Btw, we should probably buy such a mouse for Richard so he can add
support for it in the GNOME power manager bits that he's working on :-)
- see [1] and drool :-)

Cheers,
David

[1] - http://live.gnome.org/ProjectUtopia_2fPowerManagement_2fgnome_2dpower_2dmanager


_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal



More information about the Hal mailing list