From owner-freebsd-acpi@FreeBSD.ORG Mon Feb 25 01:17:34 2013 Return-Path: Delivered-To: freebsd-acpi@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 F12DDF6C; Mon, 25 Feb 2013 01:17:34 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-da0-f45.google.com (mail-da0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id A2E79235; Mon, 25 Feb 2013 01:17:34 +0000 (UTC) Received: by mail-da0-f45.google.com with SMTP id v40so1215321dad.4 for ; Sun, 24 Feb 2013 17:17:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=aq0M3qcq+vEl2CrGtqASwUC4FhuXszIxGXWV41kdbfI=; b=X8oxXE7MT3HlmHIAD4RHb+lp1T/o4xo1ESaRz9WkfovuEgCFEaBAZFwSI9xVCoTFi5 vg4/7flIzy47FslnNdN4nCGPvENLix6tQHaXi2RJsh4Ja2kRvwrYNt7FqaD9ifcxF3GN /fUodw2nqqMlYtgX9xE9Ha6wmpO1l604CP3cZzMQ0H6WALxX6hfOkbea9SCjc9DPxluG MzVS9vPWl5VxkOoIe64+0SDIa6X4SVMFIdzN7K6xxpIz3V2l14ObLB4Ezyz/5zDQNKvs 1f6pBS90clqEBKUC1DXfY3dVQ62EHUDxJZ04mrETsf8QW7T69NjwChsOkSFZQJzQD3dA U5lw== X-Received: by 10.66.235.102 with SMTP id ul6mr16105226pac.111.1361755048193; Sun, 24 Feb 2013 17:17:28 -0800 (PST) Received: from flatline.local (70-36-223-239.dsl.dynamic.sonic.net. [70.36.223.239]) by mx.google.com with ESMTPS id gg7sm10752297pbc.45.2013.02.24.17.17.19 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 Feb 2013 17:17:27 -0800 (PST) Message-ID: <512ABB5E.5050904@gmail.com> Date: Sun, 24 Feb 2013 17:16:14 -0800 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130202 Thunderbird/17.0.2 MIME-Version: 1.0 To: Eitan Adler Subject: Re: what is required to support a new laptop? References: <20130128114938.GK50515@e-new.0x20.net> <20130130024649.R87033@sola.nimnet.asn.au> <20130130032714.D87033@sola.nimnet.asn.au> <20130130050811.H87033@sola.nimnet.asn.au> <512AB6F3.6030001@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: bapt@freebsd.org, freebsd-acpi@freebsd.org, Ian Smith X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Feb 2013 01:17:35 -0000 On 02/24/13 17:04, Eitan Adler wrote: > On 24 February 2013 19:57, matt wrote: >> On 01/29/13 10:24, Ian Smith wrote: >>> On Tue, 29 Jan 2013 12:46:43 -0500, Eitan Adler wrote: >>> > On 29 January 2013 12:29, Ian Smith wrote: >>> > > Ah right. I don't suppose kldload -v shows anything useful about the >>> > > problem loading it? Ah, never mind, it may be obvious .. lightly >>> > > skimming your asl.y530.gz, I recalled folks having to patch something >>> > > for Lenovo rather than IBM OEMIDs .. hunt, hunt .. ok, here it is: >>> > > >>> > > http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/164538 >>> > >>> > >>> > This is after the install of a patched acpi_ibm >>> > [3500 root@gravity /usr/src/sys/modules/acpi ]#kldload -v acpi_ibm >>> > Loaded acpi_ibm, id=12 >>> >>> Which looks maybe successful, on the face of it? .. >>> >>> > [5507 eitan@gravity (100)% ~ !1!]%sysctl dev.acpi_ibm >>> > sysctl: unknown oid 'dev.acpi_ibm' >>> >>> .. but clearly wasn't. >>> >> The Y series doesn't have the HKEY stuff, or it's not the same. You want >> acpi_video (as does every new Lenovo, thinkpad or not). >> >> The problem is Lenovo is putting the "correct" _BCL/_BCM under "PEG" >> devices....section from your dsdt follows, temporary workaround test >> after that > ... > >> This would be under _SB.PCI0.PEG0.VGA >> >> Try acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL' >> then >> acpi_call -p '\_SB.PCI0.PEG0.VGA.LCD._BCL' -i 50 >> >> Experiment with the numbers. >> >> We need to fix acpi_video so it attaches to the correct _BCL on these >> laptops. > Unknown object type '4' > > regardless of what number is passed to -i. Same with the first call. > I made a typo :( Change the second call from _BCL to _BCM. The first call _BCL would "trapdoor" a thinkpad, and it returns an unknown object type 4. Acpi call has some formatting options to display this "object", it's usually (or should be) a list of valid backlight levels. The second call should set the value. _BQC will return the current value. If that does not work, also try replacing PEG0 with PEG1. Matt