Correction: the NEW interface is the one that's not emitting 'change' events. If I make an fdi file to ignore the power_supply object with name Li-ion, I'm left with just the working battery. However, this is not a solution -- it's just a workaround. Ideally, once the lack of events is fixed there should be a way to detect duplicates, perhaps by having the power_supply sysfs class keep a link to the battery object under /proc.
Correction: the NEW interface is the one that's not emitting 'change' events. If I make an fdi file to ignore the power_supply object with name Li-ion, I'm left with just the working battery. However, this is not a solution -- it's just a workaround. Ideally, once the lack of events is fixed there should be a way to detect duplicates, perhaps by having the power_supply sysfs class keep a link to the battery object under /proc.