From: "Derek Broughton" Subject: Re: lid state? Date: Mon, 7 Oct 2002 09:10:38 -0300 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: References: <3D9FC692.6050005@prairienet.org> Reply-To: "Derek Broughton" Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit Return-path: Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: ACPI Development - Sourceforge List-Id: linux-acpi@vger.kernel.org From: "John Belmonte" > > What is the correct way to detect the lid state on a lid event? I've > seen some mention of using a counter, but as the lid could be closed > before acpid starts up, it doesn't seem very robust. It's far from ideal, but it's robust enough, because the lid state bears no connection to acpid. Whether or not acpid is running, events get generated. I suppose, conceivably, the lid could be closed when the system boots and ACPI starts - but how realistic is that? I can't see it happening on my system. -- derek ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf