From owner-freebsd-current@FreeBSD.ORG Tue Jul 9 16:12:33 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AD38E817 for ; Tue, 9 Jul 2013 16:12:33 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8B4151AAD for ; Tue, 9 Jul 2013 16:12:33 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 02746B94C; Tue, 9 Jul 2013 12:12:33 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Subject: Re: Fixing X220 Video The Right Way (and trying to apply the same fix to X121e) Date: Tue, 9 Jul 2013 11:56:43 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p25; KDE/4.5.5; amd64; ; ) References: <512A6FFF.2060603@gmail.com> <201306141139.16728.jhb@freebsd.org> <20130708104128.Horde.4uMDgEJsnvTlAjpUPueiyQ1@d2ux.org> In-Reply-To: <20130708104128.Horde.4uMDgEJsnvTlAjpUPueiyQ1@d2ux.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201307091156.43848.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 09 Jul 2013 12:12:33 -0400 (EDT) Cc: Matthias Petermann X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Jul 2013 16:12:33 -0000 On Monday, July 08, 2013 4:41:28 am Matthias Petermann wrote: > > Hello, > > I applied the patch, trying to get brightness controls for my X121e. > > But it looks like I need a different loader.conf setting. > > hw.pci0.0.2.0.handle="\\\\_SB_.PCI0.PEG.VID" > > doesn't work. In my ASl there is only one device providing DOD / DOS: > > Scope (_SB.PCI0) > { > Device (GFX0) > { > Name (_ADR, 0x00020000) // _ADR: Address > Method (_DOS, 1, NotSerialized) // _DOS: Disable Output > Switching > { > Store (And (Arg0, 0x07), DSEN) > If (LEqual (And (Arg0, 0x03), Zero)) > { > If (CondRefOf (HDOS)) > { > HDOS () > } > } > } > > Method (_DOD, 0, NotSerialized) // _DOD: Display Output Devices > { > If (CondRefOf (IDAB)) > { > IDAB () > } > Else > { So this is the \_SB_.PCI0.GFX0 device. However, you should kldload acpi_video and see if it already attaches to this device (devinfo -v can be helpful here as it will show the ACPI handle of the parent of the acpi_video device). If it does, then this patch can't help you. -- John Baldwin