From patchwork Tue May 28 02:05:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 2621701 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 5249F3FD4E for ; Tue, 28 May 2013 02:05:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758542Ab3E1CFV (ORCPT ); Mon, 27 May 2013 22:05:21 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:53555 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758539Ab3E1CFV (ORCPT ); Mon, 27 May 2013 22:05:21 -0400 Received: from [175.182.142.117] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Uh9Hm-0000dU-3Q; Tue, 28 May 2013 02:05:14 +0000 From: Alex Hung To: rui.zhang@intel.com, lenb@kernel.org, rjw@sisk.pl, linux-acpi@vger.kernel.org Cc: Alex Hung Subject: [PATCH] ACPI video: ignore BIOS initial backlight value for HP m4 Date: Tue, 28 May 2013 10:05:09 +0800 Message-Id: <1369706709-9189-1-git-send-email-alex.hung@canonical.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On HP m4 lapops, BIOS reports minimum backlight on boot and causes backlight to dim completely. This ignores the initial backlight values and set to max brightness. Buglink: https://bugs.launchpad.net/bugs/1184501 Signed-off-by: Alex Hung --- drivers/acpi/video.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 5b32e15..d0937ab 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -464,6 +464,14 @@ static struct dmi_system_id video_dmi_table[] __initdata = { DMI_MATCH(DMI_PRODUCT_NAME, "HP 1000 Notebook PC"), }, }, + { + .callback = video_ignore_initial_backlight, + .ident = "HP Pavilion m4", + .matches = { + DMI_MATCH(DMI_BOARD_VENDOR, "Hewlett-Packard"), + DMI_MATCH(DMI_PRODUCT_NAME, "HP Pavilion m4 Notebook PC"), + }, + }, {} };