Jump to content

[GUIDE] Making a DSDT.aml for Dell XPS M1330, XPS M1530, and XPS M1730


  • Please log in to reply
1819 replies to this topic

#61
Brett Whinnen

Brett Whinnen

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 146 posts
  • Gender:Male
  • Location:Bne, AU
Just to add my findings on things...

The M1330 and M1530 match the MacBookPro4,1 more than the MBP5,1, but the MBP5,1 only hass the 6 P-states that match what the Dell's have natively. The MBP4,1 has 9 P-states, this can be modified by either adding extra PSS entries or by modifying ACPI_SMC_PlatformPlugin to only have 6 states for a MBP4,1.

C-States, the additions found by MasterChief are good, I've only just found the time to jump back onto the forum after heavy work and some holiday/vacation time.

I do have to say though a big THANKYOU for the findings of the extra IRQ entries to remove from the TMR and PIC (although I've only done the TMR at the moment) to get rid of the random USB IRQ conflicts.

I'm currently running no SSDT entries in my DSDT, but still have speedstep running fine. Just the old CStates error ;)


Cheers,

Brett

#62
jkbuha

jkbuha

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 201 posts

Just to add my findings on things...

The M1330 and M1530 match the MacBookPro4,1 more than the MBP5,1, but the MBP5,1 only hass the 6 P-states that match what the Dell's have natively. The MBP4,1 has 9 P-states, this can be modified by either adding extra PSS entries or by modifying ACPI_SMC_PlatformPlugin to only have 6 states for a MBP4,1.

C-States, the additions found by MasterChief are good, I've only just found the time to jump back onto the forum after heavy work and some holiday/vacation time.

I do have to say though a big THANKYOU for the findings of the extra IRQ entries to remove from the TMR and PIC (although I've only done the TMR at the moment) to get rid of the random USB IRQ conflicts.

I'm currently running no SSDT entries in my DSDT, but still have speedstep running fine. Just the old CStates error :)


Cheers,

Brett


Great to see you back Brett!
Looking forward to us working on an eventual solution for the C-States problem!

Cheers
jkbuha

#63
immo

immo

    Insanely Looking for Time to Hack

  • Members
  • PipPipPipPipPip
  • 285 posts
  • Gender:Male

Hi immo

I've created and successfully compiled my new DSDT.aml.
However, when I installed Chameleon, it didn't create a /Extra folder. I had to create it manually.

So I have three questions:

  • What directories/files should be in the /Extra folder?
  • Should I copy all the Extensions folder shipped with Chameleon 2.0 RC3 to /Extra/Extension on my machine? Or just some, or none?
  • There is no com.apple.Boot.plist in the /Extra folder (as I had to create it manually). Where can I get one from?
Thanks


/Extra should contain:
com.apple.Boot.plist
smbios.plist
DSDT.aml

/Extra/Extensions on mine contains:
fakesmc.kext
AppleACPIPS2Nub.kext & ApplePS2Controller.kext
IOATAFamily.kext
VoodooBattery.kext
VoodooHDA.kext

For the most part these kexts are from Superhai's boot cd. You can get the com.apple.Boot.plist off of there also. I didn't use any of the Chameleon kexts.
I got a more updated VoodooHDA here:
http://www.projectos...?...ic=355&st=0

I saw a patch that will apparently allow us to use the Snow Leopard IOATAFamily.kext here:
http://www.insanelym...p...t&p=1319072
but I haven't had the time to try it yet.

Great to see you back Brett!
Looking forward to us working on an eventual solution for the C-States problem!

Cheers
jkbuha


Likewise. Welcome!

#64
jkbuha

jkbuha

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 201 posts

I saw a patch that will apparently allow us to use the Snow Leopard IOATAFamily.kext here:
http://www.insanelym...p...t&p=1319072
but I haven't had the time to try it yet.


I did and it worked nicely - bring on 10.6.2!
Attached my own updated dsl with fix for anyone who needs it.

Just a reminder what mine contains:

- Dell XPS M1330 T8300 (warning: undervolted PSS settings!)
- Sound HDEF patch
- 8400GS 128MB
- LPC and SMBUS devices enabled
- Sleep, HPET and USB fixes [IRQ from TMR removed]
- Initial experimentation with C-states (to enable set to MP4,1 and patch ACPI_SMC_Plugin - message me for more info)

Cheers
jkbuha

Attached Files



#65
Brett Whinnen

Brett Whinnen

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 146 posts
  • Gender:Male
  • Location:Bne, AU

I did and it worked nicely - bring on 10.6.2!


The fix for the IOATAFamily works perfectly. Running the Vanilla kext again which is excellent!

I agree, bring on 10.6.2.

I might have to start work back on the C-states issue in the next couple of weeks when work slows down a bit.

I have to say though I looked at one of the new iMac 27" jobs today. Lovely and even the new magic mouse feels good in the hand. Just wish I could get a new desktop, my 1530 is staying on as the laptop as it runs OSX perfectly (well near it) and the screen resolution is better than the 15" MBP...

#66
overshoot

overshoot

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 120 posts
  • Gender:Male
  • Location:France
Hi Guys,

I can't find the PATA section in my DSDT file extracted from ubuntu 9.04.

Brett,

In which section did you add the ATA Patch?

Can you also post your last DSDT.aml please?

Thanks.
Josh.

#67
golden3159

golden3159

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts
Thanks a lot for the response immo, just some weird issues now. I've patched everything up with the patcher (can't believe I skipped the most important step!) and now I can boot without a kernel panic. Everything seems to work except for one thing that im not sure of: Speedstep /cpu management.

I install Coolbook but it shows 5 entries, but they all say "0 MHZ." I don't know if this means that something went wrong or if the software doesn't support SL? How else can I check if speedstep is working?

I have a feeling that it isn't working however....my machine seems to run hot when running OSX. The thread with the DSDT pacther says the following:

@All complaining about hotter CPU's with AppleIntelCPUPowerManagement: Guys there is no need to have this kext loaded all the time, if you get hotter CPU, just remove that kext and everything is ok. Why I added this to patcher is just for security reasons on update, since i still see many people without an Disabler.kext and they just blindly update and then complain about a kernel panic during the update process. So this is just to be more secure on updating.


It's my understanding that AppleIntelCPUPowerManagement is needed for speedstepping to work....so this seems to contradict what is mentioned above.

What should I do? I really want to know if speedstep is working before moving on to trying to cool my temps. Thanks.

#68
immo

immo

    Insanely Looking for Time to Hack

  • Members
  • PipPipPipPipPip
  • 285 posts
  • Gender:Male

Thanks a lot for the response immo, just some weird issues now. I've patched everything up with the patcher (can't believe I skipped the most important step!) and now I can boot without a kernel panic. Everything seems to work except for one thing that im not sure of: Speedstep /cpu management.

I install Coolbook but it shows 5 entries, but they all say "0 MHZ." I don't know if this means that something went wrong or if the software doesn't support SL? How else can I check if speedstep is working?

I have a feeling that it isn't working however....my machine seems to run hot when running OSX. The thread with the DSDT pacther says the following:

[b]

It's my understanding that AppleIntelCPUPowerManagement is needed for speedstepping to work....so this seems to contradict what is mentioned above.

What should I do? I really want to know if speedstep is working before moving on to trying to cool my temps. Thanks.


Coolbook works perfect under Snow Leopard, so your speed step likely isn't working. And you most definitely do need AppleIntelCPUPowerManagement for speed stepping and sleep. The statement that you quoted above only applies if your machine does NOT support the vanilla AppleIntelCPUPoewrManagement.kext (the case for many if not most machines), and with these DSDT patches ours do. I'm not sure what's wrong, but maybe you missed one or more of the SSDT files? Or the DropSSDT=Y boot flag?

#69
Brett Whinnen

Brett Whinnen

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 146 posts
  • Gender:Male
  • Location:Bne, AU

Hi Guys,

I can't find the PATA section in my DSDT file extracted from ubuntu 9.04.

Brett,

In which section did you add the ATA Patch?

Can you also post your last DSDT.aml please?

Thanks.
Josh.


Attached below (DSDT.dsl).

I put the code in two spots;

