Jump to content

[GUIDE]: The MacBookPro18 Project


  • Please log in to reply
498 replies to this topic

#341
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK
Guys, could you please check if you have hibernate working. Mine seems to be broken.
I can only use Sleep Only mode. It doesn't wake up from Hibernate. Just before it appears to be waking up, it goes to sleep again.

BTW, the battery driver you guys mentioned above seems to work fine.

#342
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

@Guys, I made some progress on the native brightness. But I can't change the actual brightness. @Valv, can you please take a look at my post.

Ok, I got the native brightness working, auto dimming etc. ;)

This code is for the 9600M GT. I slightly modified it according to the values from MacbookPro5,1, which has also 9600M GT.
Method (_DSM, 4, NotSerialized)                    {                        Store (Package (0x32)                            {                                "@0,AAPL,boot-display",                                 Buffer (Zero) {},                                 "@0,backlight-control",                                 Buffer (0x04)                                {                                    0x01, 0x00, 0x00, 0x00                                },                                 "@0,pwm-info",                                 Buffer (0x14)                                {                                    /* 0000 */    0x01, 0x14, 0x00, 0x64, 0xA8, 0x61, 0x00, 0x00,                                     /* 0008 */    0x08, 0x52, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00,                                     /* 0010 */    0x00, 0x04, 0x00, 0x00                                },                                 "AAPL,backlight-control",                                 Buffer (0x04)                                {                                    0x01, 0x00, 0x00, 0x00                                },                                 "AAPL,aux-power-connected",                                 Buffer (0x04)                                {                                    0x01, 0x00, 0x00, 0x00                                },                                 "@0,built-in",                                 Buffer (Zero) {},                                 "@0,compatible",                                 Buffer (0x0B)                                {                                    "NVDA,NVMac"                                },                                 "@0,device_type",                                 Buffer (0x08)                                {                                    "display"                                },                                 "@0,name",                                 Buffer (0x0F)                                {                                    "NVDA,Display-A"                                },                                 "@0,use-backlight-blanking",                                 Buffer (Zero) {},                                 "@1,can-hot-plug",                                 Buffer (Zero) {},                                 "@1,compatible",                                 Buffer (0x0B)                                {                                    "NVDA,NVMac"                                },                                 "@1,device_type",                                 Buffer (0x08)                                {                                    "display"                                },                                 "@1,name",                                 Buffer (0x0F)                                {                                    "NVDA,Display-B"                                },                                 "NVCAP",                                 Buffer (0x14)                                {                                    /* 0000 */    0x05, 0x01, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,                                     /* 0008 */    0x06, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x0B,                                     /* 0010 */    0x00, 0x00, 0x00, 0x00                                },                                 "NVPM",                                 Buffer (0x1C)                                {                                    /* 0000 */    0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0008 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0010 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0018 */    0x00, 0x00, 0x00, 0x00                                },                                 "VRAM,totalsize",                                 Buffer (0x04)                                {                                    0x00, 0x00, 0x00, 0x20                                },                                 "device_type",                                 Buffer (0x0D)                                {                                    "NVDA,GeForce"                                },                                 "model",                                 Buffer (0x18)                                {                                    "nVidia GeForce 9600M GT"                                },                                 "rom-revision",                                 Buffer (0x26)                                {                                    "nVidia GeForce 9600M GT OpenGL Engine"                                },                                 "AAPL,HasPanel",                                 Buffer (0x04)                                {                                    0x01, 0x00, 0x00, 0x00                                },                                 "AAPL01,DualLink",                                 Buffer (0x04)                                {                                    0x01, 0x00, 0x00, 0x00                                },                                 "@0,EDID",                                 Buffer (0x80)                                {                                    /* 0000 */    0x00, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00,                                     /* 0008 */    0x4C, 0xA3, 0x4D, 0x31, 0x00, 0x00, 0x00, 0x00,                                     /* 0010 */    0x00, 0x12, 0x01, 0x03, 0x80, 0x23, 0x14, 0x78,                                     /* 0018 */    0x0A, 0x87, 0xF5, 0x94, 0x57, 0x4F, 0x8C, 0x27,                                     /* 0020 */    0x27, 0x50, 0x54, 0x00, 0x00, 0x00, 0x01, 0x01,                                     /* 0028 */    0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,                                     /* 0030 */    0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x1D, 0x36,                                     /* 0038 */    0x80, 0xA0, 0x70, 0x38, 0x1E, 0x40, 0x30, 0x20,                                     /* 0040 */    0x25, 0x00, 0x61, 0xC6, 0x10, 0x00, 0x00, 0x19,                                     /* 0048 */    0x00, 0x00, 0x00, 0x0F, 0x00, 0x00, 0x00, 0x00,                                     /* 0050 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x20, 0x91, 0x02,                                     /* 0058 */    0x64, 0x00, 0x00, 0x00, 0x00, 0xFE, 0x00, 0x53,                                     /* 0060 */    0x41, 0x4D, 0x53, 0x55, 0x4E, 0x47, 0x0A, 0x20,                                     /* 0068 */    0x20, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xFE,                                     /* 0070 */    0x00, 0x31, 0x36, 0x30, 0x48, 0x54, 0x30, 0x33,                                     /* 0078 */    0x2D, 0x30, 0x30, 0x31, 0x0A, 0x20, 0x00, 0x60                                },                                 "AAPL,slot-name",                                 Buffer (0x0F)                                {                                    "PCI Slot@1,0,0"                                },                                 "reg",                                 Buffer (0x78)                                {                                    /* 0000 */    0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0008 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0010 */    0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x01, 0x02,                                     /* 0018 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0020 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,                                     /* 0028 */    0x14, 0x00, 0x01, 0x42, 0x00, 0x00, 0x00, 0x00,                                     /* 0030 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0038 */    0x00, 0x00, 0x00, 0x10, 0x1C, 0x00, 0x01, 0x02,                                     /* 0040 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0048 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02,                                     /* 0050 */    0x24, 0x00, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,                                     /* 0058 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0060 */    0x80, 0x00, 0x00, 0x00, 0x30, 0x00, 0x01, 0x02,                                     /* 0068 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,                                     /* 0070 */    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00                                }                            }, Local0)                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))                        Return (Local0)                    }

Search for your PWR device and above it, paste the following.
Device (PNLF)
		{
			Name (_HID, EisaId ("APP0002"))
			Name (_CID, "backlight")
			Name (_UID, 0x0A)
			Name (_STA, 0x0B)
		}

Look for your Device (LCD) and add Name (_HID, EisaId ("LCD1234")) right after the first line. It should be look like the following.
Device (LCD)
					{
						Name (_ADR, 0x0118)
						Name (_HID, EisaId ("LCD1234")) // Added
						.....

Next install GenericBrightness.kext to E/E, repair permission and restart. Use FN+Page up and FN+Insert to change the brightness. You could also use Display Preferences to change the brightness. Right now, I am using AppleACPIBatteryManager and BatteryPollingPeriodOverride is set to 10, which means that OSX will dim the brightness after 10 seconds once you unplug the power. You can change this number of course.

I don't have an HDMI device to test it if it gives KP. So please test this if you do so.

What's next? ;)

#343
19gc88

19gc88

    InsanelyMac Protégé

  • Members
  • PipPip
  • 88 posts
  • Gender:Male
  • Location:Italy
Hi everyone,

as jbraddock knows i am an hp hdx (18, 1080EL) user, i installed osx by iAtkos S3 v2 distro.
I have fixed almost everything, but i have 3 little questions that i hope you can help me with:

1) is that real that to make the software update i have to follow this procedure in this order:

1) Remove sleepenabler
2) Make software update
3) On reboot, start with -f
4) Reinstall sleepenabler.kext
5) Reboot normally


2) what are LegacyHdx18.kext and AppleACPIPS2Nub.kext? I mean, what are their functions?

3) cannot find out a way to solve sleep problems. There's a way to fix without reinstalling the system?

#344
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

Hi everyone,

as jbraddock knows i am an hp hdx (18, 1080EL) user, i installed osx by iAtkos S3 v2 distro.
I have fixed almost everything, but i have 3 little questions that i hope you can help me with:

1) is that real that to make the software update i have to follow this procedure in this order:

2) what are LegacyHdx18.kext and AppleACPIPS2Nub.kext? I mean, what are their functions?

3) cannot find out a way to solve sleep problems. There's a way to fix without reinstalling the system?

You use SleepEnabler because you don't use native power management. First of all, go to this topic. MaLd0n created an auto patcher for HDX 18, which includes almost all the necessary fixes i.e usb, graphic cards, power management. Once you have patched your DSDT, please upload it here. I'll do a few more fixes and then I'll tell your which kexts you should use.

But before that, while uploading your DSDT file, you must tell me which kexts you did install while using iAtkos. We could easily replace your Extra folder but did you install anything to System > Library> Extensions?

This is of course the first step as I am sure later you will want to install Snow Leopard from an retail DVD with the kexts and DSDT file you'll be provided, which is actually what you must do in the long run.

Do let me know when your DSDT file is ready.

Edit: I shared the new fixes with MaLd0n so I am sure he'll update the patcher soon. If so, you will not have to upload your DSDT file so I can fix it.
If you know how to patch DSDT file then please do so.

In any case, do let me know the result.

#345
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK
Ok, I have two good and a bad news for you :)

First, I have found two perfect fixes for our HDX in Ubuntu forum. One is about the thermal zone, which prevents any os other that Windows 7 and Vista to access thermal zone (I don't know the actual terminology, sorry) properly. With this new fix, the fan seems more stable and quite. Temperature decreases slightly. Second fix is about the hard disk problem which occurs while resuming from suspend. Again, this happens while using a different OS. They are a bit long. I'll share these fixes later.

Secondly, I have fixed the black screen issue on wake when sleep mode 3 is used. Apparently, all we have to do is to apply PTS shutdown fix. Open up your DSDT file and locate Method (_PTS, 1, NotSerialized), right after the first bracket add the following.
If (LEqual (Arg0, 0x05)) {}
		Else
		{

Finally, add a } at the end of Method (_PTS, 1, NotSerialized). So you'll add up with the following.
Method (_PTS, 1, NotSerialized)    {        If (LEqual (Arg0, 0x05)) {}        Else        {            Store (Zero, \_SB.PCI0.LPC.EC0.RFLE)            Store (0xE4, DBGD)            TRAP (TRTI, 0x21)            TRAP (TRTI, 0x22)            Store (0x90, DBGD)            TRAP (TRTI, 0x21)            If (LEqual (Arg0, 0x04))            {                CMSW (0x6E, 0x6E)            }            Store (0x91, DBGD)            TRAP (TRTI, 0x21)            If (LEqual (Arg0, 0x03))            {                If (ECOK)                {                    Store (KBWK, \_SB.PCI0.LPC.EC0.PSKB)                    Store (MUWK, \_SB.PCI0.LPC.EC0.PSTP)                }            }            Else            {                If (ECOK)                {                    Store (Zero, \_SB.PCI0.LPC.EC0.PSKB)                    Store (Zero, \_SB.PCI0.LPC.EC0.PSTP)                }            }            Store (0x92, DBGD)            TRAP (TRTI, 0x21)            If (ECOK)            {                Store (LAWK, \_SB.PCI0.LPC.EC0.PWOL)            }            Store (0x93, DBGD)            TRAP (TRTI, 0x21)            \_SB.PCI0.SBUS.SWRB (0x38, 0x20, Zero)            \_SB.PCI0.SBUS.SWRB (0x38, 0x22, 0xC0)            Store (0x94, DBGD)            TRAP (TRTI, 0x21)        }    }

Bad news is that there is still no audio after sleep. I am sure we'll fixed this issue too.

Manmal, Valv, where are you guys? I started to feel like I am the only one using HDX.

Thank God for giving me another reason for postponing buying a new Macbook Pro. Once I've purchased a SSD drive, that will be another reason. :)

#346
manmal

manmal

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts

... Manmal, Valv, where are you guys? I started to feel like I am the only one using HDX.

Thank God for giving me another reason for postponing buying a new Macbook Pro. Once I've purchased a SSD drive, that will be another reason. :)


Great work jbraddock!!! I still have the hdx and it is my main laptop! The audio after sleep using applehda is our main priority ... voodoohda is not the best , expecially for kp at startup sometimes. Perhaps there is a method in dsdt for preparing sleep or for awake ... i noticed somethng strange also in ethernet when awaking with applehda .. plz try to have an ethernet cable connected to a network and see if after sleep you have connection. perhaps there is something we are missing in dsdt after sleep ... or perhaps it's the legacy not perfectly made for our codec.
About creating legacyhda , did you do by yourself from verbs (from linux codec_dump)? If yes, may you explain me how you did in detail ? I need to make a legacy file for another codec of another computer i have.
Thanks! And let's keep the great work active up !! We have an almost perfect hak! :)
Mal

#347
vicentj

vicentj

    InsanelyMac Protégé

  • Members
  • Pip
  • 40 posts

DSDT Hacks



Ethernet

This hack can help us get rid of an other kext. Reload your DSDTable and search for Device (EXP4), and straight above this one there should be the famous Ethernet card section. So we inject this code at its end, like this

                   Method (_DSM, 4, NotSerialized)
{
Store (Package (0x08)
{
"AAPL,slot-name",
Buffer (0x0F)
{
"PCI Slot@3,0,0"
},

"built-in",
Buffer (One)
{
0x01
},

"device_type",
Buffer (0x09)
{
"Ethernet"
},

"name",
Buffer (0x24)
{
"Realtek RTL8111/8168B PCI-E Gigabit"
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}
}
}

Device (EXP4)
{ _linenums:0'>Method (_PSW, 1, NotSerialized) { If (LGreaterEqual (MCHD, 0x04)) { Store (Arg0, LAWK) } } <strong class='bbc'> Method (_DSM, 4, NotSerialized) { Store (Package (0x08) { "AAPL,slot-name", Buffer (0x0F) { "PCI Slot@3,0,0" }, "built-in", Buffer (One) { 0x01 }, "device_type", Buffer (0x09) { "Ethernet" }, "name", Buffer (0x24) { "Realtek RTL8111/8168B PCI-E Gigabit" } }, Local0) DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0)) Return (Local0) }</strong> } } Device (EXP4) {
Take care that the device we injecting to is named Device (PXSX). And since there is another device with the same name (more probably it is the wi-fi card), don't do a search for that one, instead search for Device (EXP4) like we said above. This way u are sure it is the good one to edit. If for any reason, your DSDTable is not the same as mine, u can differentiate those two devices by that string in blue
RTLD, PCI_Config, Zero, 0x02)
Field (PXCS, AnyAcc, NoLock, WriteAsZeros) _linenums:0'>Device (PXSX) { Name (_ADR, Zero) OperationRegion (<strong class='bbc'>RTLD</strong>, PCI_Config, Zero, 0x02) Field (PXCS, AnyAcc, NoLock, WriteAsZeros)
seems to reference a "Realtek" device. If we have not the same LAN cards look for something there that resembles to the name of the manufacturer of your card. Remove the r1000.kext or whatever it is named and reboot. To be sure it worked (when u cannot test connection), go to the "System Profiler" and tick on "PCI Cards". Once there, u should find something like the picture below

And now up to fine tuning. bring "System Preferences" forth, go to "Network", select your Ethernet card and push "Advanced" (bottom rights). Now click on last tab "Ethernet". Once there, change Configuration to "manually", then change Speed to 1000baseT and Duplex to full-duplex keeping the MTU on Standard (1500). This way you gain about additional 30Mbs.

It still depends on the router speed though.


hello valv,
you can put your full DSDT?, I put the lan RTL8111/8168B but dont have the Driver? Whats is the problem? Can you help me?
Thaks a lot

Attached Files

  • Attached File  8111.jpg   202.45KB   44 downloads


#348
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

Great work jbraddock!!! I still have the hdx and it is my main laptop! The audio after sleep using applehda is our main priority ... voodoohda is not the best , expecially for kp at startup sometimes. Perhaps there is a method in dsdt for preparing sleep or for awake ... i noticed somethng strange also in ethernet when awaking with applehda .. plz try to have an ethernet cable connected to a network and see if after sleep you have connection. perhaps there is something we are missing in dsdt after sleep ... or perhaps it's the legacy not perfectly made for our codec.
About creating legacyhda , did you do by yourself from verbs (from linux codec_dump)? If yes, may you explain me how you did in detail ? I need to make a legacy file for another codec of another computer i have.
Thanks! And let's keep the great work active up !! We have an almost perfect hak! :P
Mal

I am not really sure if it is something related to the DSDT code as I have examined tens of DSDT codes to see if they have something different in terms of HDEF. I believe the problem is the way that our Legacy kext is created and also weird enough is that I have never seen a person who uses AppleHDA and still runs into no audio after sleep issue.

So, first we need to find out what might cause this.

BTW, I'll share but DSDT code so you can take a look at it with DiffMerger and apply the hacks I'd mentioned above.

hello valv,
you can put your full DSDT?, I put the lan RTL8111/8168B but dont have the Driver? Whats is the problem? Can you help me?
Thaks a lot

You should have had network connection even without that DSDT code. It only tweaks it.
Did you try this driver? May be your network card is not completely supported.

#349
vicentj

vicentj

    InsanelyMac Protégé

  • Members
  • Pip
  • 40 posts

You should have had network connection even without that DSDT code. It only tweaks it.
Did you try this driver? May be your network card is not completely supported.


OK Thanks

#350
manmal

manmal

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts
Hi JBraddock!
i still have such probs also after your new dsdt mods (black screen and nvidia)... just a clue... Have you got your system as MacBookPro5,5 or 5,1 ?
I have the suspect that our battery does not go well because macbookpro5,x uses smartbatteries, not old-style batteries like our laptops. Do you think power management may be better using it as macbookpro older versions?
I know MacBookPro5,4 - 5,4 and newer have better power management , speedstep and so on (more recent cpus supported) but perhaps it fails on battery side.
It is just a clue... i may be wrong.
And which bootloader are you using ? Latest AnVal or chameleon?
Mal

#351
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

Hi JBraddock!
i still have such probs also after your new dsdt mods (black screen and nvidia)... just a clue... Have you got your system as MacBookPro5,5 or 5,1 ? I have the suspect that our battery does not go well because macbookpro5,x uses smartbatteries, not old-style batteries like our laptops. Do you think power management may be better using it as macbookpro older versions?
I know MacBookPro5,4 - 5,4 and newer have better power management , speedstep and so on (more recent cpus supported) but perhaps it fails on battery side.
It is just a clue... i may be wrong.
Mal

Can you please send me your DSDT and ioreg dump?

I am using AnVaL to generate C and P States and remember having problems with MacBookPro5,4.
I am using MacBookPro5,5.
I have never tried 5,1 actually but what you'd said makes sense.

But first let's wait for the new battery kext to see what it brings to the table.

#352
manmal

manmal

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts

Can you please send me your DSDT and ioreg dump?

I am using AnVaL to generate C and P States and remember having problems with MacBookPro5,4.
I am using MacBookPro5,5.
I have never tried 5,1 actually but what you'd said makes sense.

But first let's wait for the new battery kext to see what it brings to the table.


Hi, thanks for your reply!
As soon as i will have my hdx18 in my hands (in a couple days i guess) i will send you my ioreg and my dsdt ...

Mal

#353
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK
Ok Things get better :(

I don't know if your touchpad does support multitouch but mine doesn't. But it can be emulated as I did learn. Here is the result.
Two finger scrolling, tapping, clicking, two finger clicking etc. The only downside I could find is that touchpad gets greasy too easily. Besides, you don't have to use multi touch feature. Side scrolling alone is working fine. Keyboard functions in the same ways it did before; touch button, fn shortcut etc.

The optimum settings I could find are below.

Attached File  Screen_shot_2011_03_05_at_19.40.28.png   44.97KB   65 downloads

Attached File  Screen_shot_2011_03_06_at_16.56.53.png   45.31KB   38 downloads

Next is the isight camera. It was already being reported as isight but I did take it a step further and now Apple is reported as the vendor.

Attached File  Screen_shot_2011_03_06_at_16.55.48.png   21.03KB   29 downloads

Next is the bluetooth. It was already working but it was being reported as HP Integrated Module.

Attached File  Screen_shot_2011_03_06_at_16.56.12.png   33.49KB   24 downloads
Attached File  Screen_shot_2011_03_06_at_16.56.02.png   27.21KB   23 downloads

You can now turn on/off the bluetooth device. I don't know if it does it physically or it is just a soft turn on/off.
Attached File  Screen_shot_2011_03_06_at_17.04.52.png   30.51KB   13 downloads

I think I am the only one using Atheros 9280 but still I have another fix for it. It also has Apple as the vendor and uses the same ids that a real mac does.

In the next couple of days I'll share my experiences. Stay tune!

#354
manmal

manmal

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts

Can you please send me your DSDT and ioreg dump?
...


Hi JBraddock!
Here it is my dsdt and my ioreg dump in attachment!
Thanks!
Mal

Attached Files



#355
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

Hi JBraddock!
Here it is my dsdt and my ioreg dump in attachment!
Thanks!
Mal

Manmal, I did take a look at your files and it seems that you didn't apply native battery fix quite right. I believe this might be the reason you having problem with battery kext. Also, you shouldn't be using legacy ACPI_SMC_PlatformPlugin anymore with the recent version of AnVaL. It might give you random KP on boot. If you are still having black screen on wake, it means that we in fact need Sata fixes as well.

I'll share my Extra folder soon. You can use my DSDT file right away. DSDT files of HDX 16 and HDX 18 are identical.

#356
manmal

manmal

    InsanelyMac Sage

  • Members
  • PipPipPipPipPipPip
  • 435 posts

Manmal, I did take a look at your files and it seems that you didn't apply native battery fix quite right. I believe this might be the reason you having problem with battery kext. Also, you shouldn't be using legacy ACPI_SMC_PlatformPlugin anymore with the recent version of AnVaL. It might give you random KP on boot. If you are still having black screen on wake, it means that we in fact need Sata fixes as well.

I'll share my Extra folder soon. You can use my DSDT file right away. DSDT files of HDX 16 and HDX 18 are identical.


thanks for sharing your updated extra folder!!
really appreciated and really useful (to understand a lot of things)!
mal

#357
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

thanks for sharing your updated extra folder!!
really appreciated and really useful (to understand a lot of things)!
mal

Sure manmal. I'll share it soon.

I have been trying a new thermal zone fix, a better graphic powermanagement kext, which will reduce the fan noise of GPU (hopefully) and also a new trackpad kext which will use the default trackpad preferences instead of a third party one. Two finger scrolling, edge scrolling, two finger click, tapping, dragging, horizontal scrolling etc. all working.

#358
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK

== Work In Progress ==


== This Post Is Not Finished Yet. Please Come Back Again ==



Hi guys,

It is time to update this topic and gather all of the information in one place. I might not be able to give response to every single question during the next couple of months so it is better off sharing all of the fixes I've found so far. I will update this post so far as I've found something new. I am sure Valv will incorporate these updates into the first page when he has enough time.

I have been working on solving the major problems that most of us going through and I am happy to tell you that I was able to fix most of the problems including black screen on wake and audio loss after sleep.

Here is the change log of the fixes that I've found in addition to the ones in the first page. Credits to those incredible guys who are making the OSX dream a reality for us will be given once this post has been completed.

Credits

Changelog

Please use Kext Wizard to repair permissions.

Friday, 6 May 2011
* Volume control is now working with VoodooHDA. Mute still doesn't work.
* New Firewire Hack. Not tested.
* New Sata Fix. We don't need AHCIPort.kext anymore.
* The size of the DSDT file is much smaller. I removed unused devices. (Hope I didn't break anything)
* SMC version in FakeSMC.kext was corrected.
* EDID value is replaced with that of your panel. I am not sure this does affect the functionality though.
* Removed PCI Slot codes from Ethernet and Firewire as even real the mac doesn't have those. They slow down boot process.
* A new Chameleon theme by Mald0n. Change SnowKitty in boot.plist to Default if you want to try.
* A missing code for battery was added. I am not sure it affect the functionality.
* Applied some additional DSDT code for 9600M GT based on the values from real the mac. I haven't try HDMI with these fixes. I am not sure it affects the functionality. Test it please.
* CPU2 and CPU3 codes were removed from Scope (_PR).
* NO Bluetooth injector anymore. The only reason I've tried an injector is to be able to wake computer via a bluetooth device. But, it didn't work with my new wireless mighty mouse. Additionally, with an injector, I had problem with connection and sleep. When I removed the injector, everything works much better. Mighty Mouse gets recognised in login window and connection after sleep is much faster. So, please remove bluetooth injector from LegacyHDX18.kext if you using one. You should only have iSight injector.
* Reverted back to the keyboard and trackpad kexts in the first post. If you boot into x64, it will give you multitouch gestures.

Tuesday, 15 March 2011
- VoodooHDA was patched for HDMI audio and now HDMI audio is properly detected. It is working.
- New experimental kexts for card reader. Reported working.
- E-Sata: reported as working.

Thursday, 10 March 2011
- Fix for black screen on wake when sleep mode 3 is used. This fix includes PTS Shutdown fix and Sata fixes mentioned below.
- A new kext for graphic power management. The values in the older one were for Mac Pro. Power management is better now.
- A proper smbios.plist for MacBookPro5,5. Model id is now detected on boot.
- Legacy ACPI_SMC_PlatformPlugin is removed from legacy kext. It will give random KP on boot when used. With the recent version of AnVaL & the above mentioned smbios.plist it is not needed anymore.
- FakeSMC was edited to update SMC Version to the latest one for MacBookPro5,5.
- Fixes for Sata issues which might affect wake from sleep.
- Update to keyboard & trackpad kexts. The latter one enables multitouch gestures and uses vanilla trackpad preference. We don't need AppleACPIPS2Nub.kext anymore.
- Recent version (2.7.2) of VoodooHDA is modified for IDT 92HD71B7.
- Fix for a issue that will cause HDX 16 users to lose C-States randomly. a.k.a CMOS Reset fix.
- DSDT tweak for Atheros 9280, which manipulates the sub vendor id. Apple is now seen as the vendor. This trick might be needed for 10.6.7.
- Legacy iSight kext is updated. Apple is now reported as the vendor.
- A new injector for Bluetooth which enables turn on/off option from menu bar. Better driver support.
- Update to 9600M GT fix in the first page which enables us to change brightness.
- Device (PNLF) and Name (_HID, EisaId ("LCD1233")) were added to DSDT. They are needed for brightness together with GenericBrightness kext.
- In addition to the updated 9600M GT injector, an update to EDID value of HDX 16, which is different than that of HDX 18. Not sure if it affects the performance though.
- New battery kext, AppleACPIBatteryManager, and DSDT fix for battery.
- A tweak to increase the resolution of new Multitouch Synaptics Trackpad. It is much faster now.
- SnowKitty theme is now compatible with Chameleon RC5. Overlapping issue was solved.
- Update to SBUS device fix in the first page. The one in the first page will not load the required kexts.
- Update to Firewire device fix in the first page to remove an error log from Console at the expense of losing hot plug capability. I don't use Firewire so... See below Known Issue to see how to get it back.
- A new fix for Thermal Zone, which makes fan management slightly better.
- Bootloader was updated to AnVaL 5.1.4
- com.apple.Boot.plist was updated according to the latest version of AnVaL
- Kexts under Extra folder were updated and most of them now have OSBundleRequired = Root value. To my observations, on some occasion, this fixes some permissions problems.


Working

Speed Step: (AnVaL & DSDT) Native C and P States. Throttling and fan management is good.
Shutdown & Restart: (AnVaL) Working.
Graphics Card: (DSDT) Full QE/CI. HDMI & Dual display. Vanilla power management.
Sound: (VoodooHDA 2.7.2 modified for IDT 92HD71B7) Working without any major problem. No more KP (Hopefully) See below, Known Issues.
Keyboard: (Voodoo Keyboard) Working. Multimedia buttons & FN Shortcuts.
Trackpad: (Voodoo Trackpad) Working. Two finger, horizontal, vertical and edge scrolling, two finger and one finger clicking, tapping, dragging with vanilla trackpad preference.
Wifi: (Vanilla & DSDT)Working. Intel 5100 was replaced with HP Atheros 9280. Also a trick was used to change the device id to that of Apple.
Sleep/Wake: (DSDT) Working. All sleep modes are working.
Auto Sleep: (Vanilla) Working.
Ethernet: (Vanilla & DSDT) Working. Full duplex.
Battery: (AppleACPIBatteryManager & DSDT) Working. Auto dimming on battery. Correct calculations.
Brightness: (GenericBrightness) Working. Auto dimming on battery.
Sata/AHCI: (DSDT) Vanilla & Working.
Usb Devices: (DSDT) Working.
Webcam: (Vanilla & Legacy iSight) Working. Seen as iSight.
Bluetooth: (Vanilla) Working.
Firewire and E-Sata: (Vanilla & DSDT) Working
DVD Drive: (Vanilla) Working.
Card Reader: (VoodooSDHC.kext -64 Bit)Working.
HDMI Audio: (VoodooHDA 2.7.2 modified for 9600M GT) Working. Details coming.

Not Working

The obvious ones: Finger print reader, digital tv turner, remote control, IR Receiver, Blue Ray Driver.

Need Testing or Improving

Firewire: If you have a Firewire device please test it and report back.
Brightness and KP: It is possible that you might have kernel panic when plug or unplug HDMI cable due to the brightness. Please test this and report back.

Known Issues

VoodooHDA: The new kext is way better than the one you guys have been using for a while shared in this topic. I have never had any kind of kernel panics during repairing permissions neither did I get one during boot. But still, you should bear in mind that random kernel panic with VoodooHDA on boot is a common problem and has been confirmed by Slide.
Low Battery & Sleep: When battery is critically low, OSX will not go into sleep. Instead it will shut itself off. We are waiting for a new version of battery kext, which will hopefully fix this.
Firewire: As stated above, since I don't use Firewire, I added a piece of code to remove a line appear on Console. Apparently, it breaks hot plug capability. To fix this, simply open DSDT file and locate Device (J380) and delete any codes that are different from firewire fix in the first page.

6 May 2011: I've found a new fix but I am not sure if it fixes this problem. Otherwise, follow above-mentioned steps.

Prerequisites & Assumptions
- I assume that you'd installed Snow Leopard from a retail dvd and not from any kind of distro releases. i.e Hazard, iAtkos.
- Although I tested these fixes on 10.6.6, they should be working on the previous versions as well.
- Also, I will assume that you are familiar with basic terms like kernel panic, Extra folder, permissions, chameleon, bootloader etc. If not, please use forum to familiarise yourself with these terms.
- I only used AnVaL as the bootloader and therefore I will assume that you are using it.
- Before reporting a problem please make sure that you use exactly the same files with me unless otherwise noted.
- You must have the latest bios (F32.A) installed for HDX 16 and 18.
- When you have a problem with a specific kext that I have shared, please inform us about it but also take that issue up with the original author of the kext to help it be solved.
- You should have the same files in your Extra folder with My Extra Folder without adding or removing any kext that I've mentioned. If you have a better kext please share it. Please read Which Files to Install part.
- I use Pfix for repairing permissions. It seems slow but does the job. Use Kext Wizard instead.
- Most of the time I'll will not write down every DSDT fixes here, instead you should be using DiffMerge to see the changes. Trust me it is better this way.
- Before asking me a question, bear in mind that I am a student in the social sciences. I don't have any programming skills. So excuse my lack of knowledge. :D

HDX with GeForce 130M
Set GrahicEnabler to Yes in boot.plist and remove graphic fix from the DSDT file.

Which Files to Install
Posted Image
If you are not sure which files to install, please read carefully:

1) Take a look at My Extra Folder. As its name suggests it is my Extra folder. In addition to this folder I only have VoodooHDA installed to System/Library/Extensions. I do not have any other kext.

2) When you create your own Extra folder you need to make sure that you have the exact same files* with me under your Extra folder.

a ) It is safe to use MacBookPro5,5 for both P8700 and P8400.

b.) You have two options for sound. Go on reading.

