From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: Determining Button State Date: Tue, 10 Dec 2002 14:31:00 +0100 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20021210133100.GC2934@zaurus> References: <3DF2D221.7020005@sympatico.ca> <1039324752.3240.6.camel@sirius.strandboge.cxm> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1039324752.3240.6.camel-Ty44UuN9vPJ5T2F9fCU5s856D9/Od9gv@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: James D Strandboge Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Hi! > > Looking at rolling out some sort of ACPI script environment for acpid. > > Is there any way that the ACPI system determines exposes what state the > > subsystem is in. > > > > When I close the lid on my laptop, I get the event - > > > > button/lid LID 00000080 0000000b > > button/lid LID 00000080 0000000c > > button/lid LID 00000080 0000000d > > button/lid LID 00000080 0000000e > > button/lid LID 00000080 0000000f > > > > Which doesn't seem to have anything that indicates 'down or up'. I > > understand an 'up/down' doesn't make sense for Power or Sleep, but it > > seems pretty vital to something like a lid. > > Nope, and you can't use odd or even either because it changes. I did > this: ... > This however assumes that the lid is open when I power on (not an > unreasonable assumption usually, since I can't press the power button > otherwise). I chose /var/run since it is cleaned out automatically. Fortunately at least toshibas and thinkpads have power btn available with lid closed -- it is pretty bad to have to open the lid to turn the machine on -- especially with external keyboard and monitor. Toshiba has LEDs visible from the outside for added bonus. Pavel -- Pavel Written on sharp zaurus, because my Velo1 broke. If you have Velo you don't need... ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/