Just under:
Device (IDE1)            {                Name (_ADR, 0x001F0001)

And also just under:
Device (IDE0)            {                Name (_ADR, 0x001F0002)

Not sure if it is needed under the second one, but I took Julian's lead on that one.

Just note the following about my DSDT;
- NO SSDT entries, so if you use it make sure you don't have the DropSSDT=Y in Chameleon
- has the HPET and TMR IRQ fixes for USB
- has the IOATA fix for the CDROM
- has the SBUS entries (thanks Julian)
- has the extra USB entries to allow clean disconnects of USB devices during sleep
- has the Nvidia 8600M GT 256 card entries
- has the 'pretty text' additions for the Yukon NW controller

I still get speedstep working with this, just using the default PSS states, I also run my laptop as a MBP5,1. Obviously no C-States.

When I get some spare time I'll delve into trying to attempt C-States again...

Cheers
Brett

Attached File  DSDT.dsl.zip   16.5KB   208 downloads

#70
golden3159

golden3159

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts

Coolbook works perfect under Snow Leopard, so your speed step likely isn't working. And you most definitely do need AppleIntelCPUPowerManagement for speed stepping and sleep. The statement that you quoted above only applies if your machine does NOT support the vanilla AppleIntelCPUPoewrManagement.kext (the case for many if not most machines), and with these DSDT patches ours do. I'm not sure what's wrong, but maybe you missed one or more of the SSDT files? Or the DropSSDT=Y boot flag?


I did the whole process painstakingly twice after the first mishap - im pretty sure it's done all right. I was thinking - I thought there was some debug mode or something in Chameleon that you can use to check if the DSDT.aml is being loaded? I googled for it but didn't find anything.

I think I have my com.Apple.boot.plist right, here are the contents of that:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com...yList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Boot Banner</key>
<string>No</string>
<key>Graphics Mode</key>
<string>1280x800x32</string>
<key>Kernel</key>
<string>mach_kernel</string>
<key>Kernel Flags</key>
<string>arch=i386 DropSSDT=Y</string>
<key>Rescan</key>
<string>Yes</string>
<key>SMBIOS</key>
<string>rd(0,0)/Extra/smbios.plist</string>
<key>Theme</key>
<string>Default</string>
</dict>
</plist>


I also am not 100% positive about my SMBIOS file. Here is the contents of that:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com...yList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SMbiosvendor</key>
<string>Apple Inc.</string>
<key>SMbiosversion</key>
<string>MBP51.88Z.0074.B00.0810241236</string>
<key>SMboardmanufacter</key>
<string>Dell Inc.</string>
<key>SMboardproduct</key>
<string>XPS M1330</string>
<key>SMexternalclock</key>
<string>200</string>
<key>SMfamily</key>
<string>Mac</string>
<key>SMmanufacter</key>
<string>Apple Inc.</string>
<key>SMmaximalclock</key>
<string>2200</string>
<key>SMmemmanufacter_1</key>
<string>Dell Inc.</string>
<key>SMmemmanufacter_2</key>
<string>Dell Inc.</string>
<key>SMmempart_1</key>
<string>DDR2 SDRAM</string>
<key>SMmempart_2</key>
<string>DDR2 SDRAM</string>
<key>SMmemserial_1</key>
<string>00FF0000</string>
<key>SMmemserial_2</key>
<string>000736TU</string>
<key>SMmemspeed</key>
<string>667</string>
<key>SMmemtype</key>
<string>19</string>
<key>SMproductname</key>
<string>MacBookPro5,1</string>
<key>SMserial</key>
<string>XXXXXXXXXXXX</string>
<key>SMsystemversion</key>
<string>1.0</string>
<key>SMboardid</key>
<string>Mac-F42D86C8</string>
<key>SMboarduuid</key>
<string>00000000-0000-0001-8000-001E4C6405B5</string>
<key>SMmembankloc_1</key>
<string>BANK</string>
<key>SMmemdevloc_1</key>
<string>DIMM_A</string>
<key>SMmembankloc_2</key>
<string>BANK</string>
<key>SMmemdevloc_2</key>
<string>DIMM_B</string>
</dict>
</plist>


Does that look right to you? I have a Core 2 Duo T7500 2.20 GHZ CPU. and 3 GB of ram. Thanks again.

#71
Brett Whinnen

Brett Whinnen

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 146 posts
  • Gender:Male
  • Location:Bne, AU

i have similar issues i jsut made my dsdt file with NO nvidia patch since i dont need it i let chameleon handle the video no usb after sleep patch since i dont want sleep and no audio patch i let alone woodoohda to do that

issues i dont have speedstep coolbook shows nothing i did the newHpet with dsdt patcher with no errors

now i dont have nullcpu or voodootscsync no platformUUid
just

AppleACPIPS2Nub.kext VoodooBattery.kext
IOATAFamily.kext fakesmc.kext

and the voodoops2controler and voodoosdhc and voodoohda in the /S/L/E folder

smbios file with mac.5.1 and
key>SMexternalclock</key>
<string>200</string>

<key>SMmaximalclock</key>
<string>2000</string>

i just want speedstep to cool down my system :laser:

found this in dmesg

ACPI_SMC_PlatformPlugin::registerLPCDriver - WARNING - LPC device initialization failed: C-state power management not initialized

does it has anything to do with the speedstep?


Post up your DSDT and we can have a look at it (the dsl please).

The C-State error you have will not restrict P-states (speed step) from running. You probably have a PSS related error somewhere along the lines in the logs as well.

Cheers
Brett

#72
jkbuha

jkbuha

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 201 posts

but I took Julian's lead on that one.
Thanks Julian

Attached File  DSDT.dsl.zip   16.5KB   208 downloads


You're welcome!

Just updated to 10.6.2 and all I had to do was remove AppleHDA - works like a dream.

Three thoughts come to mind:

1) The ACPI_SMC_Plugin is radically different from 10.6.1 - anyone fancy a shot at trying to make it work for our M1330 and M1530s?
2) AppleHDA - is there any value (effort) in making this work for our 9228 as opposed to the VoodooHDA?
3) Anyone have the old (original) 10.6 IOATAFamily.kext as I've mistakenly deleted it and am now using the hacked version? :D

