Hal 0.5.0

Sergey Udaltsov sergey.udaltsov at gmail.com
Mon Mar 21 16:07:28 PST 2005


Here is new version of the code. Unfortunately I can only compile it
and ensure it starts - I still use hal 0.4.7 (dbus 0.23.2) - so cannot
fully test the functionality. (BTW, can I have both old and new
version piecefully coexisting?). I'll try to switch to newer dbus/hal
ASAP - but I would like at least to have some code visibility and, if
possible, code review from David.

Sergey


On Tue, 15 Mar 2005 00:33:35 -0500, David Zeuthen <david at fubar.dk> wrote:
> 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
> 
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usb-csr.tar.gz
Type: application/x-gzip
Size: 4331 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050322/8e94584c/usb-csr.tar.bin
-------------- next part --------------
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal


More information about the Hal mailing list