Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757187AbZGMUlt (ORCPT ); Mon, 13 Jul 2009 16:41:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757115AbZGMUlh (ORCPT ); Mon, 13 Jul 2009 16:41:37 -0400 Received: from cavan.codon.org.uk ([93.93.128.6]:58754 "EHLO cavan.codon.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755725AbZGMUlf (ORCPT ); Mon, 13 Jul 2009 16:41:35 -0400 From: Matthew Garrett To: linux-kernel@vger.kernel.org Cc: linux-acpi@vger.kernel.org, rpurdie@rpsys.net, lenb@kernel.org, rui.zhang@intel.com, corentincj@iksaif.net, Matthew Garrett Subject: [PATCH 2/3] ACPI: Update the backlight state when we change brightness Date: Mon, 13 Jul 2009 21:41:24 +0100 Message-Id: <1247517685-7719-2-git-send-email-mjg@redhat.com> X-Mailer: git-send-email 1.6.2.5 In-Reply-To: <1247517685-7719-1-git-send-email-mjg@redhat.com> References: <1247517685-7719-1-git-send-email-mjg@redhat.com> X-SA-Do-Not-Run: Yes X-SA-Exim-Connect-IP: 78.86.230.144 X-SA-Exim-Mail-From: mjg@redhat.com X-SA-Exim-Scanned: No (on cavan.codon.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 950 Lines: 29 Trigger a status update when we change the brightness in the driver, thus allowing userspace to present appropriate UI. Signed-off-by: Matthew Garrett --- drivers/acpi/video.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 8851315..d7219f6 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -1960,6 +1960,8 @@ acpi_video_switch_brightness(struct acpi_video_device *device, int event) result = acpi_video_device_lcd_set_level(device, level_next); + backlight_force_update(device->backlight); + out: if (result) printk(KERN_ERR PREFIX "Failed to switch the brightness\n"); -- 1.6.2.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/