Re: [RFC PATCH] thinkpad_acpi: Add support for controlling charge thresholds

2013-11-05 Thread Julian Andres Klode
On Tue, Nov 05, 2013 at 11:18:02AM +0100, Bjørn Mork wrote: > Julian Andres Klode writes: > > > > > +TPACPI_HANDLE(battery, root, "\\_SB.PCI0.LPC.EC.HKEY", > > + "\\_SB.PCI0.LPCB.EC.HKEY", /* X121e, T430u */ > > + "\\_SB.PCI0.LPCB.H_EC.HKEY", /* L430 */ > > + "\

Re: [RFC PATCH] thinkpad_acpi: Add support for controlling charge thresholds

2013-11-05 Thread Bjørn Mork
Julian Andres Klode writes: > > +TPACPI_HANDLE(battery, root, "\\_SB.PCI0.LPC.EC.HKEY", > +"\\_SB.PCI0.LPCB.EC.HKEY", /* X121e, T430u */ > +"\\_SB.PCI0.LPCB.H_EC.HKEY", /* L430 */ > +"\\_SB.PCI0.LPCB.EC0.HKEY", /* Edge/S series */ > +);

[RFC PATCH] thinkpad_acpi: Add support for controlling charge thresholds

2013-11-04 Thread Julian Andres Klode
Add support for battery charge thresholds in new Sandy Bridge and Ivy Bridge ThinkPads. Based on the unofficial documentation in tpacpi-bat. The threshold files support the values '0' for the controller's default, and 1-99 as percentages. Values outside of that range are rejected. The behaviour of