Jump to content

10.5.8 deep sleep problem?


  • Please log in to reply
273 replies to this topic

#81
Thireus

Thireus

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:France
  • Interests:Security

haha no way, I just bloody removed sleepwatcher because KX driver has proper power management now and works without load/unload script in sleepwatcher.

I'm not going that route again hehe, thx for the fix though bud :wacko:


KX driver?

#82
Guest: ѕиоѡ_*

Guest: ѕиоѡ_*
  • Guests
Oh hi bud, just posted on your other thread. Does this require a dsdt.aml file because I havent used one as of yet.

KX driver makes your Audigy 2 ZS work in 8 channels and 32 bit so full surround.

I no longer have to use the ALC 889a.

#83
Thireus

Thireus

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:France
  • Interests:Security

Oh hi bud, just posted on your other thread. Does this require a dsdt.aml file because I havent used one as of yet.

KX driver makes your Audigy 2 ZS work in 8 channels and 32 bit so full surround.

I no longer have to use the ALC 889a.


Replied on the other topic :graduated:

#84
Dr. Hurt

Dr. Hurt

    InsanelyMac Deity

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,654 posts
  • Gender:Male
  • Location:Santander, Spain
  • Interests:Politics, Sci/Tech, Medicine.
I noticed that all of us complain that our CPUs run 8C hotter!!! Mine was 36C and now it's 44C. I don't mind though, it doesn't exceed 50C at maximum load.

Edit: I installed VoodooPower.kext and that actually made speed step work and reduced my temp back to 36C. CPU-x shows my cpu running at 1200MHz with a 6X multiplier. SLEEP WORKS.... YEAH!

So to sum up, in my case:

Removed disabler.kext

AppleIntelCPUPowerManagement + VoodooPower + patched DSDT = sleep working, speed step working, CPU temp low

#85
pista7

pista7

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
Hi Guys,

