Jump to content

DSDT editor and patcher


oldnapalm
 Share

999 posts in this topic

Recommended Posts

DTGP

IRQs

Shutdown

LPC <---run on terminal - kextstat | grep LPC - if it is loaded, you do not need

I applied those and a few more (Mac devices, AHCI Orange Icon Fix, HDEF, AD2000B)

 

*you must need the usb fixs

Which are those?

 

for native power managment and restart fix --> Chameleon RC5

Look it

http://www.insanelymac.com/forum/index.php?showtopic=225766

Download Chameleon RC5

http://www.insanelymac.com/forum/index.php?showtopic=231075

 

include in boot.plist

 

<key>GeneratePStates</key>

<string>Yes</string>

<key>GenerateCStates</key>

<string>Yes</string>

 

smbios MacPro / boot.plist

SMBIOS_MP___BOOT.PLIST.zip

I installed it and using com.apple.Boot.plist and smbios.plist in the attachments.

 

for audio use voodoohda

http://www.insanelymac.com/forum/index.php?showtopic=216071

or

apply the patch in DSDT + legacy + *applehda 10.6.2

With that I'm having problems... I can't get stable sound output. If I use VoodooHDA I often get KPs and if try AppleHDA10.6.2.kext I get

 

 Oct  2 00:51:57 localhost kernel[0]: Sound assertion "0 == pathMap_aDriverInstance" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 1656 goto Exit
Oct  2 00:51:57 localhost kernel[0]: Sound assertion "0 != createAudioEngines ( fPathMap_aDriverInstance )" failed in "/SourceCache/AppleHDA/AppleHDA-179.1.4/AppleHDA/AppleHDADriver.cpp" at line 203 goto Exit

 

and I have situation like in the screenshots attached.

 

This is "lspci -nn" output:

00:00.0 Host bridge [0600]: Intel Corporation 4 Series Chipset DRAM Controller [8086:2e20] (rev 02)
00:01.0 PCI bridge [0604]: Intel Corporation 4 Series Chipset PCI Express Root Port [8086:2e21] (rev 02)
00:06.0 PCI bridge [0604]: Intel Corporation 4 Series Chipset PCI Express Root Port [8086:2e29] (rev 02)
00:1a.0 USB Controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #4 [8086:3a37]
00:1a.1 USB Controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #5 [8086:3a38]
00:1a.2 USB Controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #6 [8086:3a39]
00:1a.7 USB Controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #2 [8086:3a3c]
00:1b.0 Audio device [0403]: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller [8086:3a3e]
00:1c.0 PCI bridge [0604]: Intel Corporation 82801JI (ICH10 Family) PCI Express Port 1 [8086:3a40]
00:1c.5 PCI bridge [0604]: Intel Corporation 82801JI (ICH10 Family) PCI Express Port 6 [8086:3a4a]
00:1d.0 USB Controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #1 [8086:3a34]
00:1d.1 USB Controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #2 [8086:3a35]
00:1d.2 USB Controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB UHCI Controller #3 [8086:3a36]
00:1d.7 USB Controller [0c03]: Intel Corporation 82801JI (ICH10 Family) USB2 EHCI Controller #1 [8086:3a3a]
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e] (rev 90)
00:1f.0 ISA bridge [0601]: Intel Corporation 82801JIR (ICH10R) LPC Interface Controller [8086:3a16]
00:1f.2 SATA controller [0106]: Intel Corporation 82801JI (ICH10 Family) SATA AHCI Controller [8086:3a22]
00:1f.3 SMBus [0c05]: Intel Corporation 82801JI (ICH10 Family) SMBus Controller [8086:3a30]
01:00.0 VGA compatible controller [0300]: nVidia Corporation Unknown device [10de:06cd] (rev a3)
01:00.1 Audio device [0403]: nVidia Corporation Unknown device [10de:0be5] (rev a1)
02:00.0 VGA compatible controller [0300]: nVidia Corporation G96 [GeForce 9500 GT] [10de:0640] (rev a1)
03:00.0 Ethernet controller [0200]: Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet Controller [11ab:4364] (rev 12)
05:00.0 Multimedia audio controller [0401]: Creative Labs SB X-Fi [1102:0005]
05:03.0 FireWire (IEEE 1394) [0c00]: Agere Systems FW322/323 [11c1:5811] (rev 70)

 

ioreg -l in the attachment also...

 

 

in /E/E I have fakesmc.kext v2.5 and IONetworkingFamily.kext patched for Marvell 8056

 

Thanks for all the help! :)

DSDT.dsl.zip

post-307654-1285974732_thumb.png

post-307654-1285974741_thumb.png

ioreg.txt.zip

Link to comment
Share on other sites

you must need the usb fixs

 

With that I'm having problems... I can't get stable sound output. If I use VoodooHDA I often get KPs

try it

back up

and remove Applehda.kext

 

 

in /E/E I have fakesmc.kext v2.5 and IONetworkingFamily.kext patched for Marvell 8056

if you use the HDEF

needs the legacy

IONetworkingFamily.kext patched for Marvell 8056

Look it

 

http://www.insanelymac.com/forum/index.php...t&p=1325322

 

smilegu.png

Link to comment
Share on other sites

try it

back up

and remove Applehda.kext

OK. I tried it. I now have working headphone output (front of the case) but no working input (microphone doesn't show in the list and CD is the only item - see the attached screenshots).

 

 

if you use the HDEF

needs the legacy

 

Look it

 

http://www.insanelymac.com/forum/index.php...t&p=1325322

OK. I'll look into it.

 

Thanks!

 

 

P.S. The editor is great - I made patches for the SBRG -> LPCB , _T_0 -> T_0 , _T_1 -> T_1 renaming

Patches.zip

post-307654-1286005961_thumb.png

post-307654-1286005969_thumb.png

post-307654-1286005976_thumb.png

Link to comment
Share on other sites

is the best solution :)

 

Well... I'm almost there :(

 

I used HDEF and AD2000B patch for the DSDT , AD2000b.kext in /E/E from the link You provided and bin patched version(for AD2000B) of AppleHDA.kext in /S/L/E

 

Now I have the situation You can see in the attached screenshot...

I have working audio out and microphone in on the back green and pink ports.

 

What I was really hoping is that I could use front (on the case) headphones(green) and mic(pink) ports and alternatively use HDMI out (on GTX 470).

 

What is confusing to me is that I have almost all sound in/out ports listed in System Profiler but don't have all listed in System Preferences->Sound :D

post-307654-1286023291_thumb.png

Link to comment
Share on other sites

What is confusing to me is that I have almost all sound in/out ports listed in System Profiler but don't have all listed in System Preferences->Sound :(

All in & out listed in the System Profiler just cosmetic. The list was parsed from the ConfigData & PinConfigurations you set in the DSDT. What you see in System Preferences are actually the real audio in & out your computer have.

Link to comment
Share on other sites

Hi,

 

Any update on the DSDT Editor?

 

1. i would like to see the dsdt editor combine with the system-info program database (the program that check your hardware, to see if it is compatable with OS X 10.6.x)

 

 

2. Just like how the dsdt editor can save your dsdt info to a file, i would like it to save the system hardware profile (info), so that if some one send you a dsdt file, they can send their hardware profile as well.

 

3. Like to see, when you tell the program to load DSDT from IOREG or bios or file, it ask to load the hardware profile from bios or

file.

 

 

4. After it loads the dsdt and hardware profile, it checks the hardware to see which can work without kext files and which can't, using this info it then check the dsdt file and pop up all the sections that will need fix (editing/patching) and show a selectable list of all suggested fix (like DTPG.txt, EHCI.txt, Alias.txt, HDEF.txt, HPET.txt, RTC.txt, etc....).

 

5. When it's finnish modding your DSDT file, it should now show you the DSDT file and list of all the kext file that will be needed to get OSX 10.6.x to work.

 

Thank you.

Link to comment
Share on other sites

Am wanting to use DSDT for GMA950 (Device ID: 0x2772) with vanilla kexts I understand I have to apply DTGP patch as well as the GMA950 Desktop patch. Is that correct?

 

I tried to compile an unpatched dsdt.aml but have run into a problem.

Compile has an error post-456295-1286423497_thumb.png

Line 2621 is

0x0AC00000,         // Length

I apply "Fix Errors" button and the line changes to

0x7ac00000,         // Length

After the fix, still will not compile and gives the same error . Any idea how to fix this please.

 

dsdt.dsl.zip

Link to comment
Share on other sites

@fbifido

 

Good suggestions, not far from el coniglio's idea

 

I'm working on a "next level" for the app, and I'd like to know what you guys think. The idea is to let the user share with his original dsdt and mobo model to a database, the dsdt will be parsed and a system will create relationships between that dsdt and ready made patches. So when reaching a consistent database the users would just hit a button and the app would check and suggest the patches.

 

We could generate an identifier based on PCI devices and DSDT. When the user applies an automated patch, it is stored in a local DB. If user chooses to submit info, applied patches are listed and user selects the ones that are confirmed working. These patches would be suggested to "similar" identifiers.

 

 

@pdave54

 

please post the entire segment where is line 2621, or attach your DSDT.

Link to comment
Share on other sites

              DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite,
                   0x00000000,         // Granularity
                   0x00000000,         // Range Minimum
                   0xEFFFFFFF,         // Range Maximum
                   0x00000000,         // Translation Offset
                   0x00000000,         // Length
                   ,, _Y02, AddressRangeMemory, TypeStatic)
               DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite,
                   0x00000000,         // Granularity
                   0x84000000,         // Range Minimum
                   0xFEBFFFFF,         // Range Maximum
                   0x00000000,         // Translation Offset
                   0x7ac00000,         // Length
                   ,, _Y03, AddressRangeMemory, TypeStatic)
               DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite,
                   0x00000000,         // Granularity
                   0xFFA80800,         // Range Minimum
                   0xFFA80BFF,         // Range Maximum
                   0x00000000,         // Translation Offset
                   0x00000400,         // Length
                   ,, _Y04, AddressRangeMemory, TypeStatic)

 

dsdt.dsl.zip

Link to comment
Share on other sites

              DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite,
                   0x00000000,         // Granularity
                   0x00000000,         // Range Minimum
                   0xEFFFFFFF,         // Range Maximum
                   0x00000000,         // Translation Offset
                   0x00000000,         // Length
                   ,, _Y02, AddressRangeMemory, TypeStatic)
               DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxFixed, NonCacheable, ReadWrite,
                   0x00000000,         // Granularity
                   0x84000000,         // Range Minimum
                   0xFEBFFFFF,         // Range Maximum
                   0x00000000,         // Translation Offset
                   0x7ac00000,         // Length
                   ,, _Y03, AddressRangeMemory, TypeStatic)
               DWordMemory (ResourceProducer, PosDecode, MinNotFixed, MaxNotFixed, NonCacheable, ReadWrite,
                   0x00000000,         // Granularity
                   0xFFA80800,         // Range Minimum
                   0xFFA80BFF,         // Range Maximum
                   0x00000000,         // Translation Offset
                   0x00000400,         // Length
                   ,, _Y04, AddressRangeMemory, TypeStatic)

 

dsdt.dsl.zip

I don't understand, in this case the compiler expects length to be 0x00000000. Any ideas? Maybe because of arguments MinNotFixed and MaxFixed?

 

Change length manually from 0x7ac00000 to 0x00000000 and it will compile without errors.

Link to comment
Share on other sites

I don't understand, in this case the compiler expects length to be 0x00000000. Any ideas? Maybe because of arguments MinNotFixed and MaxFixed?

 

Change length manually from 0x7ac00000 to 0x00000000 and it will compile without errors.

Using 0x00000000 won't do much good. Replacing "MinNotFixed" with "MinFixed" however will solve the error (length should be correctly specified, as is) Fix the parameter and you are done.

Link to comment
Share on other sites

I don't understand, in this case the compiler expects length to be 0x00000000. Any ideas? Maybe because of arguments MinNotFixed and MaxFixed?

 

Change length manually from 0x7ac00000 to 0x00000000 and it will compile without errors.

 

Thank you oldnapalm.

Changing the length manually allow me to compile. System boots fine with un-patched dsdt.aml

Applied DTGP & GMA950 Desktop patches and again had to change the same line manually to compile.

Unfortunately on boot with patched dsdt.aml I get a plain grey screen when it gets to the log-in screen.

With an the earlier AppleIntelIntegratedFramebuffer 1.4.20 video acceleration & resolutions are fine, whether I have a DSDT or not. Defeats the purpose somewhat.

With the latest AppleIntelIntegratedFramebuffer 1.6.18 - Without dsdt, I have acceleration but no resolution choices

With dsdt - Grey screen

 

 

patcheddsdt.aml.zip

IORegistryExplorer_output.zip

 

com.apple.Boot.plist




Graphics Mode
1024x768x32
GraphicsEnabler
y
Kernel
legacy_kernel
Kernel Flags
arch=i386
PciRoot
1
Timeout
5

 

info.plist frame buffer 1.4.20




CFBundleDevelopmentRegion
English
CFBundleExecutable
AppleIntelIntegratedFramebuffer
CFBundleGetInfoString
AppleIntelIntegratedFramebuffer 1.4.20.28
CFBundleIdentifier
com.apple.driver.AppleIntelIntegratedFramebuffer
CFBundleInfoDictionaryVersion
6.0
CFBundleName
com.apple.driver.AppleIntelIntegratedFramebuffer
CFBundlePackageType
KEXT
CFBundleShortVersionString
1.4.20
CFBundleSignature
????
CFBundleVersion
4.2.0
IOKitPersonalities

	AppleIntelIntegratedFramebuffer

		CFBundleIdentifier
		com.apple.driver.AppleIntelIntegratedFramebuffer
		IOClass
		AppleIntelIntegratedFramebuffer
		IOMatchCategory
		IOFramebuffer
		IOPCIClassMatch
		0x03000000&0xff000000
		IOPCIMatch
		0x00008086&0x0000ffff
		IOProbeScore
		80000
		IOProviderClass
		IOPCIDevice
		IOSourceVersion
		1.4.20.28


OSBundleLibraries

	com.apple.iokit.IOGraphicsFamily
	1.3
	com.apple.kernel.iokit
	1.3

OSBundleRequired
Safe Boot


 

info.plist frame buffer 1.6.18




CFBundleDevelopmentRegion
English
CFBundleExecutable
AppleIntelIntegratedFramebuffer
CFBundleGetInfoString
AppleIntelIntegratedFramebuffer 1.6.18.18
CFBundleIdentifier
com.apple.driver.AppleIntelIntegratedFramebuffer
CFBundleInfoDictionaryVersion
6.0
CFBundleName
com.apple.driver.AppleIntelIntegratedFramebuffer
CFBundlePackageType
KEXT
CFBundleShortVersionString
1.6.18
CFBundleSignature
????
CFBundleVersion
6.1.8
IOKitPersonalities

	AppleIntelIntegratedFramebuffer

		CFBundleIdentifier
		com.apple.driver.AppleIntelIntegratedFramebuffer
		IOClass
		AppleIntelIntegratedFramebuffer
		IOMatchCategory
		IOFramebuffer
		IOPCIClassMatch
		0x03000000&0xff000000
		IOPCIPrimaryMatch
		0x25828086 0x25928086 0x27728086 0x27A28086
		IOProbeScore
		80000
		IOProviderClass
		IOPCIDevice
		IOSourceVersion
		1.6.18.18


NSHumanReadableCopyright
Copyright © 1999-2009 Apple Inc. All rights reserved.
OSBundleLibraries

	com.apple.iokit.IOACPIFamily
	1.2
	com.apple.iokit.IOGraphicsFamily
	1.3
	com.apple.iokit.IOPCIFamily
	1.1
	com.apple.kpi.bsd
	8.0.0
	com.apple.kpi.iokit
	8.0.0
	com.apple.kpi.libkern
	8.0.0
	com.apple.kpi.mach
	8.0.0
	com.apple.kpi.unsupported
	8.0.0

OSBundleRequired
Safe Boot


Link to comment
Share on other sites

@kirasir

 

actually it's "length = max - min + 1".

 

 

@pdave54

 

that's strange, for desktop GMA950 the DSDT patch should be enough, using default kexts. I saw the gray screen issue in laptop GMA950, solved with the "AAPL,HasPanel" property. I know you have a desktop, but you may try it anyway.

"AAPL,HasPanel", 
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00\n
}

GMA950_pdave54.txt

How many video outputs does your card have?

 

BTW, the package size in "GMA 950 desktop" patch was wrong, it was 0x1A, should be 0x06, but I believe it was not the problem.

 

EDIT: please see dutchhockeypro's post about the compilation error.

Link to comment
Share on other sites

Actually it's a bug :) will be fixed in next release.

 

DSDT_Editor.zip

Nice one, thanks! :)

 

Also, it would be great if you could fix the Load and Save windows, just make them a little bit OSX'y and user friendly. The most annoying feature bug at the moment is the Load Patch function that can't remember it's previous location, so everytime you want to load a patch it sends you home instead of your patches folder.

Link to comment
Share on other sites

Yes, I agree about the load and save dialogues, but they are Java default. In Windows they are identical to the system one, but in Mac OS they are that thing you see.

 

About load patch, it does remember the last used folder (at least it should) since the last release. It works fine here. Anyone else with this issue?

Link to comment
Share on other sites

Yes, I agree about the load and save dialogues, but they are Java default. In Windows they are identical to the system one, but in Mac OS they are that thing you see.

 

About load patch, it does remember the last used folder (at least it should) since the last release. It works fine here. Anyone else with this issue?

Yes , I have this problem,when I finish correct dsdt file and load patch ,it turn back again .So when finish modified ,I must copy one reload and apply patches .any ideas ? :)

Link to comment
Share on other sites

@kirasir

 

actually it's "length = max - min + 1".

 

 

@pdave54

 

that's strange, for desktop GMA950 the DSDT patch should be enough, using default kexts. I saw the gray screen issue in laptop GMA950, solved with the "AAPL,HasPanel" property. I know you have a desktop, but you may try it anyway.

"AAPL,HasPanel", 
Buffer (0x04)
{
 0x01, 0x00, 0x00, 0x00\n
}

GMA950_pdave54.txt

How many video outputs does your card have?

 

BTW, the package size in "GMA 950 desktop" patch was wrong, it was 0x1A, should be 0x06, but I believe it was not the problem.

 

EDIT: please see dutchhockeypro's post about the compilation error.

 

@oldnapalm Thank you for the time you have taken helping me solve this problem.

 

 

@dutchhockeypro And thank you , i used your suggestion in last compile.

 

As I said solved but I had one further hiccup which I will describe as it may help others with a similar problem.

 

Compiled with oldnapalm's script and dutchhockeypro's suggestion

 

Still got grey screen.

 

BTW my video card only has VGA out and monitor is 19" Benq LCD

 

Decided to attach a CRT monitor. On start had no signal, not even the Dell start screen.

Shut down computer, unplugged and removed bios battery (probably could just unpluged power cord) left for 1/2 hour.

Started, checked bios settings, CRT monitor now had signal. in single user, fsck-ed, and repaired permissions and caches......

Booted fine with dsdt.aml installed...restarted with LCD monitor..all good. Ran SnowLeopardGraphicsUpdate1.0..restart... all good

Thanks again.

Link to comment
Share on other sites

oldnapalm,

 

Well, This program could open one more than dsdt on the tabs and also could move devices in the tree, who knows, could automatically to rename the devices as a like real mac user choice: iMac, MacPro, macmini, macbook etc :D

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...