Holger Freyther wrote: > For one battery we want to immediately know when its charging state is > changing or might have changed (the other option would be to do even more > polling).
Naw, no polling, just separate events for separate things, e.g., - charger N inserted - charger M removed - battery X started charging - battery Y is full now - battery Z has caught fire etc. It's probably also a lot easier to debug the state machine that disambiguates the various events in user space, e.g., you may well get a "battery is full" event moments after the charger has been removed. > welcome back Thanks ;-) - Werner
