This patch series adds support for specifying charging thresholds, forcing a battery to discharge, and inhibiting charging, on ThinkPad Laptops using Sandy Bridge or newer processors. The first two patches should be stable now, the third one does not work on my test system (but I'd appreciate if anyone with something other than an X230 tests it). The inhibit charging part is a bit unprecise, and I can obviously not test that -1 really means permanently, but I assume it does. I don't know whether this one should be merged. Changes since the RFC PATCH: - Define batteries more dynamically instead of statically using large macros. Added support for up to 3 batteries, unsupported ones will not be exported. - Added 3 more new patches with more features Julian Andres Klode (4): thinkpad_acpi: Add support for controlling charge thresholds thinkpad_acpi: battery: Add force_discharge attribute thinkpad_acpi: battery: Add force_discharge_ac_break attribute thinkpad_acpi: battery: Add inhibit_charge_minutes attribute Documentation/laptops/thinkpad-acpi.txt | 37 ++++ drivers/platform/x86/thinkpad_acpi.c | 300 ++++++++++++++++++++++++++++++++ 2 files changed, 337 insertions(+) -- 1.8.4.2 -- To unsubscribe from this list: send the line "unsubscribe platform-driver-x86" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html