Re: [PATCH 6/6] Revert "ACPI: video: Ignore ACPI video devices that aren't present in hardware"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 18 March 2008, Thomas Renninger wrote:
> On Tue, 2008-03-18 at 02:02 -0400, Len Brown wrote:
> > From: Len Brown <len.brown@xxxxxxxxx>
> > 
> > This reverts commit 3fa2cdcc45a0176de15cac9dbf4ed2834ebf8932.
> > 
> > http://bugzilla.kernel.org/show_bug.cgi?id=9995
> 
> This is so wrong...
> You register a driver on a device which does not exist.
> You do this because on T61 ThinkPads, the external graphics device
> method (soft-int 10) for brightness switching also works for the
> internal Intel graphics card by pure luck...
>
> You introduce this obviously wrong approach and break other machines
> intentionally (this is not a regression, because brightness switching
> was done through thinkpad_acpi before).

acpi video brightness worked on the T61 before this patch, eg. in 2.6.24.
acpi video brightness stopped working when this patch was applied.
acpi video brightness works again when this patch (and its clone) were reverted.

> This is known for months and reverting this in last minute is the wrong
> action.
> This should be:
>   - fixed up in BIOS through a OSI("IGD") string

IGD isn't part of this discussion, since that support didn't ship
in 2.6.24, and isn't shipping in 2.6.25.

Enabling IGD, or any other feature, via OSI on a platform that has
already shipped is effectively impossible.  It would require every
BIOS and every OS to be updated.

>   - get workarounded (as it always has been done) in thinkpad-acpi
>     meanwhile.
>
> Please try to not load the ACPI video driver.
> Instead load the thinkpad_acpi driver with:
> brightness_enable=1
> parameter. Does this work?
> If that works, this is the right workaround for T61 with
> internal/on-board
> Intel graphics card.

Yes, the thinkpad_acpi driver with brightness_enable=1 works.

The thinkpad_acpi driver is really useful.
It provides ways to get to thinkpad features for which
no standard interface in Linux currently exists.

However, the thinkpad_acpi driver should not be used
to provide features for which a generic method exists.

I understand that a distro may latch onto thinkpad_acpi
to get features in the hands of customers as soon as possible.
I understand that the transition off of custom solutions
is never easy.  brightness_enable=1 was added to ease that
transition.  If you have additional suggestions, please speak up.

> You can get a dmi blacklisting so that video driver is not loaded on the
> ThinkPads or this can be done in user-space, but pls do not revert this
> obvious fix.

This patch was far from obvious, including to Matthew, who created it.

-Len
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux