public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
	Andrey Borzenkov <arvidjaar@mail.ru>, Len Brown <lenb@kernel.org>,
	linux-acpi@vger.kernel.org
Subject: Re: [PATCH] toshiba_acpi: fingers off backlight if video.ko is serving this functionality
Date: Sun, 16 Nov 2008 15:44:55 -0600	[thread overview]
Message-ID: <200811161544.56367.trenn@suse.de> (raw)
In-Reply-To: <20081116125114.GB29981@khazad-dum.debian.net>

On Sunday 16 November 2008 06:51:14 am Henrique de Moraes Holschuh wrote:
> On Sat, 15 Nov 2008, Matthew Garrett wrote:
> > Ok, so they can get unsynchronised. I agree with Thomas that it's
> > desirable to remove one of them in that case. As you and Len have
> > pointed out, the difficulty is in knowing which one to remove.
>
> May I point out the obvious, and *very* annoying fact?
>
> It is clear by now that if we want to solve all border conditions nicely,
> we will need centralized control of backlight interfaces to broker between
> platform-specific drivers and ACPI generic.
>
> My idea is: separate them in two layers.  Have the "backends" (ACPI generic
> and platform specific drivers) register parameters with a "frontend".  The
> "frontend" exposes a *single* backlight interface.  The backends expose
> NOTHING (or at most a deprecated interface if it won't break things).
>
> Backlight interfaces can have their parameters updated at runtime, so we do
> just that if the frontend has to switch backends (i.e. due to module
> loading/unloading).  Make sure the backend is informed when it is
> connected/disconnected from driving the backlight.
>
> Use an intelligent setup to select which backend should be driving the
> backlight.  e.g: the backends provide a priority information and a quality
> information (priority is low-medium-high.  Quality is the number of levels,
> adjusted up or down if you know there is something special about it that
> should lower or rise the quality).
>
> If there is only one backend loaded, select that.  If there are more than
> one, select the highest priority one.  When the priority of the backends is
> the same, select the one with the highest quality. When quality and
> priority are the same, select the generic ACPI.
>
> Priority should always be medium, except when you know for sure that you
> need to do something special for an specific platform/box.
>
> Any other ideas, comments?

I would not add such complexity for a problem which isn't a real problem.
IMO we should either:
   1) Just do nothing and use video.ko even for Toshibas which only provide
       3 brightness states.
   2) DMI blacklist for Toshiba in general to use toshiba_laptop for
       brightness switching.

The whole problem of vendor.ko via video.ko is similar to
"should acpi be enabled or not" for about 5 year old machines.
It took years to find out most corner cases.
But if you have the wrong assumption made there the machine is not booting.

For the brightness level it's something else. A short documentation into the 
right forum/mailing list and everybody can google the 
acpi_backlight=vendor/video boot param in a second on his already running 
machine and is happy.

There where we know things are broken for a default choice we can add a short 
dmi blacklist.
The question is, are these 3 brightness levels to be considered as broken.

IMO it is something 95% of all toshiba users won't care, the brightness level 
can be dimmed for battery usage and if they care, they can still easily tune 
it. 
I very much expect that newer Toshibas export more brightness levels via 
video.ko (does someone have a new one and can double check?) and at some time 
the Toshiba specific functions may even vanish. Therefore I would prefer to 
not do an exception here and go for 1(see above).

   Thomas

  reply	other threads:[~2008-11-16 21:45 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
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 [this message]
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=200811161544.56367.trenn@suse.de \
    --to=trenn@suse.de \
    --cc=arvidjaar@mail.ru \
    --cc=hmh@hmh.eng.br \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mjg59@srcf.ucam.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox