Re: FreeBSD 5.2-CURRENT on HP Omnibook 6000 - ACPI problem

From: Nate Lawson <nate_at_root.org>
Date: Tue, 6 Jan 2004 15:11:24 -0800 (PST)
> The problem is that with ACPI enabled the eject button on the docking
> station doesn't work.

When ACPI is running, the BIOS no longer runs things like the eject
button.  Since we haven't implemented eject support yet, it does nothing
if ACPI is running.  Either wait for eject support, which will be a while,
or disable acpi.

> I've disabled two ACPI methods:
>
> lid: Because the lid is normally shut - I don't want the system going into
> standby all the time

sysctl hw.acpi.lid_switch_state=NONE

> thermal: Because sometimes a wild temperature is reported, causing a
> poweroff.  Certainly I doubt the values reported (over 200 C) when this
> occurs

I don't see how this is possible since the code to do this is commented
out.  Is there any console message printed before it powers off?  It may
be the BIOS that does this if it's just a power off (no nice shutdown).

    sys/dev/acpica/acpi_thermal.c:   /* shutdown_nice(RB_POWEROFF);*/

> On a related question - is it possible to tune the ACPI events (as you
> can under Linux)?  I'd like to keep the thermal action, but set it to
> poweroff on 2 over-temperature events rather than one.

Since the above code is commented out, you can just use /etc/devd.conf to
look for Thermal events of type 0x80 and then call a script that evaluates
sysctl hw.acpi.tz0.temperature and then call halt -p if it exceeds some
value.  We pipe many ACPI events to usermode through devd(8).

-Nate
Received on Tue Jan 06 2004 - 14:11:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:36 UTC