There is a acpi dump script for Linux floating around, written in perl, but A - it does not work with later version of Ubuntu (like Karmic, Lucid), B - 64bit version. Mine is written in Python, and should work with any version/flavor of Ubuntu Live CD. (If not, please let me know.)
Get ACPI from Mac's ioreg command.
Attached as "get_acpi_tables.py.zip". MacOS comes with Python, generally speaking.
ioreg command, when dumped in full contains the hex printed ACPI tables. They are, I think, what Mac is seeing. If you want to know your patched ACPI tables are loaded or not, that's where you'd look.
Just run it, and it creates ACPI tables (.aml files) such as DSDT.aml, SSDT.aml, etc.
It's handy when you want to know what your hack is seeing.
Start a terminal.
The command creates multiple .aml files in the current directory. So, create a directory.
$ mkdir tables
$ cd tables
$ <path-to-the-script>/get_acpi_tables.py
./get_acpi_tables.py:3: DeprecationWarning: The popen2 module is deprecated. Use the subprocess module.
import os, sys, popen2, re, binascii
5554 lines
acpi tables found.
"SSDT"=
"SSDT-1
"RSDT"=
"APIC"=
"DSDT"=
"MCFG"=
"FACS"=
"FACP"=
$ ls
APIC.aml FACP.aml MCFG.aml SSDT-1.aml
DSDT.aml FACS.aml RSDT.aml SSDT.aml
Ignore the warning now.
Get ACPI from Ubuntu
Ubuntu Live CD always contains Python.
Attached as "dump_acpi.py.zip". (I wish I could upload non-zipped file.)
This one works with pretty much any flavor of Ubuntu Live CD. I tried it with Ubuntu Kalmic (9.10) AMD64.
Run the script, and it should create a ZIPed archive (like perl one does).
If your Ubuntu does not have acpidump or zip, it'll ask you to install. So, if you are using a Live CD, be sure to have a net connection since you need to install acpidump and zip packages.
Once the command successfully runs, you'll get a zipped archive with timestamp in your current directory.
UPDATE on 2010-Nov-05:
I used the script on my Zotac with Ubuntu 9.04 32bit, and did not run too well, so I worked out some kinks, and added some features as well.
I updated script to do followings
a - If it's Ubuntu, update /etc/apt/sources.list to include universe
b - run apt-get update
c - install acpidump
so that you don't have to.
(I am writing this on Ubuntu 9.04 live CD.)
If the script has any problem, please let me know.
-- TG



Sign In
Create Account











