Warning: Can't synchronize with repository "(default)" (No changeset 96d22ec3fa3ef6de3ea8dc0d7d398adc9aa071cf in the repository). Look in the Trac log for more information.

Ticket #10 (closed task: fixed)

Opened 5 years ago

Last modified 5 years ago

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

comment:1 Changed 5 years ago by mickey

  • Status changed from new to closed
  • Resolution set to fixed

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.

Note: See TracTickets for help on using tickets.