From owner-freebsd-acpi@FreeBSD.ORG Mon Dec 19 18:45:12 2005 Return-Path: X-Original-To: freebsd-acpi@freebsd.org Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B49C716A420 for ; Mon, 19 Dec 2005 18:45:12 +0000 (GMT) (envelope-from nate@root.org) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59D2A43D58 for ; Mon, 19 Dec 2005 18:45:12 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.33] (adsl-67-119-74-222.dsl.sntc01.pacbell.net [67.119.74.222]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id jBJIjI9e015573 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 19 Dec 2005 10:45:19 -0800 Message-ID: <43A6FFAD.4050103@root.org> Date: Mon, 19 Dec 2005 10:45:01 -0800 From: Nate Lawson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: JoaoBR References: <200512190550.16062.joao@matik.com.br> In-Reply-To: <200512190550.16062.joao@matik.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@freebsd.org Subject: Re: dsdt compile error on Acer 3002 NB X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2005 18:45:12 -0000 JoaoBR wrote: > Hello > > somebody knows and can tell me what this function should return in order not > returning an error when compiling? > > Method (_WAK, 1, NotSerialized) > { > Store (0x00, \_SB.PCI0.LPCB.ALED) > Store (\_SB.BTEN, \_SB.PCI0.LPCB.EC0.BLTH) > Store (\_SB.WLAN, \_SB.PCI0.LPCB.EC0.WLAN) > Store (0x01, \_SB.PCI0.LPCB.EC0.CPLE) > If (LEqual (Arg0, 0x03)) > { > \_SB.PHSR (0x00, 0x00) > } > > If (LEqual (Arg0, 0x04)) > { > \_SB.PHSR (0x03, 0x00) > } > } > > I get this: > > dsdt.aml.ori 3441: Method (_WAK, 1, NotSerialized) > Warning 2026 - ^ Reserved method must > return a value (_WAK) Just use iasl with the -f flag. It will ignore these kinds of warnings. For reference, _WAK returns a package, {0, 0} is fine. See the ACPI debugging section of the handbook. -- Nate