All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Renninger <trenn@suse.de>
To: nokos@gmx.net
Cc: jwoithe@physics.adelaide.edu.au, linux-acpi@vger.kernel.org,
	Matthew Garrett <mjg59@srcf.ucam.org>
Subject: Re: [PATCH 5/9] fujitsu-laptop: fingers off backlight if video.ko is serving this functionality
Date: Tue, 15 Jul 2008 14:46:30 +0200	[thread overview]
Message-ID: <200807151446.31799.trenn@suse.de> (raw)
In-Reply-To: <1216114700.1940.12.camel@earth.gruber.myown>

On Tuesday 15 July 2008 11:38:20 nokos@gmx.net wrote:
> Hi there,
>
> on the S6410 this prevents brightness control from working correctly.
> the ACPI BIOS provides non-functional _BCM/_BQC so the video.ko is
> registering backlight functions but does not work. Unfortunately not
> loading video.ko isn't a solution since with
> bc45b1d39a925b56796bebf8a397a0491489d85c the brightness keys are only
> reported through video.ko.
Is this an Intel graphics card?
Then you should also try Matthew's/Hong's IGD extensions.
It is likely that everything works out with video.ko then.
If not, with a patch I sent recently you should switch off Windows osi strings 
with:
acpi_osi=windows_false   (preferred)
or (already works)
acpi_osi="!Windows 2006"

If it still does not work, then there is a driver missing which was  a 
proprietary one on XP and which has not been fully re-engeeniered for Linux.

Using ACPI video events and pass them to the Fujitsu driver to change 
backlight (is this how it works? Is this done through userspace?), mixes up 
everything.
Either you have video.ko or fujitsu_acpi.ko or you are in trouble of double 
touching the HW.

         Thomas

> Am Donnerstag, den 10.07.2008, 16:31 +0200 schrieb trenn@suse.de:
> > From: Thomas Renninger <trenn@suse.de>
> >
> > ---
> >  drivers/misc/fujitsu-laptop.c |   26 ++++++++++++++------------
> >  1 files changed, 14 insertions(+), 12 deletions(-)
> >
> > diff --git a/drivers/misc/fujitsu-laptop.c
> > b/drivers/misc/fujitsu-laptop.c index 3601224..7306776 100644
> > --- a/drivers/misc/fujitsu-laptop.c
> > +++ b/drivers/misc/fujitsu-laptop.c
> > @@ -963,16 +963,16 @@ static int __init fujitsu_init(void)
> >
> >  	/* Register backlight stuff */
> >
> > -	fujitsu->bl_device =
> > -	    backlight_device_register("fujitsu-laptop", NULL, NULL,
> > -				      &fujitsubl_ops);
> > -	if (IS_ERR(fujitsu->bl_device))
> > -		return PTR_ERR(fujitsu->bl_device);
> > -
> > -	max_brightness = fujitsu->max_brightness;
> > -
> > -	fujitsu->bl_device->props.max_brightness = max_brightness - 1;
> > -	fujitsu->bl_device->props.brightness = fujitsu->brightness_level;
> > +	if (!acpi_video_backlight_support()) {
> > +		fujitsu->bl_device =
> > +			backlight_device_register("fujitsu-laptop", NULL, NULL,
> > +						  &fujitsubl_ops);
> > +		if (IS_ERR(fujitsu->bl_device))
> > +			return PTR_ERR(fujitsu->bl_device);
> > +		max_brightness = fujitsu->max_brightness;
> > +		fujitsu->bl_device->props.max_brightness = max_brightness - 1;
> > +		fujitsu->bl_device->props.brightness = fujitsu->brightness_level;
> > +	}
> >
> >  	ret = platform_driver_register(&fujitsupf_driver);
> >  	if (ret)
> > @@ -1008,7 +1008,8 @@ fail_hotkey:
> >
> >  fail_backlight:
> >
> > -	backlight_device_unregister(fujitsu->bl_device);
> > +	if (fujitsu->bl_device)
> > +		backlight_device_unregister(fujitsu->bl_device);
> >
> >  fail_platform_device2:
> >
> > @@ -1035,7 +1036,8 @@ static void __exit fujitsu_cleanup(void)
> >  			   &fujitsupf_attribute_group);
> >  	platform_device_unregister(fujitsu->pf_device);
> >  	platform_driver_unregister(&fujitsupf_driver);
> > -	backlight_device_unregister(fujitsu->bl_device);
> > +	if (fujitsu->bl_device)
> > +		backlight_device_unregister(fujitsu->bl_device);
> >
> >  	acpi_bus_unregister_driver(&acpi_fujitsu_driver);



  reply	other threads:[~2008-07-15 12:46 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-10 14:30 [PATCH 1/9] Check for ACPI backlight support otherwise use vendor ACPI drivers trenn
2008-07-10 14:30 ` [PATCH 2/9] Acer-WMI: fingers off backlight if video.ko is serving this functionality trenn
2008-07-10 14:30   ` [PATCH 3/9] asus-acpi: " trenn
2008-07-10 14:31     ` [PATCH 4/9] eeepc-laptop: " trenn
2008-07-10 14:31       ` [PATCH 5/9] fujitsu-laptop: " trenn
2008-07-10 14:31         ` [PATCH 6/9] msi-laptop: " trenn
2008-07-10 14:31           ` [PATCH 7/9] sony-laptop: " trenn
2008-07-10 14:31             ` [PATCH 8/9] thinkpad_acpi: " trenn
2008-07-10 14:31               ` [PATCH 9/9] compal: " trenn
2008-07-15  9:38         ` [PATCH 5/9] fujitsu-laptop: " nokos
2008-07-15 12:46           ` Thomas Renninger [this message]
2008-07-15 15:21             ` nokos
2008-07-15 23:55               ` [PATCH 5/9] fujitsu-laptop: fingers off backlight if video.ko Jonathan Woithe
2008-07-16  2:12                 ` Zhang Rui
2008-07-16  2:30                   ` Jonathan Woithe
2008-07-16 14:12                   ` nokos
2008-07-16 14:30                 ` nokos
2008-07-18  0:07                   ` Jonathan Woithe
2008-07-24  0:12                     ` nokos
2008-07-24 11:48                       ` Thomas Renninger
2008-07-15 23:24             ` [PATCH 5/9] fujitsu-laptop: fingers off backlight if video.ko is serving this functionality Jonathan Woithe
2008-07-16  1:57             ` Zhang Rui
2008-07-10 19:06 ` [PATCH 0/9] Check whether ACPI graphics device is physically present Thomas Renninger
2008-07-11  9:06   ` Matthew Garrett
2008-07-14 16:51     ` 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=200807151446.31799.trenn@suse.de \
    --to=trenn@suse.de \
    --cc=jwoithe@physics.adelaide.edu.au \
    --cc=linux-acpi@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=nokos@gmx.net \
    /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.