Re: [ibm-acpi-devel] [PATCH v2] thinkad_acpi: Support the battery wear control

2017-12-05 Thread Julian Andres Klode
On Tue, Dec 05, 2017 at 03:22:28PM +0100, Christoph Böhmwalder wrote: > On Sun, Dec 03, 2017 at 11:56:40PM +0100, Ognjen Galic wrote: > > Add support for the ACPI batteries on newer thinkpad models > > (>Sandy Bridge) that support the setting of start and stop > > thresholds. > > > > The actual in

Re: [ibm-acpi-devel] sysfs charge thresholds for ThinkPads (and possibly others), preparation for second try

2015-07-08 Thread Julian Andres Klode
On Wed, Jul 08, 2015 at 01:51:10AM +0200, Sebastian Reichel wrote: > Hi, > > On Tue, Jul 07, 2015 at 11:07:28PM +0200, Julian Andres Klode wrote: > > Hi everyone (Thinkpad-ACPI, ACPI, and Power supply maintainers), > > > > some might know that I presented a p

[ibm-acpi-devel] sysfs charge thresholds for ThinkPads (and possibly others), preparation for second try

2015-07-07 Thread Julian Andres Klode
#x27;t start working on it again, and then somebody does not like it. Regards, Julian CCing evg...@debian.org who keeps pushing me to follow up on this - thanks :) -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org

Re: [ibm-acpi-devel] [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2014-04-06 Thread Julian Andres Klode
On Tue, Dec 31, 2013 at 11:46:05PM +0100, Julian Andres Klode wrote: > On Tue, Dec 31, 2013 at 10:12:31AM -0200, Henrique de Moraes Holschuh wrote: > > On Tue, 31 Dec 2013, Julian Andres Klode wrote: > > > We might be able to work around this by simple setting stop = start &g

Re: [ibm-acpi-devel] unsupported brightness interface on X230 since linux-3.13.4

2014-03-03 Thread Julian Andres Klode
rk then? Function keys might stop working from time to time, and you need to remove the battery and charger for some time in order to reset something. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. Please do no

Re: [ibm-acpi-devel] [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-12-31 Thread Julian Andres Klode
On Tue, Dec 31, 2013 at 10:12:31AM -0200, Henrique de Moraes Holschuh wrote: > On Tue, 31 Dec 2013, Julian Andres Klode wrote: > > We might be able to work around this by simple setting stop = start > > if a new write causes the stop threshold to be below the start > > thr

Re: [ibm-acpi-devel] [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-12-30 Thread Julian Andres Klode
On Mon, Dec 30, 2013 at 08:40:45PM -0200, Henrique de Moraes Holschuh wrote: > On Mon, 30 Dec 2013, Henrique de Moraes Holschuh wrote: > > On Mon, 30 Dec 2013, Julian Andres Klode wrote: > > > On Mon, Nov 11, 2013 at 02:56:30PM +0100, Julian Andres Klode wrote: > > >

Re: [ibm-acpi-devel] [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-12-30 Thread Julian Andres Klode
On Mon, Nov 11, 2013 at 02:56:30PM +0100, Julian Andres Klode wrote: > 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 contr

Re: [ibm-acpi-devel] [PATCH 0/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-12-30 Thread Julian Andres Klode
On Sat, Dec 28, 2013 at 08:10:03PM -0200, Henrique de Moraes Holschuh wrote: > On Sat, 28 Dec 2013, Julian Andres Klode wrote: > > On Mon, Nov 11, 2013 at 02:56:29PM +0100, Julian Andres Klode wrote: > > > This patch series adds support for specifying charging thresholds, >

Re: [ibm-acpi-devel] [PATCH 0/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-12-28 Thread Julian Andres Klode
On Mon, Nov 11, 2013 at 02:56:29PM +0100, Julian Andres Klode wrote: > 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. Hello again, it's

Re: [ibm-acpi-devel] [PATCH 0/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-11-25 Thread Julian Andres Klode
On Mon, Nov 11, 2013 at 02:56:29PM +0100, Julian Andres Klode wrote: > 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 pa

Re: [ibm-acpi-devel] [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-11-13 Thread Julian Andres Klode
On Mon, Nov 11, 2013 at 02:56:30PM +0100, Julian Andres Klode wrote: > +static int __init battery_init(struct ibm_init_struct *iibm) > + for (i = 0; i < BATTERY_MAX_COUNT; i++) { > + int j = 0; > + if (!acpi_evalf(hkey_handle, &state, &

[ibm-acpi-devel] [PATCH 2/4] thinkpad_acpi: battery: Add force_discharge attribute

2013-11-11 Thread Julian Andres Klode
This makes it possible to forcefully discharge a battery. Signed-off-by: Julian Andres Klode --- Documentation/laptops/thinkpad-acpi.txt | 4 +++ drivers/platform/x86/thinkpad_acpi.c| 49 - 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a

[ibm-acpi-devel] [PATCH 1/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-11-11 Thread Julian Andres Klode
. The behaviour of '0' might be confusing, especially for the stop case where it basically seems to mean '100'. Signed-off-by: Julian Andres Klode --- Documentation/laptops/thinkpad-acpi.txt | 17 drivers/platform/x86/thinkpad_acpi.c| 173 ++

[ibm-acpi-devel] [PATCH 4/4] thinkpad_acpi: battery: Add inhibit_charge_minutes attribute

2013-11-11 Thread Julian Andres Klode
supported because the ACPI call needed to read the value is not documented/reverse-engineered yet. Signed-off-by: Julian Andres Klode --- Documentation/laptops/thinkpad-acpi.txt | 12 drivers/platform/x86/thinkpad_acpi.c| 34 - 2 files changed, 45

[ibm-acpi-devel] [PATCH 0/4] thinkpad_acpi: Add support for controlling charge thresholds

2013-11-11 Thread Julian Andres Klode
ynamically 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: ba

[ibm-acpi-devel] [PATCH 3/4] thinkpad_acpi: battery: Add force_discharge_ac_break attribute

2013-11-11 Thread Julian Andres Klode
Tells the EC to stop a forceful discharging if the AC is disconnected. First needs force_discharge set to 1 to be able to work. Actual functionality is untested, as that attribute is not supported on an X230. Signed-off-by: Julian Andres Klode --- Documentation/laptops/thinkpad-acpi.txt | 4

Re: [ibm-acpi-devel] [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 */ > > +

[ibm-acpi-devel] [RFC PATCH] thinkpad_acpi: Add support for controlling charge thresholds

2013-11-04 Thread Julian Andres Klode
. The behaviour of '0' might be confusing, especially for the stop case where it basically seems to mean '100'. Signed-off-by: Julian Andres Klode --- Does this look OK so far? There are some other things I want to add (force_discharge and others), but I thought I'd gathe

[ibm-acpi-devel] Anyone working on charge control via ACPI in newer ThinkPads?

2013-11-03 Thread Julian Andres Klode
nding the thinkpad-acpi module. The latter is probably easier. -- Julian Andres Klode - Debian Developer, Ubuntu Member See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. Please do not top-post if pos

Re: [ibm-acpi-devel] Anyone working on charge control via ACPI in newer ThinkPads?

2013-11-03 Thread Julian Andres Klode
On Mon, Oct 28, 2013 at 10:42:41AM +0100, Julian Andres Klode wrote: > Hi, > > I am wondering whether anyone is working on kernel support for > (dis-)charge controlling features of the current (or last) > generation ThinkPads, in order to prevent any duplicate > work. If n