public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* Check for ACPI backlight support otherwise use vendor ACPI drivers - version 2
@ 2008-07-16 10:52 Thomas Renninger
  2008-07-16 10:52 ` [PATCH 01/11] ACPI: video: Ignore devices that aren't present in hardware Thomas Renninger
                   ` (13 more replies)
  0 siblings, 14 replies; 49+ messages in thread
From: Thomas Renninger @ 2008-07-16 10:52 UTC (permalink / raw)
  To: ak
  Cc: mjg59, jwoithe, hmh, rui.zhang, corentincj, linux-acpi,
	dannybaumann, marcus, corsac, mzxreary, carlos, malattia

Changes to last version:
  - I found some ugly typos mixing up ands and ors on the acpi_video_support
    bit mask -> fixed.
  - moved video capabilities checking from pci_root.c to the backlight/display
    switching modules. This is important to not search for capabilities where
    no graphics device is found and video.ko or vendor drivers (most through
    dmi modalias) do not load anyway. The real search is only done by the first
    video capable module invoking acpi_video_backlight_support() or
    acpi_video_display_switch_support(). Further calls to these functions
    return a cached value. This change was mainly moving function invokations
    the previous version was already designed in the right way, I somehow
    was fixed to the idea that checking must be done before module load time,
    but this turned out to be wrong.
  - Corrected messages/comments in thinkpad_acpi.c
  - Removed dmi check for Dells
  - Fixed a section mismatch compile message in the fujitsu driver

Most logic is in the second patch where video_detect.c is introduced.
I mean, there could be a typo in one of the vendor specific drivers,
it would be great if the maintainers of each driver could have a quick
look at the code (did I forget to free an already alloced backlight
struct or similar?).

It is highly recommended that these patches are tried out together with
Matthew's/Hong's IGD driver changes.
I do not know whether they are already in the dri tree or in linux-next,
whether they will be accepted for .27 etc. I hope Matthew will answer on
this mail and tell us.
AFAIK on thinkpads they already need an additional patch to work?
Chances are high that other laptop families also need a bit of a special
treatment to get the very new IGD parts to work.
If people test both patches together we could get a matrix like this:

          IGD/video.ko/Vista way   |  vendor specific, XP way
Dell    |           -              |             X
HP      |           -              |             ?
Lenovo  |           X              |             X
MSI     |           -              |             ?
Toshib  |           -              |             -
Fujitsu |           -              |             X
...     |           -              |

Above is more or less guessed, also everybody should tell about its
graphics card.
Intel graphics cards sooner or later must be switched through video.ko
(those and only those are intended by BIOSes to be IGD driven
already or in the near future (-> Matthew's/Hong's patch needed))
On Nvidia or AMD the binary only driver may take over switching
(it doesn't harm to still load and use video.ko then as they disable
 IO space, I expect/hope this will change at some time). Still if you
switch to console backlight can/must be switched through ACPI again
also on these.

Only Vista capable BIOSes are supposed to be switched via video.ko, but
those should sooner or later be switched through it, every Vista capable
BIOS shows generic ACPI backlight functions.


Off topic (a bit) - Toshiba only:
On Toshibas video.ko will not work.
They miss the third generic ACPI backlight function to query the current
brightness level (_BQC).
Zhao Yakui provided a patch ignoring this on module load time.
This resulted in a black screen on startup because of an initial
backlight state of zero.

IMO his patch was the right way and even Linus reverted it, trying again
is worth it:

commit 797de7bdb253624c16144f40b72ec65d63cdcca2
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date:   Sat Apr 5 12:14:13 2008 -0700

    Revert "ACPI: Ignore _BQC object when registering backlight device"

Ok, I followed up the bug link, there already is an updated fixed patch in bug:
http://bugzilla.kernel.org/show_bug.cgi?id=10206
attachment is:
http://bugzilla.kernel.org/attachment.cgi?id=16310&action=view

Zhao, could you repost this based on top of these, pls