Cheers
jkbuha

#73
Brett Whinnen

Brett Whinnen

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 146 posts
  • Gender:Male
  • Location:Bne, AU

You're welcome!

Just updated to 10.6.2 and all I had to do was remove AppleHDA - works like a dream.

Three thoughts come to mind:

1) The ACPI_SMC_Plugin is radically different from 10.6.1 - anyone fancy a shot at trying to make it work for our M1330 and M1530s?
2) AppleHDA - is there any value (effort) in making this work for our 9228 as opposed to the VoodooHDA?
3) Anyone have the old (original) 10.6 IOATAFamily.kext as I've mistakenly deleted it and am now using the hacked version? :D

Cheers
jkbuha


On it's way via email (the IOATAFamily.kext that is).

I'm going to start having a look back over the C-State errors now that there is a big change in the ACPI_SMC. I do know that even without any SSDT entries in my DSDT I still get speedstep working just fine. Haven't delved any further yet.

Brett

#74
jkbuha

jkbuha

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 201 posts

On it's way via email (the IOATAFamily.kext that is).

I'm going to start having a look back over the C-State errors now that there is a big change in the ACPI_SMC. I do know that even without any SSDT entries in my DSDT I still get speedstep working just fine. Haven't delved any further yet.

Brett


Thanks got it - am writing this off the new (old!) 10.6 kext
Do let me know if you make any new discoveries and/or need any help on C-state discovery - in the meantime I'll go back to experimenting as well and will keep you posted on any progress!

Cheers
jkbuha

#75
golden3159

golden3159

    InsanelyMac Protégé

  • Members
  • Pip
  • 9 posts
Well...I figured out the problem. Apparently my SMBIOS.plist wasn't being loaded. I fixed the path and now speedstep seems to be working! Im just curious as to one thing however...my screen looks funny. There's 5 entries!

Posted Image

It seems to be listing all possible speed states. Aren't there supposed to be two entries, each giving a real-time view of the core speed? It sounds like it's only using one of my cores (the bottom labeled "information" is where the speeds are reflected). Or is this how the program normally functions? I honestly wouldn't know.

Other than that I have 3 things to work on:
-Find a working audio kext. I haven't found one that makes both my headphones AND speakers work. I don't need the mic or HDMI (although if would be nice to have HDMI out)
-trackpad kext that gives me scrolling (would really appreciate help with this one!)
-My keyboard works fine but can't be identified by OSX. As a result, my shortcuts don't work. Any help with that one?

Would appreciate some help here, thanks for all the solutions so far! I will also be posting my DSDT.aml shortly.

#76
immo

immo

    Insanely Looking for Time to Hack

  • Members
  • PipPipPipPipPip
  • 285 posts
  • Gender:Male

On it's way via email (the IOATAFamily.kext that is).

I'm going to start having a look back over the C-State errors now that there is a big change in the ACPI_SMC. I do know that even without any SSDT entries in my DSDT I still get speedstep working just fine. Haven't delved any further yet.

Brett



I need more time to experiment but I found something rather odd here.

I made my own DSDT without SSDT tables and as you said, Speed Step works. However, according to CoolBook, the P-States aren't quite correct. The fastest step is 2.6GHz even though my CPU maxes at 2.4GHz. Unsurprisingly it does not step to the highest step.

To try and correct this, I put back my old DSDT with the SSDT entries, and I got the same 2.6GHz highest step reported in CoolBook! I'm pretty sure that the CoolBook entries matched my SSDT power states before... Is it possible that the SSDT entries are now ignored in 10.6.2? I didn't have a lot of time to experiment so hopefully I didn't make a dumb-ass mistake. I'll experiment more when I get time.

