[ltp] Re: thinkpad-acpi release for 2.6.24-rc2
Yves-Alexis Perez
linux-thinkpad@linux-thinkpad.org
Wed, 21 Nov 2007 07:19:56 +0100
--=-Mv50emefS1pn8RtLvJ1j
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On mer, 2007-11-21 at 07:11 +0100, Marcus Better wrote:
> I have the same effect with kernel 2.6.23.1 and thinkpad-acpi
> 0.18-20071013,
> module options hotkey=enable,0xffff8f experimental=1
> brightness_enable=1,
> video module loaded.
>
> Unloading the video module removes the duplicate events, but the
> brightness
> keys have no effect now. (Previously they didn't work either, but
> would
> just show the on-screen display and cause a brief flicker.)
You have to patch your kernel (see attached patch against 2.6.24-rc3 +
0.18-20071112) to disable thinkpad-acpi keypresses reporting.
And you will have to manually catch the keypresses. Here, hal is
consused because there are two 'laptop_panel' and gnome-power-manager
can't adjust the backlight correctly.
Cheers,
--
Yves-Alexis Perez
--=-Mv50emefS1pn8RtLvJ1j
Content-Disposition: attachment; filename=lenovo-thinkpad-brightness-key-disable.patch
Content-Type: text/x-patch; name=lenovo-thinkpad-brightness-key-disable.patch; charset=utf-8
Content-Transfer-Encoding: 7bit
--- drivers/misc/thinkpad_acpi.c.orig 2007-11-17 11:30:33.000000000 +0100
+++ drivers/misc/thinkpad_acpi.c 2007-11-20 07:34:56.000000000 +0100
@@ -1725,9 +1725,9 @@
KEY_UNKNOWN, /* 0x0C: FN+BACKSPACE */
KEY_UNKNOWN, /* 0x0D: FN+INSERT */
KEY_UNKNOWN, /* 0x0E: FN+DELETE */
- KEY_BRIGHTNESSUP, /* 0x0F: FN+HOME (brightness up) */
+ KEY_RESERVED, /* 0x0F: FN+HOME (brightness up) */
/* Scan codes 0x10 to 0x1F: Extended ACPI HKEY hot keys */
- KEY_BRIGHTNESSDOWN, /* 0x10: FN+END (brightness down) */
+ KEY_RESERVED, /* 0x10: FN+END (brightness down) */
KEY_RESERVED, /* 0x11: FN+PGUP (thinklight toggle) */
KEY_UNKNOWN, /* 0x12: FN+PGDOWN */
KEY_ZOOM, /* 0x13: FN+SPACE (zoom) */
--=-Mv50emefS1pn8RtLvJ1j--