Re: [ACPI-sppt] acpi power event
Derek Broughton <[email protected]>
| Newsgroups | gmane.linux.acpi.support |
|---|---|
| Organization | Pointer Stop Consulting |
| Message-ID | <[email protected]> |
From: "Jack Coates" <[email protected]> > On Thu, 2003-06-12 at 07:01, Derek Broughton wrote: > > From: "Jack Coates" <[email protected]> > > > > > The power button > halt-dialog thing works nicely. If I run > > > /etc/acpi/actions/powerchange manually, it works properly. But it > > > doesn't catch the event on a regular basis. Is there a typo in > > > /etc/acpi/events/power that I'm just not seeing? > > Sorry -- the problem is that ACPI ac_adapter events aren't triggering > the script. > > spicctrl adjusts screen brightness on my laptop. Idea is to decrease > brightness when using battery. > > I don't have an /etc/acpi/default.sh at all, and nothing in > /etc/acpi/events is calling it anymore... Here's a question though. How > are events matched? Do the file names in /etc/acpi/events matter at all? > Would a single match file make more sense than separate battery, button > & power files? That would make it easier to specify a fall-through > action (logger "handler for event foobar not defined"). Very strange, because the behaviour you're seeing is consistent with running the default.sh script. afaict from the man page, you can't put more than one rule in a file, but ALL rules are tested for each event - so even if you were still running the default script, it should be running your AC script. I hate to ask the stupid question, but did you restart or SIGHUP acpid? You might try stopping the daemon and use "acpid -d" (or -d -d -d ...) to see if it tells you anything helpful. derek ------------------------------------------------------- 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