From owner-freebsd-current@FreeBSD.ORG Tue Feb 26 01:54:43 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 9C261245; Tue, 26 Feb 2013 01:54:43 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pb0-f41.google.com (mail-pb0-f41.google.com [209.85.160.41]) by mx1.freebsd.org (Postfix) with ESMTP id 56E633A7; Tue, 26 Feb 2013 01:54:43 +0000 (UTC) Received: by mail-pb0-f41.google.com with SMTP id um15so2038050pbc.0 for ; Mon, 25 Feb 2013 17:54:37 -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; bh=Asf1qZ865mpkCGbhtWXyxaIsLHlAJpeZKnAiQvcLY6U=; b=07lp1ugUad/R8jJHdpWTsr0KlDElWdH+i6StTry4OlNxdd9gxkxP6eERcE/WDBOlxn DXI8BtOyIf6VujonF/NAPZfIoBW/2DaA4q7NtTm2DJd4avvqJOlgFi8xqtsnI3qIs6ju zHpbJV+BU4HIuSDew8C3CQkIESQAQK9u4EinaY9muNR8gG2y/dCK+E8uJbhah0WfS562 zLRYVkuhGro9agNaf8TbbY/nDatP5R+htD3xxCk6hYm9ajPJdsxj3ctN/g6VRU54A5ji gKGxqGFBULhMXA09JywckJqjvHqq2tFo/Vz/TBwBIthYsAM3TSHY40uixSY+sJr1DuNW Re6w== X-Received: by 10.68.212.197 with SMTP id nm5mr20799872pbc.179.1361843677654; Mon, 25 Feb 2013 17:54:37 -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 t6sm15625028paz.11.2013.02.25.17.54.33 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Feb 2013 17:54:36 -0800 (PST) Message-ID: <512C159B.3020707@gmail.com> Date: Mon, 25 Feb 2013 17:53:31 -0800 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130224 Thunderbird/17.0.3 MIME-Version: 1.0 To: John Baldwin Subject: Re: Fixing X220 Video The Right Way References: <512A6FFF.2060603@gmail.com> <201302251330.57034.jhb@freebsd.org> In-Reply-To: <201302251330.57034.jhb@freebsd.org> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-acpi@freebsd.org, freebsd-current@freebsd.org 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, 26 Feb 2013 01:54:43 -0000 On 02/25/13 10:30, John Baldwin wrote: > > Is there a better place to "correct" the ACPI_PATH that gets stored in > vgapci's ivar? Is there already a tunable I can use to fix this? > vgapci's ivar is set by the PCI address. Do you have multiple vgapci devices? > No, just one. I think that the DSDT is very creative on recent Lenovos (read: broken). There are multiple video devices defined, with "functional" calls that nonetheless don't work to actually do anything. The acpi_get_handle() call in acpi_video returns a handle that has no active outputs and doesn't have any control over the brightness. The other path can control brightness. Here's a related discussion on Linux, I'm not sure how much applies other than the situation discussed: http://comments.gmane.org/gmane.linux.acpi.devel/57228 The same thing happens on AGP thinkpads, I believe, based on Mitsuru Iwasaki's comment a long time ago to an X220 thread. Matt