From owner-freebsd-current@FreeBSD.ORG Tue Jul 9 19:19:23 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 66FA4E52 for ; Tue, 9 Jul 2013 19:19:23 +0000 (UTC) (envelope-from matthias@d2ux.net) Received: from mail.s1.d2ux.org (static.209.96.9.5.clients.your-server.de [5.9.96.209]) by mx1.freebsd.org (Postfix) with ESMTP id 271F616A8 for ; Tue, 9 Jul 2013 19:19:22 +0000 (UTC) Received: from mail.s1.d2ux.org (mail [10.0.0.3]) by mail.s1.d2ux.org (Postfix) with ESMTP id D20F684F25C2 for ; Tue, 9 Jul 2013 21:19:13 +0200 (CEST) Received: from mail.s1.d2ux.org ([10.0.0.3]) by mail.s1.d2ux.org (mail.s1.d2ux.org [10.0.0.3]) (amavisd-new, port 10024) with ESMTP id te8cOiCFO9sQ for ; Tue, 9 Jul 2013 21:19:11 +0200 (CEST) Received: from [192.168.2.112] (p5DDAADA5.dip0.t-ipconnect.de [93.218.173.165]) by mail.s1.d2ux.org (Postfix) with ESMTPSA id A6FAE84F25B4 for ; Tue, 9 Jul 2013 21:19:11 +0200 (CEST) Message-ID: <51DC6231.60000@d2ux.net> Date: Tue, 09 Jul 2013 21:19:13 +0200 From: Matthias Petermann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: freebsd-current@freebsd.org Subject: Re: Fixing X220 Video The Right Way (and trying to apply the same fix to X121e) References: <512A6FFF.2060603@gmail.com> <201306141139.16728.jhb@freebsd.org> <20130708104128.Horde.4uMDgEJsnvTlAjpUPueiyQ1@d2ux.org> <201307091156.43848.jhb@freebsd.org> In-Reply-To: <201307091156.43848.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 19:19:23 -0000 Am 09.07.2013 17:56, schrieb John Baldwin: > 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. > Hi John, thanks for this hint. After "kldload acpi_video" devinfo -v shows the following (truncated): nexus0 acpi0 pcib0 pnpinfo _HID=PNP0A08 _UID=0 at handle=\_SB_.PCI0 pci0 hostb0 pnpinfo vendor=0x8086 device=0x0104 subvendor=0x17aa subdevice=0x21ed class=0x060000 at slot=0 function=0 vgapci0 pnpinfo vendor=0x8086 device=0x0116 subvendor=0x17aa subdevice=0x21ed class=0x030000 at slot=2 function=0 handle=\_SB_.PCI0.GFX0 agp0 drm0 drmn0 acpi_video0 Assuming the patch cannot help me, do you have an idea what I could check next? I can control the brightness with acpi_call -p '\VBRU' acpi_call -p '\VBRD' https://d2ux.org/owncloud/public.php?service=files&t=7022f90cea5e48da7fa65806c0d66091 Regards, Matthias