PDA

View Full Version : DSDT editing tips


kDawg
09-02-2009, 10:33 AM
EDITING
I wanted to share a DSDT editing tip with everyone. Since these files are thousands of lines long it drives me crazy trying to edit everything. BareBones software makes BBEdit. You can download a free 30 day trial so get all your DSDT editing done in 30 days.
http://www.barebones.com/products/bbedit/

This app lets you "fold" sections of code so what you end up with is a very readable file when completely folded.

Open your DSDT.dsl file in the menu goto Edit>Text Options

Select the ActionScript profile because the DSDT closely resembles AS. Don't worry it won't affect your file or change the extension on you. This is strictly for syntax coloring and folding.
551

Folded:
553

Unfolded:
550

NICE! Now can actually start to see the hierarchy this way. If only the free TextWrangler offered folding. :( Can't have everything. I'll expand this thread with other tips I've found helpful. Such as finding any PCI address with gfxutil, the references I use and more.

COMPARING DSDTs
BBEdit has a built in compare feature. You can access it via contextual menu:
555

Or via search menu:
552

Another great FREE compare utility is called DiffMerge. This does a better job at comparing two or more documents at the same time but since the majority of my time is spent in BBEdit I just use BBEdit's built in feature.
http://www.sourcegear.com/diffmerge/

http://www.sourcegear.com/diffmerge/screens/mac_file_window_diffs_with_context.png

EnzoFX
09-04-2009, 10:55 AM
In BIOS, I disable all legacy ports, i.e. printer, serial, ps/2, etc. But my dsdt.aml file has them all included. Could this cause some sort of conflict?

Maybe I should edit my dsdt with those things off, but the thought of going through that thing and being ever so careful still seems daunting... Thanks for the tip however.

kDawg
09-05-2009, 12:49 AM
The DSDT is what it is. It wont change when you turn those settings off.

Snow
09-05-2009, 08:10 AM
Thx for the info m8, I'll check them out!

EnzoFX
09-26-2009, 10:45 PM
Any tips on how to remove my injected GFX from my dsdt? I want to switch back to EFI string for GFX, seeing as it might fix a graphical lag issue I have with Spaces related animations. (Though it might be OS X, or maybe my card "incompatibility"?)