#77
Brett Whinnen

Brett Whinnen

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 146 posts
  • Gender:Male
  • Location:Bne, AU

I need more time to experiment but I found something rather odd here.

I made my own DSDT without SSDT tables and as you said, Speed Step works. However, according to CoolBook, the P-States aren't quite correct. The fastest step is 2.6GHz even though my CPU maxes at 2.4GHz. Unsurprisingly it does not step to the highest step.

To try and correct this, I put back my old DSDT with the SSDT entries, and I got the same 2.6GHz highest step reported in CoolBook! I'm pretty sure that the CoolBook entries matched my SSDT power states before... Is it possible that the SSDT entries are now ignored in 10.6.2? I didn't have a lot of time to experiment so hopefully I didn't make a dumb-ass mistake. I'll experiment more when I get time.


Mine has always referenced the highest power state as 2.6GHz even with 10.6.0 and 10.6.1. I didn't do as much testing under Leo so can't comment on that :D

#78
Chrysaor

Chrysaor

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 523 posts
  • Gender:Male
Use VoodooMonitor or MSR Tools to test speedstep, Coolbook isn't reliable.

#79
overshoot

overshoot

    InsanelyMac Geek

  • Members
  • PipPipPip
  • 120 posts
  • Gender:Male
  • Location:France

Mine has always referenced the highest power state as 2.6GHz even with 10.6.0 and 10.6.1. I didn't do as much testing under Leo so can't comment on that :D


Hi All,

I'm using Brett's DSDT for my XPS 1530 as he has the same CPU as mine but i can't get speedstep working correctly.

My CPU frequency is stuck at 800 Mhz at first boot and never goes faster.

If i put my hack to sleep it then get stuck at 1200Mhz.

VoodooMonitor shows about 16 Pstates available... see screenshots please.

I've removed dropssdt from my boot plist but no more speedstep.

Also, sleep works sometimes and sometimes my hack reboots itself.

I'm starting getting crazy trying to make speedstep works.

If someone can help me... that would be very friendly.

I'm also using Macbook pro4.1 for my smbios plist.

Last thing is that i'm still using bios A09 but i can't install the new bios as i didn't have anymore windows on my laptop. I'm starting to think that this is the problem as i heard you were all using A12 bios, right?

Thanks in advance.
Josh.

Attached Files



#80
timmyj9

timmyj9

    InsanelyMac Protégé

  • Members
  • Pip
  • 24 posts
overshoot: locked at 800MHz means that your P-states don't match your platform change the number of p-states to 9 or larger in dsdt or use macbookpro5,1

got a new DSDT fix thanks to what masterchiefs been doing...
changes involve adding MCDP method (replacement of DTGP - just kept both for now)
adding FRWR device - (removes the firewire runtime power conservation error)
and a link for this device in the GPE scope (_L19)
also my previous DSDT on the other topic didn't have the PATA IOATA panic fix, so thats in there also

for the FRWR fix - should work in M1530 i'm not sure about M1330 but i'd assume it'd be very similar may have to change the _ADR value i'm not sure - so yeah under
scope _GPE
added
[codebox] Method (_L19, 0, NotSerialized)
{
Notify (\_SB.PCI0.PCIB.FRWR, Zero)
}[/codebox]

and under the device with Name (_ADR, 0x001E0000) you can remove CRD0 aswell
( i've renamed a lot of my devices with the apple ones just to make things easier i'm not sure if this is one of the ones that i've changed or not)


[codebox] Device (FRWR)
{
Name (_ADR, 0x00090000)
Name (_GPE, 0x19)
Method (_DSM, 4, NotSerialized)
{
Store (Package (0x02)
{
"fwhub",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
}
}, Local0)
MCDP (Arg2, RefOf (Local0))
Return (Local0)
}
}[/codebox]

and the MCDP method around the DTGP one

[codebox] Method (MCDP, 2, NotSerialized)
{
If (LEqual (Arg0, Zero))
{
Store (Buffer (One)
{
0x03
}, Arg1)
}
}[/codebox]

hopefully this is of some use
my decompiled DSDT is also attached for further reference
is specific to my config (m1530, t9500 etc) but yeah take what you want from it

Attached Files

  • Attached File  DSDT.zip   13.03KB   61 downloads






1 user(s) are reading this topic

1 members, 0 guests, 0 anonymous users


© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy