From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nate Lawson Subject: Re: Gateway 200X (again) - No power button events Date: Tue, 20 Jan 2004 12:03:34 -0800 (PST) Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040120120211.U96919@root.org> References: <1074533658.11008.18.camel@localhost> <1074541900.2813.5.camel@localhost> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <1074541900.2813.5.camel-bi+AKbBUZKZeoWH0uzbU5w@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Greg Sarjeant Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org On Mon, 19 Jan 2004, Greg Sarjeant wrote: > So, it looks like it is specified in the DSDT. I'm not sure why I don't > get an event when I press the button. I do get events from the sleep > button, but the two are declared somewhat differently. Here they are for > comparison: > > Device (SLPB) > { > Name (_HID, EisaId ("PNP0C0E")) > Method (_STA, 0, NotSerialized) > { > Return (0x0F) > } > } > > Device (PWRB) > { > Name (_HID, EisaId ("PNP0C0C")) > Name (_PRW, Package (0x02) > { > 0x1D, > 0x04 > }) > } You have no _STA method for PWRB. On FreeBSD, we say hw is always present if there is no _STA method. If it is present, it must return the proper flags for the hw to be used. Perhaps Linux always thinks it's not present if _STA is not there. Note that SLPB returns the proper _STA result. -Nate ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn