Jump to content

Snow Leopard 10.6.6 w/ SleepEnabler.kext


dnyc2259
 Share

38 posts in this topic

Recommended Posts

Tested and working.....

 

Download 10.6.6. Combo Update (DO NOT INSTALL THROUGH SOFTWARE UPDATE)

Delete your sleepenabler.kext (IT'S VERSION SPECIFIC AND YOU WILL GET A KP)

DO NOT REBOOT

Copy this string into your com.apple.boot.plist

<string>arch=i386 pmVersion=21</string>

Download & Install this sleepEnabler.kext

 

http://xnu-sleep-enabler.googlecode.com/is...db2ab4b6574d100

 

Sleep and wakeup both work.. Currently the only solution I've found working...

 

SideNote: You may need to edit your atheros (airport) IO80211Family.kext....

 

 

My Configuration

T61 7658-CTO

Graphics : GMA X3100

Ethernet : 82566MM

wifi : Thinkpad Atheros ABG

Audio : Intel HD Audio

Bluetooth still not working(but I dont need that nor do i care)

Firewire Working

USB working

CD/DVD working (with Roxio Toast Titanium 10)

Link to comment
Share on other sites

Here are instructions on how to patch and build it yourself:

http://macfiets.blogspot.com/2010/11/upgra...xt-to-1065.html

 

The required source code for 10.6.6 hasn't been released yet...so you can't build a 10.6.6 sleepenabler, but I guess a 64-bit 10.6.5 one would still work with the pmVersion=21 flag.

 

Not really sure how this works, I don't use sleepenabler myself.

Link to comment
Share on other sites

Please take the time to read the entire original post.....

 

My configuration will only allow me to run 32bit b/c the wifi will not work at 64

 

The sleepenabler.kext I believe was written only for 32bit there's no way for me to test on 64bit b/c I get KP's ...

 

Last, the link I provided is the direct download to the zip file... it works but it downloads so quick that you may not see it especially if you're using opera browser...

 

Regards...

Link to comment
Share on other sites

does the pmVersion changes w/ every macosx version/update? if so, how is it determined?

 

It's defined in pmCPU.h.

 

Note that in xnu-1504.9.26 which is the 10.6.6 kernel, it did not increase from 21 to 22 - it's still 21 just like how it was the 10.6.5 kernel, unlike how it increased in previous versions. I updated the xnu-sleep-enabler code a day ago to recognize that, and it works fine.

 

http://xnu-sleep-enabler.googlecode.com/fi...kext.10.6.x.zip

Link to comment
Share on other sites

It's defined in pmCPU.h.

 

Note that in xnu-1504.9.26 which is the 10.6.6 kernel, it did not increase from 21 to 22 - it's still 21 just like how it was the 10.6.5 kernel, unlike how it increased in previous versions. I updated the xnu-sleep-enabler code a day ago to recognize that, and it works fine.

oh ok. hope u could already indicate in your xnu-sleep-enabler download page the "needed/correct" pmVersion. ;)

 

will try it later. tnx.

 

[EDIT]

it did work. tnx for your kext nawcom. hopefully it's really kernel-independent now so that when the lion comes out (or perhaps last update to snow leo), all we have to edit is the Boot.plist or nothing at all if pmVersion doesn't change/increase. :)

Link to comment
Share on other sites

It's defined in pmCPU.h.

 

Note that in xnu-1504.9.26 which is the 10.6.6 kernel, it did not increase from 21 to 22 - it's still 21 just like how it was the 10.6.5 kernel, unlike how it increased in previous versions. I updated the xnu-sleep-enabler code a day ago to recognize that, and it works fine.

 

http://xnu-sleep-enabler.googlecode.com/fi...kext.10.6.x.zip

 

Causes a kernel panic still. I had to manually add "pmVersion=21" to my boot.apple.Boot.plist in order to get it to work.

 

mach_kernel 64-bit

GA-EP45-UD3L

Link to comment
Share on other sites

Causes a kernel panic still. I had to manually add "pmVersion=21" to my boot.apple.Boot.plist in order to get it to work.

 

mach_kernel 64-bit

GA-EP45-UD3L

The topic starter already mentioned that you have to put pmVersion=21 in your boot.plist :)

Link to comment
Share on other sites

created 10.6.6 compatibled SleepEnabler.kext.

 

Source Code: https://github.com/shao1555/xnu-sleep-enabler

 

no longer needs "pmVersion=21" to your boot argument.

 

good day, i'm on 10.6.6 on a vostro 1310 everything working except for sleep/wake.

 

tried this, but the same as always: it tries to sleep but immediately wakes up. Any sleepenabler.kext i try takes me to this, what can i do, or what am i doing wrong??

Link to comment
Share on other sites

