Re: [ACPI-sppt] Problems with Event-catching in acpid
Swen <[email protected]>
| Newsgroups | gmane.linux.acpi.support |
|---|---|
| Message-ID | <oprqmbpkygnqk0wk@bigjack> |
Thank you for helping me, i had tested the script and it seems so that the %e in "action=/etc/acpi/default.sh %e" does not hold the event. It seems so that this parameter where empty. In the messages-log is standing acpid default: ACPI group / event is not defined after group and event some Parameters should standing. I had testet some other ways. In the Suse distribution the events can be send to "acpid_proxy". This program means even that no events where send. I had found a way that acpid accept the events - without the %e event=button/power.* action=halt no %e - now it works!! 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 > > -- Der Schwarze Mann ------------------------------------------------------- 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