From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: James D Strandboge <jstrand1-aYIB8uWIUb2Vn7q6wjsIow@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Determining Button State
Date: Tue, 10 Dec 2002 14:31:00 +0100 [thread overview]
Message-ID: <20021210133100.GC2934@zaurus> (raw)
In-Reply-To: <1039324752.3240.6.camel-Ty44UuN9vPJ5T2F9fCU5s856D9/Od9gv@public.gmane.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/
next prev parent reply other threads:[~2002-12-10 13:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-08 5:01 Determining Button State Matthew Tippett
[not found] ` <3DF2D221.7020005-rieW9WUcm8FFJ04o6PK0Fg@public.gmane.org>
2002-12-08 5:19 ` James D Strandboge
[not found] ` <1039324752.3240.6.camel-Ty44UuN9vPJ5T2F9fCU5s856D9/Od9gv@public.gmane.org>
2002-12-08 5:31 ` James D Strandboge
2002-12-10 13:31 ` Pavel Machek [this message]
[not found] ` <20021210133100.GC2934-XqDnSF8rrUM@public.gmane.org>
2002-12-15 18:41 ` James D Strandboge
-- strict thread matches above, loose matches on Subject: below --
2002-12-16 18:03 Grover, Andrew
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021210133100.GC2934@zaurus \
--to=pavel-+zi9xunit7i@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=jstrand1-aYIB8uWIUb2Vn7q6wjsIow@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox