TennisGeek Posted April 18, 2010 Share Posted April 18, 2010 There are two python scripts, one for Mac's ioreg, one for Linux (Ubuntu Live CD works). 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 get_acpi_tables.py.zip acpi_dump.py.zip 3 Link to comment Share on other sites More sharing options...
valv Posted May 8, 2010 Share Posted May 8, 2010 Thank u for this! much appreciated. Link to comment Share on other sites More sharing options...
TennisGeek Posted July 3, 2010 Author Share Posted July 3, 2010 If you cannot install acpidump package in recent Ubuntu, you need to edit /etc/apt/sources to activate the "universe" repository. -- TG Link to comment Share on other sites More sharing options...
dopeelf Posted August 8, 2012 Share Posted August 8, 2012 How do I check if it's working? I am a total newbie who has a Mac Pro 2,1 which I use Chimera to boot Mountain Lion (EFI64 simulation). I booted up in Snow Leopard, ran the get_acpi_tables.py command and just copied the dsdt.aml and SSDT.aml files to my Extra folder. It seems to be working. Link to comment Share on other sites More sharing options...
Gringo Vermelho Posted August 8, 2012 Share Posted August 8, 2012 There's no reason to do that on a real Mac. The reason why we extract ACPI tables on PCs that run OS X is so that we can make modifications to them, to improve compatibility. The bootloader then loads the modified tables, overriding the tables already present on the system - the ones you've just extracted with the perl script. It's pointless to keep unmodified DSDT.aml and SSDT.aml in /Extra, even more so on a real Mac, because on a real Mac there are no compatibility issues to fix. And, if you have not modified the tables in any way, you now have Chimera loading the same data that the system was already seeing. Therefore what you just did is completely pointless, and only serves to delay your boot process. Link to comment Share on other sites More sharing options...
Gringo Vermelho Posted February 4, 2013 Share Posted February 4, 2013 Here's an easy way to get ACPI tables on Windows. Install Lavalys Everest Corporate Edition (discontinued but the download is there if you scroll down, works fine in Windows 7) Then do like this: 1 Link to comment Share on other sites More sharing options...
ZhuangJW Posted November 25, 2014 Share Posted November 25, 2014 hey , The "acpi_dump.py" didn't work in linux(Ubuntu 14.10 live CD) . It will create a empty file and a empty ZIPed archive . Link to comment Share on other sites More sharing options...
jamiethemorris Posted November 25, 2014 Share Posted November 25, 2014 hey , The "acpi_dump.py" didn't work in linux(Ubuntu 14.10 live CD) . It will create a empty file and a empty ZIPed archive . All of the ACPI tables in Ubuntu should be in /sys/firmware/acpi/tables. Try this: http://alexhungdmz.blogspot.com/2012/05/how-to-dump-acpi-tables-in-ubuntu.html The example used in that link is for DSDT, but you can use it for any ACPI table. Link to comment Share on other sites More sharing options...
ZhuangJW Posted November 26, 2014 Share Posted November 26, 2014 All of the ACPI tables in Ubuntu should be in /sys/firmware/acpi/tables. Try this: http://alexhungdmz.blogspot.com/2012/05/how-to-dump-acpi-tables-in-ubuntu.html The example used in that link is for DSDT, but you can use it for any ACPI table. Thanks for your help , I get it by the way . Link to comment Share on other sites More sharing options...
Slice Posted December 12, 2014 Share Posted December 12, 2014 Install Clover on FAT32 USB stick. Start it. Press F4 in Clover GUI. Take all ACPI tables from /EFI/CLOVER/acpi/origin/ Link to comment Share on other sites More sharing options...
Pike R. Alpha Posted December 12, 2014 Share Posted December 12, 2014 Install Clover on FAT32 USB stick. Start it. Press F4 in Clover GUI. Take all ACPI tables from /EFI/CLOVER/acpi/origin/ But not the dynamically loaded tables 1 Link to comment Share on other sites More sharing options...
Slice Posted December 13, 2014 Share Posted December 13, 2014 But not the dynamically loaded tables As well as Everest/Linux. If you want loaded tables then use DarwinDumper. 1 Link to comment Share on other sites More sharing options...
RehabMan Posted December 13, 2014 Share Posted December 13, 2014 As well as Everest/Linux. If you want loaded tables then use DarwinDumper. Or... 'patchmatic -extract' to get loaded DSDT/SSDTs, or 'patchmatic -extractall' to get all loaded tables. https://bitbucket.org/RehabMan/os-x-maciasl-patchmatic/downloads 1 Link to comment Share on other sites More sharing options...
RehabMan Posted January 10, 2016 Share Posted January 10, 2016 But not the dynamically loaded tables Note: What I mean by "not the dynamic...tables" is that dynamic tables should not be placed in ACPI/patched. They are loaded dynamically with ACPI Load opcode (conditional logic within DSDT or static SSDTs). Clover F4 extract marks dynamic tables with 'x'. Link to comment Share on other sites More sharing options...
mrjayviper Posted April 10, 2016 Share Posted April 10, 2016 how about this method which I found in another guide? sudo cat /sys/firmware/acpi/tables/DSDT > DSDT.aml for reference: https://mackonsti.wordpress.com/2012/02/13/extract-dsdt-using-ubuntu-live-cd/ and https://wiki.archlinux.org/index.php/DSDT Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts