Ticket #10 (closed task: fixed)
Polling-Free power handling
| Reported by: | mickey | Owned by: | mickey |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | framework/odeviced | Version: | |
| Keywords: | cross-layer | Cc: |
Description
Battery handling needs to be done without polling the status, i.e. we need to gather notifications from the kernel every time the charging status changes.
Change History
Note: See
TracTickets for help on using
tickets.

this is now implemented in [e9d9a1994c1947d51eba8d4f7368f40b69b0fc0d] as far as possible with the power supply class (or rather the device specific _implementation_ of the power supply class...). We now get kernel notifications for Charging and Discharging, but still need to poll for capacity changes. As we can safely choose a huge timeout (5 minutes or so) for polling the battery, this should be really ok.
Note that it will only work for devices implementing their PM through the Kernel 2.6.x (x>=24) power supply device class. I will refuse to add support for vendor-proprietary interfaces.