Re: [ibm-acpi-devel] [PATCH] video: backlight: Remove backlight sysfs uevent

2013-11-11 Thread Henrique de Moraes Holschuh
On Tue, 12 Nov 2013, Jingoo Han wrote: > On Tuesday, November 12, 2013 8:57 AM, Kyungmin Park wrote: > > From: Kyungmin Park > > > > The most mobile phones have Ambient Light Sensors and it changes brightness > > according lux. > > It means it changes backlight brightness frequently by just writ

[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/Docume

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

2013-11-11 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

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

2013-11-11 Thread Julian Andres Klode
This should be considered experimental. There seem to be to ways to inhibit charging, one globally using peak shift state, and one using a battery-specific inhibit charge command. The latter is implemented here. Setting a permanent timeout is not supported currently. Reading the timeout is not sup

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

2013-11-11 Thread Julian Andres Klode
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 a

[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 ++