[patch] addon-usb-csr.c adds capabilities too early.
David Zeuthen
david at fubar.dk
Mon Apr 4 09:07:30 PDT 2005
On Sat, 2005-04-02 at 10:32 +0100, Richard Hughes wrote:
> When playing with GNOME Power Manager, I noticed when I just plugged in
> my nice new shiny Logitech mouse, I got a charge_level of zero, but if I
> restarted the g-p-m after plugging, it displayed the proper charge
> value.
>
> Looking at addon-usb-csr.c, I noticed the capability was being set
> before the device was "coldplugged", unlike that of addon-hid-ups.c.
>
> Any program watching for "new capability" like g-p-m would be querying
> the key before it was set.
>
> The attached patch fixes the issue.
Looks sensible, I've committed this one.
Cheers,
David
_______________________________________________
hal mailing list
hal at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/hal
More information about the Hal
mailing list