The reason for the 10.5.8 sleep problems is, that there is a small piece of code added to the new kernel, that tries to shut down all CPUs (except the one running the go-to-sleep code of course :D when going to sleep. This is implemented by calling the registered PM extension (AppleIntelCPUPowerManagement under normal circumstances) and expects a KERN_SUCCESS return value.

However, when there is no PM extension registered (VoodooPower doesn't register itself as one, and probably for a good reason - the PM extension is quite tightly bound to kernel version, so there would have to be one VoodooPower.kext per kernel version), the fallback behavior is to return an error code, which in turn causes the kernel to panic (but you won't see the panic screen because your monitor is already turned off at that point, so it merely appears to hang while going to sleep).

Long story short, I'll try to write a kext that will fix this later today (2100 GMT+2 at the earliest :) and will post it here for you to test :)

P.S. regarding kernel swapping - if you can't wait, I think this is quite a good solution - there are so few changes in the .8 kernel except this PM craziness, that I think you'll be quite fine using the .7 kernel - just make sure you swap the System.kext for the correct one as well, otherwise you'll get all sorts of problems

#86
Thireus

Thireus

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:France
  • Interests:Security

Hi Guys,

The reason for the 10.5.8 sleep problems is, that there is a small piece of code added to the new kernel, that tries to shut down all CPUs (except the one running the go-to-sleep code of course :D when going to sleep. This is implemented by calling the registered PM extension (AppleIntelCPUPowerManagement under normal circumstances) and expects a KERN_SUCCESS return value.

However, when there is no PM extension registered (VoodooPower doesn't register itself as one, and probably for a good reason - the PM extension is quite tightly bound to kernel version, so there would have to be one VoodooPower.kext per kernel version), the fallback behavior is to return an error code, which in turn causes the kernel to panic (but you won't see the panic screen because your monitor is already turned off at that point, so it merely appears to hang while going to sleep).

Long story short, I'll try to write a kext that will fix this later today (2100 GMT+2 at the earliest :) and will post it here for you to test :)


Nice thank you, I want to be the first to test :P

#87
Guest: ѕиоѡ_*

Guest: ѕиоѡ_*
  • Guests
Thx a lot Pista for the detailed info.

I will keep using the 7 kernel until there is a proper solution. You mentioned the system kext, does that mean I also have to use the 10.5.7 version or?

I have no issues so far (haven't checked time machine but thats another road) so do you think it is still needed to use the system kext?

Thx and I can't wait to try out your work bud.

#88
pista7

pista7

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male

Thx a lot Pista for the detailed info.

I will keep using the 7 kernel until there is a proper solution. You mentioned the system kext, does that mean I also have to use the 10.5.7 version or?

I have no issues so far (haven't checked time machine but thats another road) so do you think it is still needed to use the system kext?

Thx and I can't wait to try out your work bud.


Well, the System.kext is a product of the kernel build process (along with mach_kernel itself) making it essentially a part of the kernel, so yeah, I believe it's always a really good idea to have a System.kext that matches the kernel you use.

btw., the most often reported issue with a mismatched System.kext is with USB automounting

#89
ApexDE

ApexDE

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 222 posts
@ pista7

Thanks for the explaination. Please share the source of the kext aswell.

I guess your kext will register as Powermanagement Extension?

#90
Guest: ѕиоѡ_*

Guest: ѕиоѡ_*
  • Guests

Well, the System.kext is a product of the kernel build process (along with mach_kernel itself) making it essentially a part of the kernel, so yeah, I believe it's always a really good idea to have a System.kext that matches the kernel you use.

btw., the most often reported issue with a mismatched System.kext is with USB automounting


Ok, I will try without the system.kext until I run into issues (no USB or other issues for that matter)
Knowing me I might forget to switch the system.kext too (along with the kernel) when the fix arrives ;)

Thx again for your input m8

#91
Thireus

Thireus

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:France
  • Interests:Security

Ok, I will try without the system.kext until I run into issues (no USB or other issues for that matter)
Knowing me I might forget to switch the system.kext too (along with the kernel) when the fix arrives ;)

Thx again for your input m8


Sиоѡ, I can't send you any PM due to your strange pseudo. Please mail me: thireus@gmail.com

For the reply:

Hi,

I used this guide in the past to use dsdt:

http://ipis-osx.wiki...ith-ideneb-v1-3

But it require DSDT patcher :/

You can read this post: http://ipis-osx.wiki...xed#post-521812 --> you can get dsdt.aml with linux ;) so try this one :P

#92
Guest: ѕиоѡ_*

Guest: ѕиоѡ_*
  • Guests
I changed my "Snow" nick to this a while ago, guess I should have left it alone. I will try to change it again.

Thx for the dsdt info bro

#93
Cool McCool

Cool McCool

    InsanelyMac Protégé

  • Members
  • PipPip
  • 56 posts

What exactz do you mean ?
Sleep without that temp rising AppleIntelCPU.kext ?
Or onyl with that "problem" of higher cpu temp ?
Higher CPU temp wouldnt be really an "everything working".


Your question here prompted me to look a little deeper.

Actually all I can say at this point is that everything *except* my CPU & sleep seem to be working properly.

When I try to sleep the computer, it actually shuts the computer down. It is not a graceful shutdown, its just a sudden turning off of the computer. With 10.5.7 (and earlier) it would sleep properly where after sleep, I could simply push the power button and everything would come up as I had left it on my desktop. Now when I sleep it simply turns the computer off as if I simply pulled the power cord from the wall.

Also I assume I have the higher CPU power temps. I had not measured it before upgrading to 10.5.8, but now it is running at 59C/138F. By comparison, our new Apple iMac runs at 34C/94F.

So apparently everything really isn't working, but at least its booting & running.

#94
ilovebooze420

ilovebooze420

    InsanelyMac Protégé

  • Members
  • PipPip
  • 60 posts
  • Gender:Male
  • Location:Fort Wayne
  • Interests:OSx86, obviously. Computers, obviously.
So, I guess I'm screwed. I just updated to 10.5.8 today through Apple Software Update and hibernation is broken. (Originally on iPC 10.5.6)

I don't have "Disabler.kext" in /Extra or /S/L/E.
I DO have Don't Steal Mac OS X.kext (NOT dsmos.kext)
I don't have an EFI partition
I have patched my DSDT with HPET
Removing AppleIntelCPUPowerManagement.kext results in a kernel panic
Removing IntelCPUPMDisabler.kext results in a kernel panic
Going back to the kernel from 10.5.7 didn't work

I guess I'll just have to wait until someone comes up with a proper fix.

(Specs in signature are correct)

#95
Thireus

Thireus

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:France
  • Interests:Security

So, I guess I'm screwed. I just updated to 10.5.8 today through Apple Software Update and hibernation is broken. (Originally on iPC 10.5.6)

I don't have "Disabler.kext" in /Extra or /S/L/E.
I DO have Don't Steal Mac OS X.kext (NOT dsmos.kext)
I don't have an EFI partition
I have patched my DSDT with HPET
Removing AppleIntelCPUPowerManagement.kext results in a kernel panic
Removing IntelCPUPMDisabler.kext results in a kernel panic
Going back to the kernel from 10.5.7 didn't work

I guess I'll just have to wait until someone comes up with a proper fix.

(Specs in signature are correct)


What about installing VoodooPower and removing both AppleIntelCPUPowerManagement & IntelCPUPMDisabler and then reboot? ;)

#96
mitch_de

mitch_de

    InsanelyMacaholic

  • Retired
  • 3,090 posts
  • Gender:Male
  • Location:Stuttgart / Germany
I would boot with -v -f to see what does KP (last things done shown with -v) and rebuild extensions.mkext.

#97
pista7

pista7

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male
Ok, here it is. However, since I've managed to completely destabilize my desktop (running vanilla 10.5.8) yesterday, I've had to blind-code this on my Pentium-M notebook, on which I still run the voodoo 10.5.7 kernel, so it's completely untested (except it is loadable without the important part on 10.5.7 when built for 10.5.7 - the version attached is hopefully built to run on 10.5.8, and including the important part).

Testing suggestions (lines with $ are supposed to be entered into Terminal.app with current directory set to wherever SleepEnabler.kext is extracted ;)

1. extract the attached kext somewhere else than /Extra/Extensions or /S/L/E so you won't make your system unbootable in case something goes awfully wrong
2. $ sudo chown -R 0:0 SleepEnabler.kext
3. $ sync (just to be safe)
4. $ sudo kextload -t SleepEnabler.kext

if the kext loads successfully, try if sleep works, and if it does, move it to a more permanent location using any tool/procedure you are accustomed to

if it doesn't:
1. if the kextload fails, post here the error messages
2. if it panics, try to provide a readable screenshot/photo of the panic output (I believe you have to enable the panic output somehow - search the forums :D I'm too tired to look for it right now.

happy testing (and, hopefully, sleeping...)

Edit: download removed, the final (working) version is here:
http://www.insanelym...p...t&p=1224830

#98
Thireus

Thireus

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:France
  • Interests:Security
Thanks, will try it :D

kextload: extension SleepEnabler.kext appears to be loadable
kextload: SleepEnabler.kext loaded successfully


Nice :D
But sleep doesn't work. KP ;)

#99
pista7

pista7

    InsanelyMac Protégé

  • Members
  • Pip
  • 17 posts
  • Gender:Male

But sleep doesn't work. KP :)


Visible KP? that's at least a bit better than hanging after the display is turned off ;)

Could you try to take a picture of the KP screen with debug turned on? (enabled with something like debug=0x144 I believe, in kernel arguments)

#100
Thireus

Thireus

    InsanelyMac Geek

  • Members
  • PipPipPipPip
  • 221 posts
  • Gender:Male
  • Location:France
  • Interests:Security

Visible KP? that's at least a bit better than hanging after the display is turned off :)

Could you try to take a picture of the KP screen with debug turned on? (enabled with something like debug=0x144 I believe, in kernel arguments)


Not visible, display is turned off... But I suppose this is a KP because it goes totally frozen. Nothing is into the Console regarding this KP :'(





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users

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