LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Richard Purdie <rpurdie@rpsys.net>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Jiri Kosina <jikos@jikos.cz>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ACPI: ibm-acpi: improve backlight power handling (v2)
Date: Mon, 26 Feb 2007 21:53:38 +0000 [thread overview]
Message-ID: <1172526818.24429.18.camel@localhost.localdomain> (raw)
In-Reply-To: <20070226182604.GJ2909@khazad-dum.debian.net>
On Mon, 2007-02-26 at 15:26 -0300, Henrique de Moraes Holschuh wrote:
> Improve the backlight code to emulate as much as possible the power
> management events, as we are unable to really power on or power off the
> backlight.
>
> Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Acked-by: Richard Purdie <rpurdie@rpsys.net>
>
> drivers/acpi/ibm_acpi.c | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/acpi/ibm_acpi.c b/drivers/acpi/ibm_acpi.c
> index e7309a6..3690136 100644
> --- a/drivers/acpi/ibm_acpi.c
> +++ b/drivers/acpi/ibm_acpi.c
> @@ -86,6 +86,7 @@
>
> #include <linux/proc_fs.h>
> #include <linux/backlight.h>
> +#include <linux/fb.h>
> #include <asm/uaccess.h>
>
> #include <linux/dmi.h>
> @@ -1707,7 +1708,10 @@ static int brightness_write(char *buf)
>
> static int brightness_update_status(struct backlight_device *bd)
> {
> - return brightness_set(bd->props.brightness);
> + return brightness_set(
> + (bd->props.fb_blank == FB_BLANK_UNBLANK &&
> + bd->props.power == FB_BLANK_UNBLANK) ?
> + bd->props.brightness : 0);
> }
>
> static struct backlight_ops ibm_backlight_data = {
next prev parent reply other threads:[~2007-02-26 21:53 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-26 0:59 2.6.21-rc1 dims my LCD Jiri Kosina
2007-02-26 11:41 ` Richard Purdie
2007-02-26 12:35 ` Jiri Kosina
2007-02-26 14:21 ` Henrique de Moraes Holschuh
2007-02-26 14:49 ` Richard Purdie
2007-02-26 15:20 ` Henrique de Moraes Holschuh
2007-02-26 16:12 ` [PATCH] ACPI: ibm-acpi: improve backlight power handling Henrique de Moraes Holschuh
2007-02-26 16:38 ` Richard Purdie
2007-02-26 18:12 ` Henrique de Moraes Holschuh
2007-02-26 18:26 ` [PATCH] ACPI: ibm-acpi: improve backlight power handling (v2) Henrique de Moraes Holschuh
2007-02-26 21:25 ` Jiri Kosina
2007-02-26 21:42 ` Richard Purdie
2007-02-26 21:46 ` Henrique de Moraes Holschuh
2007-02-26 21:53 ` Richard Purdie [this message]
2007-02-26 17:21 ` [PATCH] ACPI: ibm-acpi: improve backlight power handling Jiri Kosina
2007-02-26 18:17 ` Henrique de Moraes Holschuh
2007-02-26 15:24 ` 2.6.21-rc1 dims my LCD Jiri Kosina
2007-02-26 15:43 ` Richard Purdie
2007-02-26 17:13 ` [Linux-fbdev-devel] " Antonino A. Daplas
2007-02-26 16:03 ` Henrique de Moraes Holschuh
2007-02-26 17:01 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1172526818.24429.18.camel@localhost.localdomain \
--to=rpurdie@rpsys.net \
--cc=hmh@hmh.eng.br \
--cc=jikos@jikos.cz \
--cc=linux-kernel@vger.kernel.org \
--subject='Re: [PATCH] ACPI: ibm-acpi: improve backlight power handling (v2)' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).