OpenBSD Journal

ACPI update

Contributed by marco on from the acpi-r-us-AGAIN dept.

After many hours of hacking all over the world Jordan has rewritten the ACPI parser and evaluator once more to fix some serious memory leaking issues. Today we committed the latest instalment of ACPI into the tree. My laptop, a Dell D810, now runs ACPI happily and detects insertions and removals of batteries and power supplies. It also reacts to pushing the power button by powering off.

All that said, we need some serious testing. Please test ACPI by applying this diff (i386):

Index: GENERIC
===================================================================
RCS file: /cvs/src/sys/arch/i386/conf/GENERIC,v
retrieving revision 1.527
diff -u -p -r1.527 GENERIC
--- GENERIC     6 Oct 2006 22:17:13 -0000       1.527
+++ GENERIC     12 Oct 2006 19:02:31 -0000
@@ -57,18 +57,18 @@ isa0        at gscpcib?
 eisa0  at mainbus0
 pci*   at mainbus0

-#option        ACPIVERBOSE
-#option        ACPI_ENABLE
+option         ACPIVERBOSE
+option         ACPI_ENABLE

-#acpi0         at mainbus?
-#acpitimer*    at acpi?
-#acpihpet*     at acpi?
-#acpiac*       at acpi?
-#acpibat*      at acpi?
-#acpibtn*      at acpi?
-#acpicpu*      at acpi?
-#acpiec*       at acpi?
-#acpitz*       at acpi?
+acpi0          at mainbus?
+acpitimer*     at acpi?
+acpihpet*      at acpi?
+acpiac*        at acpi?
+acpibat*       at acpi?
+acpibtn*       at acpi?
+acpicpu*       at acpi?
+acpiec*        at acpi?
+acpitz*        at acpi?

 option         PCIVERBOSE
 option         EISAVERBOSE
Please report success or failure to jordan@ and marco@.

If you run into issues send us a dmesg and a dsdt dump. Create a dsdt dump by running the following command: "acpidump -o foo.dsdt" and replace foo with a useful description of your system (ex: dell_d810.dsdt).

Excerpt from dmesg:

acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP APIC ASF! MCFG SSDT SSDT SSDT
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0: model: DELL D55056 serial: 201 type: LION oem: Sanyo
acpibat1 at acpi0: BAT1: model: DELL 0007P8 serial: 151 type: LiP oem: Sanyo
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
acpicpu0 at acpi0: CPU0: 2133, 1867, 1600, 1333, 1067, 800 MHz
acpitz at acpi0 not configured

(Comments are closed)


Comments
  1. By Denis (213.41.245.173) on

    Congratulations guys! That's a very good job :)

  2. By Anonymous Coward (207.106.86.6) on

    I love when the power button works!

  3. By Anonymous Coward (80.5.160.5) on

    My laptop has a buggy pcibios which prevents the inbuilt intel wireless card from working (I get memory locking errors). The card works fine under linux with ACPI enabled. Is this update likely to allow me to finally get the card working under OpenBSD or should I keep being patient?
    Thanks

  4. By Anonymous Coward (216.220.225.229) on

    Now I need this to work on my Mac iBook 500mhz.

    Comments
    1. By Anonymous Coward (82.195.149.9) on

      > Now I need this to work on my Mac iBook 500mhz.

      I'm sure ACPI support on macppc will be ready any day soon!

    2. By phessler (64.173.147.26) on

      > Now I need this to work on my Mac iBook 500mhz.

      acpi only works on i386 and amd64. and by 'works' I mean "its only in the bios for those archs".

  5. By Anonymous Coward (87.238.80.64) on

    Is there any way I can switch off screen when lid button is pressed on ACPI enabled kernel. Can I somehow read status of ACPI buttons?

    Comments
    1. By Dmitri Alenitchev (212.118.46.214) dmitri@wave.net.ru on http://rootshell.be/~dmitri/

      > Is there any way I can switch off screen when lid button is pressed on ACPI enabled kernel. Can I somehow read status of ACPI buttons?

      i sent patch to tech@ for adding sensor framework support to acpibtn.
      http://marc.theaimsgroup.com/?l=openbsd-tech&m=116047436704597&w=2
      work for me with new acpi.

  6. By Anonymous Coward (64.233.199.212) on

    Does this mean there is support for ACPI version 2?

  7. By Anonymous Coward (125.212.121.92) on

    now, the latest commits to the acpi code breaks out the kernel.

Latest Articles

Credits

Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original deadly.org with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]