^ permalink raw reply	[flat|nested] 49+ messages in thread
* Check for ACPI backlight support otherwise use vendor ACPI drivers - version 3
@ 2008-07-17 17:32 Thomas Renninger
  2008-07-17 17:32 ` [PATCH 10/11] thinkpad_acpi: fingers off backlight if video.ko is serving this functionality Thomas Renninger
  0 siblings, 1 reply; 49+ messages in thread
From: Thomas Renninger @ 2008-07-17 17:32 UTC (permalink / raw)
  To: ak; +Cc: linux-acpi

Minor cleanup changes to version 2:

   - Remove all IGD stuff
   - beautify bit mask defines



^ permalink raw reply	[flat|nested] 49+ messages in thread

end of thread, other threads:[~2008-08-01  9:32 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 10:52 Check for ACPI backlight support otherwise use vendor ACPI drivers - version 2 Thomas Renninger
2008-07-16 10:52 ` [PATCH 01/11] ACPI: video: Ignore devices that aren't present in hardware Thomas Renninger
2008-07-16 10:52 ` [PATCH 02/11] Check for ACPI backlight support otherwise use vendor ACPI drivers Thomas Renninger
2008-07-16 11:16   ` Matthew Garrett
2008-07-16 13:01     ` Sergio Monteiro Basto
2008-07-17 13:52       ` Thomas Renninger
2008-07-18  3:18         ` Sergio Monteiro Basto
2008-07-18  2:54           ` Thomas Renninger
2008-07-18  3:52             ` Sergio Monteiro Basto
2008-07-17  6:33   ` Zhao Yakui
2008-08-01  1:27   ` Zhang Rui
2008-07-16 10:52 ` [PATCH 03/11] Acer-WMI: fingers off backlight if video.ko is serving this functionality Thomas Renninger
2008-07-16 17:42   ` Carlos Corbacho
2008-07-16 10:52 ` [PATCH 04/11] asus-acpi: " Thomas Renninger
2008-07-16 10:52 ` [PATCH 05/11] eeepc-laptop: " Thomas Renninger
2008-07-16 10:52 ` [PATCH 06/11] fujitsu-laptop: " Thomas Renninger
2008-07-16 23:11   ` Jonathan Woithe
2008-07-18  0:04   ` Jonathan Woithe
2008-07-16 10:52 ` [PATCH 07/11] fujitsu-laptop: Fix section mismatch Thomas Renninger
2008-07-16 10:52 ` [PATCH 08/11] msi-laptop: fingers off backlight if video.ko is serving this functionality Thomas Renninger
2008-07-16 10:52 ` [PATCH 09/11] sony-laptop: " Thomas Renninger
2008-07-16 10:52 ` [PATCH 10/11] thinkpad_acpi: " Thomas Renninger
2008-07-16 11:20   ` Matthew Garrett
2008-07-16 11:36     ` Thomas Renninger
2008-07-16 12:40   ` Henrique de Moraes Holschuh
2008-07-16 12:47     ` Matthew Garrett
2008-07-16 13:38       ` Henrique de Moraes Holschuh
2008-07-16 15:27         ` Thomas Renninger
2008-07-16 15:29           ` Matthew Garrett
2008-07-16 15:49             ` Yves-Alexis Perez
2008-07-17  9:10             ` Andi Kleen
2008-07-17 10:46               ` Matthew Garrett
2008-07-17 11:18                 ` Yves-Alexis Perez
2008-07-17 11:25                   ` Matthew Garrett
2008-07-16 10:52 ` [PATCH 11/11] compal: " Thomas Renninger
     [not found] ` <20080716105931.GC1701@corsac.net>
2008-07-16 11:16   ` Check for ACPI backlight support otherwise use vendor ACPI drivers - version 2 Thomas Renninger
2008-07-19  6:01 ` Yves-Alexis Perez
2008-07-30  6:29 ` Yves-Alexis Perez
2008-07-30  9:06   ` Thomas Renninger
2008-07-31  0:35     ` Jonathan Woithe
2008-07-31  2:28       ` Zhang Rui
2008-07-31  2:51         ` Check for ACPI backlight support otherwise use vendor ACPI Jonathan Woithe
2008-07-31  5:22           ` Zhang Rui
2008-07-31 15:32     ` Check for ACPI backlight support otherwise use vendor ACPI drivers - version 2 nokos
2008-07-31 23:00       ` Check for ACPI backlight support otherwise use vendor ACPI Jonathan Woithe
2008-08-01  1:28       ` Check for ACPI backlight support otherwise use vendor ACPIdrivers - version 2 Zhang Rui
2008-08-01  8:25         ` nokos
2008-08-01  9:29         ` nokos
  -- strict thread matches above, loose matches on Subject: below --
2008-07-17 17:32 Check for ACPI backlight support otherwise use vendor ACPI drivers - version 3 Thomas Renninger
2008-07-17 17:32 ` [PATCH 10/11] thinkpad_acpi: fingers off backlight if video.ko is serving this functionality Thomas Renninger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox