From patchwork Sun Dec 2 12:49:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Rui X-Patchwork-Id: 1830371 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 1AAE4DF254 for ; Sun, 2 Dec 2012 12:49:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752262Ab2LBMtU (ORCPT ); Sun, 2 Dec 2012 07:49:20 -0500 Received: from mga03.intel.com ([143.182.124.21]:54281 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751467Ab2LBMtU (ORCPT ); Sun, 2 Dec 2012 07:49:20 -0500 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga101.ch.intel.com with ESMTP; 02 Dec 2012 04:49:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,201,1355126400"; d="scan'208,223";a="175030219" Received: from unknown (HELO [10.255.21.163]) ([10.255.21.163]) by AZSMGA002.ch.intel.com with ESMTP; 02 Dec 2012 04:49:14 -0800 Message-ID: <1354452553.2401.3.camel@rzhang1-mobl4> Subject: [PATCH] ACPI video: ignore BIOS initial backlight value for HP Folio 13-2000 From: Zhang Rui To: "Rafael J. Wysocki" Cc: ACPI Devel Maling List , public@stefan-nagy.at, "Zhang, Rui" Date: Sun, 02 Dec 2012 20:49:13 +0800 X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From 117af51d695c78bfdf618a183664f0e9f3769b9a Mon Sep 17 00:00:00 2001 From: Zhang Rui Date: Sun, 2 Dec 2012 10:00:41 +0800 Subject: [PATCH] ACPI video: ignore BIOS initial backlight value for HP Folio 13-2000 Or else the laptop will boot with a dimmed screen. https://bugzilla.kernel.org/show_bug.cgi?id=51141 Signed-off-by: Zhang Rui Tested-by: Stefan Nagy --- drivers/acpi/video.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 1e0a9e1..58bddd3 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -389,6 +389,12 @@ static int __init video_set_bqc_offset(const struct dmi_system_id *d) return 0; } +static int video_ignore_initial_backlight(const struct dmi_system_id *d) +{ + use_bios_initial_backlight = 0; + return 0; +} + static struct dmi_system_id video_dmi_table[] __initdata = { /* * Broken _BQC workaround http://bugzilla.kernel.org/show_bug.cgi?id=13121 @@ -433,6 +439,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { DMI_MATCH(DMI_PRODUCT_NAME, "Aspire 7720"), }, }, + { + .callback = video_ignore_initial_backlight, + .ident = "HP Folio 13-2000", + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Folio 13 - 2000 Notebook PC"), + }, + }, {} };