[kernel] r15740 - in dists/trunk/linux-2.6/debian: . patches/bugfix/all patches/series
Maximilian Attems
maks at alioth.debian.org
Tue May 18 14:03:30 UTC 2010
Author: maks
Date: Tue May 18 14:03:19 2010
New Revision: 15740
Log:
add fedora patch for recent thinkpads
Added:
dists/trunk/linux-2.6/debian/patches/bugfix/all/thinkpad-acpi-fix-backlight.patch
Modified:
dists/trunk/linux-2.6/debian/changelog
dists/trunk/linux-2.6/debian/patches/series/base
Modified: dists/trunk/linux-2.6/debian/changelog
==============================================================================
--- dists/trunk/linux-2.6/debian/changelog Tue May 18 13:43:16 2010 (r15739)
+++ dists/trunk/linux-2.6/debian/changelog Tue May 18 14:03:19 2010 (r15740)
@@ -17,6 +17,7 @@
HID_NTRIG, HID_QUANTA, HID_STANTUM, HID_WACOM, USB_SERIAL_QCAUX,
USB_SERIAL_VIVOPAY_SERIAL, MMC_RICOH_MMC, LEDS_DELL_NETBOOKS, LOGFS.
* [x86] Enable EEEPC_WMI.
+ * Fix backlight support on some recent Thinkpads.
[ Ben Hutchings ]
* Prepare debconf templates for translation (Closes: #576758)
Added: dists/trunk/linux-2.6/debian/patches/bugfix/all/thinkpad-acpi-fix-backlight.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ dists/trunk/linux-2.6/debian/patches/bugfix/all/thinkpad-acpi-fix-backlight.patch Tue May 18 14:03:19 2010 (r15740)
@@ -0,0 +1,60 @@
+From: Matthew Garrett <mjg at redhat.com>
+Date: Mon May 17 20:38:21 2010 UTC
+Subject: Fix backlight support on some recent Thinkpads
+
+diff -up linux-2.6.34.noarch/drivers/platform/x86/thinkpad_acpi.c.orig linux-2.6.34.noarch/drivers/platform/x86/thinkpad_acpi.c
+--- linux-2.6.34.noarch/drivers/platform/x86/thinkpad_acpi.c.orig 2010-05-17 16:28:13.254200070 -0400
++++ linux-2.6.34.noarch/drivers/platform/x86/thinkpad_acpi.c 2010-05-17 16:29:56.471200083 -0400
+@@ -3397,7 +3397,7 @@ static int __init hotkey_init(struct ibm
+ /* update bright_acpimode... */
+ tpacpi_check_std_acpi_brightness_support();
+
+- if (tp_features.bright_acpimode && acpi_video_backlight_support()) {
++ if (acpi_video_backlight_support()) {
+ printk(TPACPI_INFO
+ "This ThinkPad has standard ACPI backlight "
+ "brightness control, supported by the ACPI "
+@@ -6189,26 +6189,24 @@ static int __init brightness_init(struct
+ * going to publish a backlight interface
+ */
+ b = tpacpi_check_std_acpi_brightness_support();
+- if (b > 0) {
+
+- if (acpi_video_backlight_support()) {
+- if (brightness_enable > 1) {
+- printk(TPACPI_NOTICE
+- "Standard ACPI backlight interface "
+- "available, not loading native one.\n");
+- return 1;
+- } else if (brightness_enable == 1) {
+- printk(TPACPI_NOTICE
+- "Backlight control force enabled, even if standard "
+- "ACPI backlight interface is available\n");
+- }
+- } else {
+- if (brightness_enable > 1) {
+- printk(TPACPI_NOTICE
+- "Standard ACPI backlight interface not "
+- "available, thinkpad_acpi native "
+- "brightness control enabled\n");
+- }
++ if (acpi_video_backlight_support()) {
++ if (brightness_enable > 1) {
++ printk(TPACPI_NOTICE
++ "Standard ACPI backlight interface "
++ "available, not loading native one.\n");
++ return 1;
++ } else if (brightness_enable == 1) {
++ printk(TPACPI_NOTICE
++ "Backlight control force enabled, even if standard "
++ "ACPI backlight interface is available\n");
++ }
++ } else {
++ if (brightness_enable > 1) {
++ printk(TPACPI_NOTICE
++ "Standard ACPI backlight interface not "
++ "available, thinkpad_acpi native "
++ "brightness control enabled\n");
+ }
+ }
+
Modified: dists/trunk/linux-2.6/debian/patches/series/base
==============================================================================
--- dists/trunk/linux-2.6/debian/patches/series/base Tue May 18 13:43:16 2010 (r15739)
+++ dists/trunk/linux-2.6/debian/patches/series/base Tue May 18 14:03:19 2010 (r15740)
@@ -70,3 +70,4 @@
+ bugfix/all/3c503-Fix-IRQ-probing.patch
+ bugfix/x86/sis-agp-Remove-SIS-760-handled-by-amd64-agp.patch
+ bugfix/x86/amd64-agp-Probe-unknown-AGP-devices-the-right-way.patch
++ bugfix/all/thinkpad-acpi-fix-backlight.patch
More information about the Kernel-svn-changes
mailing list