Causes a kernel panic still. I had to manually add "pmVersion=21" to my boot.apple.Boot.plist in order to get it to work.

 

mach_kernel 64-bit

GA-EP45-UD3L

 

The problem must be on your end because it works just fine with the multiple tests I've run.

It should be saying this:

[SleepEnabler] Registering PowerManagement dispatch table with PM_DISPATCH_VERSION 21...

 

If you are still getting a kernel panic please let me know what it's saying in regards to that.

 

edit: Just did a number of tests on a few other systems. Detects PM_DISPATCH_VERSION as 21 just fine for 10.6.6.

Link to comment
Share on other sites

oh ok. hope u could already indicate in your xnu-sleep-enabler download page the "needed/correct" pmVersion. ;)

 

will try it later. tnx.

 

[EDIT]

it did work. tnx for your kext nawcom. hopefully it's really kernel-independent now so that when the lion comes out (or perhaps last update to snow leo), all we have to edit is the Boot.plist or nothing at all if pmVersion doesn't change/increase. :)

 

hehe, we can't predict the future regarding the PM_DISPATCH_VERSION value in the kernel versions - for example, if these incremented like usual - the 10.6.6 kernel should be 22 - but it ended up being 21, the same as the 10.6.5 kernel. A final solution that would fix this problem altogether would be somehow extracting PM_DISPATCH_VERSION from the kernel itself, which is out of my range of skills. There is such a possibility of actually modifying it's value, as people like meklort have written up similar techniques for doing kernel binmodding on the fly.

 

In situations where you don't have the kernel source code (access to pmCPU.h) can find out these PM_DISPATCH_VERSION values if you open up the kernel in a nice disassembler like IDA pro, so finding out the value without having the kernel source code is quite easy. To write up a kernel extension to automate this type of thing is something completely different however.

 

Who knows, perhaps we will create the ultimate solution for this seemingly neverending issue.

Link to comment
Share on other sites

hehe, we can't predict the future regarding the PM_DISPATCH_VERSION value in the kernel versions - for example, if these incremented like usual - the 10.6.6 kernel should be 22 - but it ended up being 21, the same as the 10.6.5 kernel. A final solution that would fix this problem altogether would be somehow extracting PM_DISPATCH_VERSION from the kernel itself, which is out of my range of skills. There is such a possibility of actually modifying it's value, as people like meklort have written up similar techniques for doing kernel binmodding on the fly.

 

In situations where you don't have the kernel source code (access to pmCPU.h) can find out these PM_DISPATCH_VERSION values if you open up the kernel in a nice disassembler like IDA pro, so finding out the value without having the kernel source code is quite easy. To write up a kernel extension to automate this type of thing is something completely different however.

 

Who knows, perhaps we will create the ultimate solution for this seemingly neverending issue.

more power to you nawcom & to the other developers of the OSx86 community! we know you'll not settle for anything less. hehe... ;)

 

tnx again for the share.

Link to comment
Share on other sites

created 10.6.6 compatibled SleepEnabler.kext.

 

Source Code: https://github.com/shao1555/xnu-sleep-enabler

 

no longer needs "pmVersion=21" to your boot argument.

 

This worked for me surprisingly enough because I've had a problem with sleep to the point I just didn't bother. I tried nawcom's kext with the edition plist to pmVersion and it did not work for me (sorry nawcom I didn't write down what the KP was) but just letting people know that this one worked on my hack.

 

Thanks shao1555

Link to comment
Share on other sites

Just wanted to report success here as well!!! Thank you all for quickly repairing the sleepenabler

From 10.5.6 to 10.6.6

All I did was:

 

1. Deleted old kext

2. Run Kext Utility

3. Installed the uodate (not combo), did not reboot

4. Installed new sleepenabler.kext (pasted in folder)

5: Run Kext Utility

6. Reboot!!

 

Thanks again

Link to comment
Share on other sites

The problem must be on your end because it works just fine with the multiple tests I've run.

It should be saying this:

[SleepEnabler] Registering PowerManagement dispatch table with PM_DISPATCH_VERSION 21...

 

If you are still getting a kernel panic please let me know what it's saying in regards to that.

 

edit: Just did a number of tests on a few other systems. Detects PM_DISPATCH_VERSION as 21 just fine for 10.6.6.

 

Still got a KP with it. I also tried the pmVersion string and it still KP'ed. I've included a screenshot of the KP and the kexts that I am using.

post-434025-1294743554_thumb.jpg

post-434025-1294794672_thumb.jpg

Link to comment
Share on other sites

Do I have to do anything else to get sleep on my hackintosh, except placing this kext in S/L/E ?

 

I have a DSDT, and everything's working great - I just don't have sleep, never tried. Was curious if this is all I need to do.

 

Thanks.

Link to comment
Share on other sites

 Share

×
×
  • Create New...