From: Thomas Renninger <trenn@suse.de>
To: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
ak@linux.intel.com, jwoithe@physics.adelaide.edu.au,
rui.zhang@intel.com, corentincj@iksaif.net,
linux-acpi@vger.kernel.org, dannybaumann@web.de,
marcus@better.se, corsac@debian.org, mzxreary@0pointer.de,
carlos@strangeworlds.co.uk, malattia@linux.it
Subject: Re: [PATCH 10/11] thinkpad_acpi: fingers off backlight if video.ko is serving this functionality
Date: Wed, 16 Jul 2008 17:27:55 +0200 [thread overview]
Message-ID: <200807161727.57026.trenn@suse.de> (raw)
In-Reply-To: <20080716133839.GB3329@khazad-dum.debian.net>
On Wednesday 16 July 2008 15:38:39 Henrique de Moraes Holschuh wrote:
> On Wed, 16 Jul 2008, Matthew Garrett wrote:
> > On Wed, Jul 16, 2008 at 09:40:44AM -0300, Henrique de Moraes Holschuh
wrote:
> > > One question: is there a good reason to actually have the hotkey
> > > handling for IGD mode directly in thinkpad-acpi? We don't do it for
> > > Vista BIOS, video.ko doesn't do it either (anymore)... and I would make
> > > it configurable for IBM firmware if I could.
> >
> > No. There's no reason to have IGD handling in thinkpad-acpi at all.
I haven't seen the video driver on a T61 with Intel card doing proper
backlight switching on the correct device yet.
> Then please leave that part out of the final patch. It will make the
> patch a LOT simpler (no need to muck with anything hotkey_*).
Ok. Attached.
> But the observation about extending brightness_mode to
> force-select/unselect igdmode stands anyway.
Ok, that's fair enough.
I wonder whether we still need the BCL queries in thinkpad_acpi.c?
Shouldn't (at least in theory) all ThinkPads with generic backlight
functions work with video.ko now?
Maybe now it's a bit too soon, but getting rid of these functions would
be a nice cleanup.
Below one is compile tested...
Thomas
----
thinkpad_acpi: fingers off backlight if video.ko is serving this functionality
Signed-off-by: Thomas Renninger <trenn@suse.de>
diff --git a/drivers/misc/thinkpad_acpi.c b/drivers/misc/thinkpad_acpi.c
index b596929..50da049 100644
--- a/drivers/misc/thinkpad_acpi.c
+++ b/drivers/misc/thinkpad_acpi.c
@@ -4750,17 +4750,26 @@ static int __init brightness_init(struct
ibm_init_struct *iibm)
*/
b = tpacpi_check_std_acpi_brightness_support();
if (b > 0) {
- if (thinkpad_id.vendor == PCI_VENDOR_ID_LENOVO) {
- printk(TPACPI_NOTICE
- "Lenovo BIOS switched to ACPI backlight "
- "control mode\n");
- }
- if (brightness_enable > 1) {
- printk(TPACPI_NOTICE
- "standard ACPI backlight interface "
- "available, not loading native one...\n");
- return 1;
- }
+
+ if (acpi_video_backlight_support()) {
+ if (brightness_enable > 1) {
+ printk(TPACPI_NOTICE
+ "Standard ACPI backlight interface "
+ "available, not loading native one.\n");
+ return 1;
+ } else if (brightness_enable == 1) {
+ printk(TPACPI_NOTICE
+ "Backlight control force, even standard "
+ "ACPI backlight interface available\n");
+ }
+ } else {
+ if (brightness_enable > 1) {
+ printk(TPACPI_NOTICE
+ "Standard ACPI backlight interface not "
+ "available, thinkpad_acpi driver "
+ "will take over control\n");
+ }
+ }
}
if (!brightness_enable) {
next prev parent reply other threads:[~2008-07-16 15:28 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
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=200807161727.57026.trenn@suse.de \
--to=trenn@suse.de \
--cc=ak@linux.intel.com \
--cc=carlos@strangeworlds.co.uk \
--cc=corentincj@iksaif.net \
--cc=corsac@debian.org \
--cc=dannybaumann@web.de \
--cc=hmh@hmh.eng.br \
--cc=jwoithe@physics.adelaide.edu.au \
--cc=linux-acpi@vger.kernel.org \
--cc=malattia@linux.it \
--cc=marcus@better.se \
--cc=mjg59@srcf.ucam.org \
--cc=mzxreary@0pointer.de \
--cc=rui.zhang@intel.com \
/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