[ibm-acpi-devel] Information for R61/T61 owners

2007-10-30 Thread Henrique de Moraes Holschuh
Here is some fresh information for Linux on the T61/R61 (and likely X61.. untested). Someone with a T61 or R61 please test and update thinkwiki. First, you must be aware that your model works differently than older ThinkPads. The EC has different behaviour for various things. 1. You *absolutely

[ibm-acpi-devel] [GIT PATCH] thinkpad-acpi patches for 2.6.24-rc

2007-10-30 Thread Henrique de Moraes Holschuh
Len, Here is a bunch of thinkpad-acpi changes that fixes some bugs and add key thinkpad models support that should, if at all possible, be merged for 2.6.24. They are really important for ThinkPad X60, T61 and R61 users, and the first patch unbreaks the ThinkPad ACPI hotkey map in all IBM ThinkPa

[ibm-acpi-devel] [PATCH 3/7] ACPI: thinkpad-acpi: add brightness_force parameter

2007-10-30 Thread Henrique de Moraes Holschuh
Add a "brightness_force" module parameter that allows the local admin to force the backlight support to not be enabled. It can also be used to force the backlight support to be enabled, but that is currently a no-op as the backlight support is enabled by default when available. This will be chang

[ibm-acpi-devel] [PATCH 2/7] ACPI: thinkpad-acpi: support 16 levels of brightness (v3)

2007-10-30 Thread Henrique de Moraes Holschuh
Lenovo ThinkPads often have 16 brightness levels in EC, and not just eight levels like older ThinkPads. They also have standard ACPI backlight brightness control. We detect the number of brightness levels by the presence of a BCLL package with 16 entries. If BCLL is not there, we assume eight le

[ibm-acpi-devel] [PATCH 5/7] ACPI: thinkpad-acpi: bump up version to 0.17

2007-10-30 Thread Henrique de Moraes Holschuh
The lm-sensors 3.0.0/libsensors4 compatibility changes are reason enough to bump up the version string. Do it. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- Documentation/thinkpad-acpi.txt |4 ++-- drivers/misc/thinkpad_acpi.c|2 +- 2 files changed, 3 insertions(

[ibm-acpi-devel] [PATCH 1/7] ACPI: thinkpad-acpi: revert keymap changes

2007-10-30 Thread Henrique de Moraes Holschuh
Revert commit fba956c46a72f9e7503fd464ffee43c632307e31, "Map volume and brightness events on thinkpads". That commit made some modifications to the default keymaps that cause bad behaviour on all IBM ThinkPads if HAL doesn't know to change them into passive (on-screen-display only) events. The pr

[ibm-acpi-devel] [PATCH 6/7] ACPI: thinkpad-acpi: allow for syscall restart in sysfs handlers

2007-10-30 Thread Henrique de Moraes Holschuh
Map an mutex_lock_interruptible() error return into ERESTARTSYS, as the only possible error from mutex_lock_interruptible is EINTR, and that will only happen if signal_pending() causes the mutex lock attempt to abort. This still allows signals to be delivered ASAP, which is much nicer than just do

[ibm-acpi-devel] [PATCH 4/7] ACPI: thinkpad-acpi: prefer standard ACPI backlight level control

2007-10-30 Thread Henrique de Moraes Holschuh
Newer Lenovo BIOSes support the standard ACPI backlight brightness interface (_BCM, _BQC, _BCL). It should be used instead of the native thinkpad backlight brightness control interface when possible. This patch disables the native brightness support in the driver by default when we detect that th

[ibm-acpi-devel] [PATCH 7/7] ACPI: thinkpad-acpi: fix brightness_set error paths

2007-10-30 Thread Henrique de Moraes Holschuh
The code calling brightness_set() can't handle EINTR/ERESTARTSYS well, nor is it checking brightness_set() return status properly. Fix it. Signed-off-by: Henrique de Moraes Holschuh <[EMAIL PROTECTED]> --- drivers/misc/thinkpad_acpi.c | 34 +- 1 files changed, 2

Re: [ibm-acpi-devel] [PATCH 3/7] ACPI: thinkpad-acpi: add brightness_force parameter

2007-10-30 Thread Henrique de Moraes Holschuh
On Tue, 30 Oct 2007, Henrique de Moraes Holschuh wrote: > Add a "brightness_force" module parameter that allows the local admin to > force the backlight support to not be enabled. Err, brightness_enable. The patch is correct, though. I will send an updated one which fixes the description, just i

[ibm-acpi-devel] [PATCH 3/7 v2] ACPI: thinkpad-acpi: add brightness_force parameter

2007-10-30 Thread Henrique de Moraes Holschuh
Add a "brightness_enable" module parameter that allows the local admin to force the backlight support to not be enabled. It can also be used to force the backlight support to be enabled, but that is currently a no-op as the backlight support is enabled by default when available. This will be chan