cvs commit: src/sys/dev/acpica/Osd OsdSynch.csrc/sys/i386/include acpica_machdep.h src/sys/ia64/include acpica_machdep.h src/sys/amd64/include acpica_machdep.h

Nate Lawson nate at root.org
Thu May 6 01:17:07 PDT 2004


On Thu, 6 May 2004, Mike Silbersack wrote:
> On Wed, 5 May 2004, Mike Silbersack wrote:
>
> > Hm, I think that you may be right about John's commit, because I'm saw
> > this error twice since I booted:
> >
> >     ACPI-0440: *** Error: Handler for [EmbeddedControl] returned AE_NO_HARDWARE_RESPONSE
> >     ACPI-1303: *** Error: Method execution failed [\\_SB_.PCI0.ISA_.EC0_._Q20] (Node 0xc41c0400), AE_AML_NO_RETURN_VALUE
> >
> > Any clue what that means?  It sounds new. :)
> >
> > Mike "Silby" Silbersack
>
> Since ACPI now works for me, I went ahead and upgraded my notebook's BIOS.
> Sure enough, it fixed that error above.  Suspend is non-functional, but
> battery status and cpu throttling are working, so I'm happy. :)

That warning is mostly harmless but if your battery status or thermal
state wasn't working, it would be good to fix.  It basically means your
embedded controller timed out.  I have some plans that may fix this in
chronic cases but for most systems, a BIOS upgrade takes care of it.

> Does devd receive lid status events?  I'm thinking that it would be
> advantageous for my battery life if I could throttle the cpu down whenever
> the lid is closed.

cat /etc/devd.conf:
# Examples of notify hooks.  A notify is a generic way for a kernel
# subsystem to send event notification to userland.
#
# Here are some examples of ACPI notify handlers.  ACPI subsystems that
# generate notifies include the AC adapter, power/sleep buttons,
# control method batteries, lid switch, and thermal zones.
#
# Information returned is not always the same as the ACPI notify
# events.  See the ACPI specification for more information about
# notifies.  Here is the information returned for each subsystem:
#
# ACAD:         AC line state (0 is offline, 1 is online)
# Button:       Button pressed (0 for power, 1 for sleep)
# CMBAT:        ACPI battery events
# Lid:          Lid state (0 is closed, 1 is open)
# Thermal:      ACPI thermal zone events

If you want to change CPU idle states and/or throttling on AC line
transition, see the appropriate values in /etc/rc.conf.  But for one-offs
like lid to control CPU, using devd.conf and a small script is the way to
go.

-Nate


More information about the cvs-src mailing list