[patch] addon-usb-csr.c adds capabilities too early.

Richard Hughes richard at hughsie.com
Sat Apr 2 01:32:13 PST 2005


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.

Richard.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: csr-capabilities.patch
Type: text/x-patch
Size: 1871 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050402/4c66e970/csr-capabilities.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