c) FakeSMC kext is the standart one without plugin support. It has the correct SMC version for MacBookPro5,5.

d.) Choose your DSDT file according to your configuration. HDX 16 and HDX 18 can use the same DSDT file. But there is a difference in EDID value in GPU fix.

e) After you have chosen your files. You should have the following files in your Extra folder.
- com.apple.Boot.plist
- dsdt.aml
- Extensions
- smbios.plist
- Themes/SnowKitty

Under Extra/Extensions folder, you should have the followings:
- AppleACPIBatteryManager.kext
- fakesmc.kext
- LegacyHdx18.kext
- VoodooPS2Controller.kext
- AppleACPIPS2Nub.kext
- LegacyAppleHDA.kext - (Dont use this if you decide to use VoodooHDA, which should be installed to System/Library/Extensions)

Under your System/Library/Extensions, you should have the followings.
- AppleHDA.kext or VoodooHDA depending on your choice.
- GenericBrightness.kext
* Please note that in order to use AppleHDA, you also need HDEF patch in your DSDT file. Please see below for this fix.

f) How to install VoodooHDA:
If you previously were using AppleHDA with HDEF fix and decided to try VoodooHDA, please follow the steps before installing VoodooHDA in order to prevent potential issues.
- Remove HDEF device from your DSDT file.
- Remove LegacyHDA.kext from your Extra folder.
- Repair permissions and restart. Do not install VoodooHDA at this point.
- After restart, install VoodooHDA, repair permissions and restart.

g) How to Install AppleHDA
If you decide to use AppleHDA instead of VoodooHDA, alonside with AppleHDA and LegacyHDA kexts you will need the following DSDT fix. Put this before Device (LANC), which is not the only place that it could work though.

Device (HDEF)	{		Name (_ADR, 0x001B0000)		Method (_PRW, 0, NotSerialized)		{			Return (Package (0x02)			{				0x0D, 				0x05			})		}		Method (_DSM, 4, NotSerialized)		{			Store (Package (0x0E)				{					"built-in", 					Buffer (One)					{						0x01					}, 					"subsystem-id", 					Buffer (0x04)					{						0x1B, 0x36, 0x00, 0x00					}, 					"subsystem-vendor-id", 					Buffer (0x04)					{						0x3C, 0x10, 0x00, 0x00					}, 					"codec-id", 					Buffer (0x04)					{						0xB2, 0x76, 0x1D, 0x11					}, 					"layout-id", 					Buffer (0x04)					{						0x78, 0x03, 0x00, 0x00 //888					}, 					"device-type", 					Buffer (0x10)					{						"IDT 92HD71B7"					}, 					"PinConfigurations", 					Buffer (Zero) {}				}, Local0)			DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))			Return (Local0)		}	}
g) How to LegacyHDX18.kext
This kext includes a fix for webcam, with which it will be recognised as iSight. It is possible that your vendor and device id are different from mine. If so, look at this post to change it accordingly.

h) About com.apple.Boot.plist
- Default Partition is set to hd(0,1) so change it if needed.
- Do not set Graphics Mode higher than 1280x1024x32 or you'll get black screen on boot.
- If you don't like Apple logo on boot, change Legacy Logo to No.
- There is no embedded Chameleon theme inside the AnVaL.
- We are now using x64 bit by default.
- If you want to know what AnVaL is loading prior to booting change Wait to Yes.

3) Above all, you need to install AnVaL the bootloader. Download the latest version from here.

SMbios.plist
By default, you should use MacBookPro5,5 as our mac model. The real MacBookPro5,5 have either P8700 or P8400 so if you have one of these CPU, you should use MacBookPro5,5. Change SMmaximalclock according to your CPU.

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>	<key>SMbiosdate</key>	<string>06/15/09</string>	<key>SMbiosvendor</key>	<string>Apple Computer, Inc.</string>	<key>SMbiosversion</key>	<string>MBP55.88Z.00AC.B03.0906151708</string>	<key>SMboardmanufacturer</key>	<string>Apple Computer, Inc.</string>	<key>SMboardversion</key>	<string>Not Specified</string>	<key>SMboardproduct</key>	<string>Mac-F2268AC8</string>	<key>SMexternalclock</key>	<string>266</string>	<key>SMfamily</key>	<string>MacBook Pro</string>	<key>SMserial</key> 	<string>W8923YDH66D</string>	<key>SMmanufacturer</key>	<string>Apple Inc.</string>	<key>SMmaximalclock</key>	<string>2261</string>	<key>SMmemmanufacter</key>	<string>Apple Computer Inc.</string>	<key>SMmemspeed</key>	<string>800</string>	<key>SMmemtype</key>	<string>19</string>	<key>SMproductname</key>	<string>MacBookPro5,5</string>	<key>SMsystemversion</key>	<string>1.0</string></dict></plist>

Further Tweeks

Wifi Card: I replaced my Intel 5100 card with an Hp Atheros 9280 and it worked out of the box. But still I did apply the following hack to get Apple seen as the sub vendor. Search for Device (EXP1) and paste the following code right before the last bracket. Similarly, if you have another wifi card working on OSX apart from Atheros 9280, you can modify this code to according to your need.
Device (ARPT)                {                    Name (_ADR, Zero)                    Method (_DSM, 4, NotSerialized)                    {                        Store (Package (0x06)                            {                                "device-id",                                 Unicode ("*"), // Don't worry it is same as 0x2A, 0x00, 0x00, 0x00                                 "subsystem-id",                                 Buffer (0x04)                                {                                    0x8F, 0x00, 0x00, 0x00                                },                                 "subsystem-vendor-id",                                 Buffer (0x04)                                {                                    0x6B, 0x10, 0x00, 0x00                                }                            }, Local0)                        DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))                        Return (Local0)                    }                }                }
Synaptics Touchpad:
Use the kexts from the first post but make sure that you are booting into 64Bit as it will give you multitouch gestures.

Download Files

#359
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK
RESERVED

#360
JBraddock

JBraddock

    Ph.D (Can) in Human Rights

  • Members
  • PipPipPipPipPipPipPip
  • 549 posts
  • Location:UK
Guys, there is a new bios update numbered F.34. As of now, It is only out for HDX 18 users but also had been reported to work on HDX. I'll wait a bit longer for its official release for HDX 16. Otherwise, I might go for it. Apparent changes from F.32:

- Fixed some bug where the battery would be detected as the wrong type
- Changed something in an area I don't quite understand (DMA Remapping Table), might have to do with hardware compatibility/blacklisting
- An additional "brightness control layer" has been added (different dimming for a certain monitor type?)
- Might include thermal zone fixes (quoted from another forum)

(via)

The modified version is here: SLIC 2.1 and WLAN whitelist removed. You can download the original one from HP website.

@HDX 18 users, did you install this bios update? Any change in DSDT file? Any noticeable differences?

Please report back.





0 user(s) are reading this topic

0 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