Re: [ACPI-sppt] Problems with Event-catching in acpid

Jack Coates <[email protected]>
Newsgroups gmane.linux.acpi.support
Organization Monkeynoodle.Org
Message-ID <[email protected]>
look up swsusp on the web.

On Wed, 2003-06-11 at 12:42, Swen wrote:
...
> A other question: Did you know a command which get the Computer going in 
> standby (he should wake up by pressing a key).
> 
> 
> Bye and thanks
> 
> Swen
> 
> > From: "Sebastian Henschel" <[email protected]>
> >
> >> Received at 2003-06-11 / 09:04 by Swen:
> >>>
> >>> I had a problem with the acpid-tool. It doesn't work, so i want! in
> >>> /var/log/acpid the events where shown correctly. I had create a file
> >>> /etc/acpi/events/power wich contents
> >>>
> >>> event=button/power.*
> >>> action=/etc/acpi/scripte/power.sh
> >>
> >> i remember there was an alternative in the regexp like
> >> event=button[/ ]power.*
> >> in my power-event, but this could be wrong.
> >>
> >> anyway, i now use only the default event which catches all:
> >>
> >> event=.*
> >> action=/etc/acpi/default.sh %e
> >>
> >> the event parsing is done in that script, check the attached default.sh
> >
> > In your case, Swen, you'd need to catch the "LID" and "battery" events 
> > (the
> > latter quite possibly aren't generated!  I've never seen one, others have 
> > a
> > similar problem).  Using the default script Sebastian included, open and 
> > close
> > the lid a few times, and remove and insert the battery while on AC and 
> > let the
> > battery run down (if you don't have some BIOS powered alert like I do, be 
> > sure
> > to dismount all your partitions except the one with your syslog before it 
> > dies!
> > A journalling file system should be running on - at least - the logging
> > partition).
> >
> > Then check the logs for the ACPI events to determine exactly which alerts 
> > are
> > being sent to acpid, and then write appropriate scripts.
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> > thread debugger on the planet. Designed with thread debugging features
> > you've never dreamed of, try TotalView 6 free at www.etnus.com.
> > _______________________________________________
> > ACPI-support mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/acpi-support
> >
> >
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...
http://www.monkeynoodle.org/resume.html



-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.