On Thu, 2009-07-16 at 05:59 +0800, Hector Martin wrote: > Henrique de Moraes Holschuh wrote: > > On Wed, 15 Jul 2009, Zhang Rui wrote: > >> Only one ACPI video bus device for a VGA controller. > >> > >> Some buggy BIOS exports multiple ACPI video bus devices for the same > >> VGA controller, and multiple backlight control methods as well. > >> This messes up the ACPI video backlight control. > >> http://bugzilla.kernel.org/show_bug.cgi?id=13577 > >> > >> With this patch applied, only the first ACPI video bus device > >> under a PCI device node is bind to ACPI video driver. > >> > >> The questions is that, we never notice this kind of devices before, > >> thus I'm not sure this won't break any laptops. > > > > Laptops often have more than one video bus device, and you _have_ to choose > > the one that is _active_ (which might not be the first one you find). This > > is done on laptops that can have either discrete or in-chipset graphics, for > > example. I have seen it in several thinkpad models. > > The video subsystem already picks only graphics devices that actually > exist in the PCI bus. The issue here is that there are two ACPI > "subdevices" under one address reference to a PCI device (which exists), > and both have backlight functionality. right. For example, here is a laptop with both an integrated graphics (\_SB.PCI0.GFX0) and an external graphics (\_SB.PCI0.NVDI) we can find which one is active, NVDI or GFX0, and ignore the inactive one. But the bug that I want to fix in this patch is that, there are two ACPI video bus devices \_SB.PCI0.GFX0.VID1 \_SB.PCI0.GFX0.VID2 both are active because PCI device GFX0 exists, and ACPI tries to bind all these two devices to ACPI video driver. it's meaningless to have two ACPI video bus device for one VGA controller, right? and it messes up the backlight controller because notifications are sent to both VID1 and VID2 when brightness hotkey is pressed. thanks, rui -- 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