[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: acpi package



From: "Alessandro Speranza" <speranza@mth.kcl.ac.uk>

> On Sat, 4 May 2002, Daniel Pittman wrote:
> >
> > Yes. With acpid you can make it respond to events. I just hacked the
> > script supplied to call 'poweroff' when I hit the power button so my
> > machine turns off under ACPI.

You had to 'hack' it?  I thought acpid came with that script builtin (though
you are likely to need to change the _name_ of the power button now, as it
is defined by the manufacturer).

> That's interesting. What I'm wondering is: do you need just the few things
> that the patched kernel knows about acpi to do that?

Yes.  acpid just reads /proc/acpi/events, which receives events from acpi.
When acpid sees something like
  button PWRF 00000001
it invokes a script, specified by you.
>
> > APM and ACPI both require BIOS support. If your system works with APM,
> > compiling that and not ACPI is a good idea at the moment. If you /don't/
> > have APM, which it sounds like, you are stuck, I fear.
>
> I think that's correct.

That's the case with many of us.  All I could do with apm was make it at
least fully shut down (instead of pausing at a "power off" prompt).  ACPI is
a bit more functional, but Dell only bothered to supply as much
functionality as needed for Windows, which obviously cheats because my ACPI
doesn't properly provide battery info either.
> >
> > The various Debian packages allow you to have the system react
> > automatically to power "events" such as low battery and the like. You
> > don't need them to have either ACPI or APM function.
>
> Ok, I imagined that. The thing is my event file is empty, does it
> matter?Shoudn't it say something about the status of the system in order
> to allow all these other packages to work?

Your events file is always empty, except when an event occurs.  So you need
something like acpid to have ACPI drive other applications, but _you_ can
affect ACPI by writing into the /proc/ACPI files (the most common is "Echo 1
> /proc/acpi/sleep" which sets sleep mode S1 - suspend).

--
derek


-- 
To UNSUBSCRIBE, email to debian-laptop-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: