From: Thomas Renninger <trenn@suse.de>
To: Len Brown <lenb@kernel.org>
Cc: Andrey Borzenkov <arvidjaar@mail.ru>, linux-acpi@vger.kernel.org
Subject: Re: [PATCH] toshiba_acpi: fingers off backlight if video.ko is serving this functionality
Date: Wed, 12 Nov 2008 17:41:35 -0600 [thread overview]
Message-ID: <200811121741.36296.trenn@suse.de> (raw)
In-Reply-To: <alpine.LFD.2.00.0811111331140.4480@localhost.localdomain>
On Tuesday 11 November 2008 02:04:15 pm Len Brown wrote:
> This patch does what it is supposed to do, but it isn't clear
> if that is a step forward.
>
> I have satellite pro (original centrino about 4 years old)
4 years, that means it originally supported XP and Vista support got added?
That would explain both, vendor specific and generic brightness functions.
> where toshiba-acpi exports 8 brightness levels,
> and acpi exports just 3 (min, 40%, max)
> so when i apply this patch, i get fewer brightness levels.
> I prefer to have all 8 brightness levels.
The patch from Andrey is correct.
Looks like all, the ordinary user needs, and probably the way it works on a
plain Vista OS is there: off, battery, full level.
You can still use the boot param for your specific needs:
acpi_display_output=vendor
Thomas
> -Len
>
> On Sat, 8 Nov 2008, Andrey Borzenkov wrote:
> > Subject: [PATCH] toshiba_acpi: fingers off backlight if video.ko is
> > serving this functionality From: Andrey Borzenkov <arvidjaar@mail.ru>
> >
> > Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
> >
> > ---
> >
> > This completes backlight series; toshiba_acpi was missing.
> >
> > drivers/acpi/toshiba_acpi.c | 19 ++++++++++---------
> > 1 files changed, 10 insertions(+), 9 deletions(-)
> >
> >
> > diff --git a/drivers/acpi/toshiba_acpi.c b/drivers/acpi/toshiba_acpi.c
> > index a7db0c2..c140709 100644
> > --- a/drivers/acpi/toshiba_acpi.c
> > +++ b/drivers/acpi/toshiba_acpi.c
> > @@ -780,19 +780,20 @@ static int __init toshiba_acpi_init(void)
> > }
> > }
> >
> > - toshiba_backlight_device = backlight_device_register("toshiba",
> > + if (!acpi_video_backlight_support()) {
> > + toshiba_backlight_device = backlight_device_register("toshiba",
> > &toshiba_acpi.p_dev->dev,
> > NULL,
> > &toshiba_backlight_data);
> > - if (IS_ERR(toshiba_backlight_device)) {
> > - ret = PTR_ERR(toshiba_backlight_device);
> > -
> > - printk(KERN_ERR "Could not register toshiba backlight device\n");
> > - toshiba_backlight_device = NULL;
> > - toshiba_acpi_exit();
> > - return ret;
> > + if (IS_ERR(toshiba_backlight_device)) {
> > + ret = PTR_ERR(toshiba_backlight_device);
> > + printk(KERN_ERR "Could not register toshiba backlight device\n");
> > + toshiba_backlight_device = NULL;
> > + toshiba_acpi_exit();
> > + return ret;
> > + }
> > + toshiba_backlight_device->props.max_brightness =
> > HCI_LCD_BRIGHTNESS_LEVELS - 1; }
> > - toshiba_backlight_device->props.max_brightness =
> > HCI_LCD_BRIGHTNESS_LEVELS - 1;
> >
> > /* Register rfkill switch for Bluetooth */
> > if (hci_get_bt_present(&bt_present) == HCI_SUCCESS && bt_present) {
next prev parent reply other threads:[~2008-11-12 23:41 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-08 13:37 [PATCH] toshiba_acpi: fingers off backlight if video.ko is serving this functionality Andrey Borzenkov
2008-11-11 20:04 ` Len Brown
2008-11-12 23:41 ` Thomas Renninger [this message]
2008-11-13 1:32 ` Matthew Garrett
2008-11-13 4:58 ` Andrey Borzenkov
2008-11-13 11:11 ` Matthew Garrett
2008-11-15 16:30 ` Andrey Borzenkov
2008-11-15 16:54 ` Matthew Garrett
2008-11-15 17:05 ` Andrey Borzenkov
2008-11-15 17:11 ` Matthew Garrett
2008-11-15 17:17 ` Andrey Borzenkov
2008-11-15 17:20 ` Matthew Garrett
2008-11-15 18:42 ` Andrey Borzenkov
2008-11-15 18:49 ` Matthew Garrett
2008-11-16 12:51 ` Henrique de Moraes Holschuh
2008-11-16 21:44 ` Thomas Renninger
2008-11-17 2:07 ` Henrique de Moraes Holschuh
2008-11-27 5:19 ` Len Brown
2008-11-27 11:39 ` Video.ko-vs-toshiba.ko-more-brightness-levels-win Thomas Renninger
2008-11-27 11:39 ` [PATCH 1/2] ACPI: acpi_video_backlight_support return found generic video brightness levels Thomas Renninger
2008-11-27 12:08 ` Thomas Renninger
2008-11-27 11:39 ` [PATCH 2/2] Video.ko vs toshiba.ko - more brightness levels win Thomas Renninger
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=200811121741.36296.trenn@suse.de \
--to=trenn@suse.de \
--cc=arvidjaar@mail.ru \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.