Jump to content

Sleep doesn't go into S3 - FIXED


ardoreal
 Share

9 posts in this topic

Recommended Posts

Hello folks,

 

I've been doing a lot of research and I'm not sure if I have the right settings in my DSDT or if it's a Lion problem or what.

 

First off the power button is completely non functional while Lion is running. When I click on the Apple and click sleep the display goes blank and the drives shut off but the fans are running and all the LED's remain lit. It's like it doesn't want to go into S3 suspend.

 

I also can't wake the system from this state, I have to hit the reset button.

 

Now the stuff I've been reading seems to tell me that the problem could be anywhere from kext issues with USB drivers to the DSDT itself for the power button. I've read about the Intel network adapter kext and that doesn't apply to me, as I've got a mobo w/a Realtek adapter. The console logs don't indicate anything to me, so I'm lost as to where to start.

 

I've got an MSI Big Bang Xpower and a GTX 570 gfx card. Everything else (except Sata 6gb) is working great. Any help or guidance is greatly appreciated, I searched the heck out of the forums before posting here too :thumbsup_anim: Not to say I didn't miss something, if anyone knows of a threat to point me to that'd be great too.

 

EDIT

 

I now have this issue resolved, I am pasting my last post below up here for anyone else who runs into this.

 

SUCCESS!!!

 

S3 sleep is now working! Fans shut down, LED's go off, yet ram stays powered. It's not %100 perfect, it's just %99 there. The only idiosyncrasy present is that I have to hit the power button twice. It's more like I can hit the power button now to sleep it (that's another fix) but when waking I hit the power button, then hit it again about 3 seconds later and it wakes from sleep. Or, I can just tap the spacebar on my keyboard and it wakes that way too.

 

The fix entails, for one having a proper DSDT. MSI Big Bang Xpower owners really should create one specific and I may release some patches for it in the guides section. I also applied this fix http://tonymacx86.com/viewtopic.php?f=7&am...27&start=10 rather specifically this code pasted into the terminal

 

sudo perl -pi -e 's|\x8b\x45\xc8\x39\x45\xcc\x74\x0b|\x8b\x45\xc8\x39\x45\xcc\xeb\x0b|; s|\x8b\x45\xb4\x39\x45\xb8\x74\x08|\x8b\x45\xb4\x39\x45\xb8\xeb\x08|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC

 

In my DSDT to get the power button working I had to change

Device (PWRB)
	{
		Name (_HID, EisaId ("PNP0C0C"))
		Name (_UID, 0xAA)
		Name (_STA, 0x0B)
	}
}

I changed _HID to _CID

 

Now the power button works and the sleep mode works. Disabling Legacy USB devices may have also helped. Thank you for suggestions and your time!

Link to comment
Share on other sites

Hello folks,

 

I've been doing a lot of research and I'm not sure if I have the right settings in my DSDT or if it's a Lion problem or what.

 

First off the power button is completely non functional while Lion is running. When I click on the Apple and click sleep the display goes blank and the drives shut off but the fans are running and all the LED's remain lit. It's like it doesn't want to go into S3 suspend.

 

I also can't wake the system from this state, I have to hit the reset button.

 

Now the stuff I've been reading seems to tell me that the problem could be anywhere from kext issues with USB drivers to the DSDT itself for the power button. I've read about the Intel network adapter kext and that doesn't apply to me, as I've got a mobo w/a Realtek adapter. The console logs don't indicate anything to me, so I'm lost as to where to start.

 

I've got an MSI Big Bang Xpower and a GTX 570 gfx card. Everything else (except Sata 6gb) is working great. Any help or guidance is greatly appreciated, I searched the heck out of the forums before posting here too :thumbsup_anim: Not to say I didn't miss something, if anyone knows of a threat to point me to that'd be great too.

 

it involves much hacking to your DSDT, i remember reading post here somewhere not long ago. it goes beyond "auto" patchers. i just plain leave it out on my home pc (i just turn it off when i don't need it), on netbook it works from pre-made packages/dsdt's/kext combos from net :blink:

Link to comment
Share on other sites

in most cases usual DSDT fixes can solve those problems, question is does your DSDT patched already?

does all those thing worked on SL?

what your MOBO?

tell as much as you can, so people can help you

Link to comment
Share on other sites

in most cases usual DSDT fixes can solve those problems, question is does your DSDT patched already?

does all those thing worked on SL?

what your MOBO?

tell as much as you can, so people can help you

 

Definitely, I apologize. I'm using an MSI Big Bang Xpower mobo with the DSDT supplied in the guide here on the forums. The guide is here http://www.insanelymac.com/forum/index.php?showtopic=230394

 

I followed the OP's suggestions on changing sata ports for the HD, but I'm not thinking its related to that. I suspect a DSDT or a kext issue given that the fans never shut off.

 

I looked at a few things about how to get the power button recognized, and I have the power button fix that seems generic, when I searched around it seems that some folks say "try this" but I have not seen what indicates how to configure the pwrb part of a DSDT, it seems like throwing pasta at the wall from where I sit.

 

The sleep didn't work on SL either, but my SL install was short lived as I've been waiting on Lion to get a functional nVidia GTX 570 going.

 

Also fyi, the Xpower uses a Realtek network adapter, so that rules out the intel kext fix.

Link to comment
Share on other sites

First, It not so smart to use someone else DSDT, but rather use just his fixes compering to your DSDT,

DSDT have a lot of information regarding YOUR, and YOUR PC ONLY, though they are same motherboard, there are differences in memory, graphics, etc.

best thing to try first, if to get fresh and clean DSDT for your motherboard(Windows or Linux Live CD), and patch it, if you don't know how to do it your self there is a DSDT section here in the forum which will help you a LOT

i wish you luck and hope it will solve your problem

Link to comment
Share on other sites

First, It not so smart to use someone else DSDT, but rather use just his fixes compering to your DSDT,

DSDT have a lot of information regarding YOUR, and YOUR PC ONLY, though they are same motherboard, there are differences in memory, graphics, etc.

best thing to try first, if to get fresh and clean DSDT for your motherboard(Windows or Linux Live CD), and patch it, if you don't know how to do it your self there is a DSDT section here in the forum which will help you a LOT

i wish you luck and hope it will solve your problem

 

Well, honestly I didn't know that. I guess I should RTFM :D about DSDT's and it didn't occur to me about the Windows/Linux LiveCD idea. I have a perfectly good W7 install on another HD. Thanks I'll try it out and report back.

Link to comment
Share on other sites

r00tlolz, I tried disabling legacy usb devices but that didn't help.

 

Noam_AA, here's where I'm at now. Still no sleep. I created a dsdt file from both Windows and a Ubuntu Livecd. As far as I can tell I get the exact same DSDT from both OS's. I applied a couple of basic hacks but I'm a little lost as to which hacks may apply to me. I did not apply any RTC hacks, for example. I do not get a CMOS clear when I reboot either.

 

From what I can see, the sleep behavior is the same as it was before. The power button still isn't recognized and the fans all stay on when I manually click sleep.

 

The upside to all this is that I apparently benefitted from a custom dsdt. For example, Sata 6gb/s works now. It didn't prior to this DSDT. I'm also getting better OpenGL performance out of my GTX 570. Mission control and launchpad animations seems to have become smoother as well.

 

I suppose I'll make do unless someone has any other ideas, the performance improvements are welcome ;) I guess Lion's remembering my sessions on boot up makes it comparable to hibernation on reboots. Thanks for your help guys. If anything else comes to mind I'll give it a shot, the suggestions can only help and I really do appreciate them.

Link to comment
Share on other sites

SUCCESS!!!

 

S3 sleep is now working! Fans shut down, LED's go off, yet ram stays powered. It's not %100 perfect, it's just %99 there. The only idiosyncrasy present is that I have to hit the power button twice. It's more like I can hit the power button now to sleep it (that's another fix) but when waking I hit the power button, then hit it again about 3 seconds later and it wakes from sleep. Or, I can just tap the spacebar on my keyboard and it wakes that way too.

 

The fix entails, for one having a proper DSDT. MSI Big Bang Xpower owners really should create one specific and I may release some patches for it in the guides section. I also applied this fix http://tonymacx86.com/viewtopic.php?f=7&am...27&start=10 rather specifically this code pasted into the terminal

 

sudo perl -pi -e 's|\x8b\x45\xc8\x39\x45\xcc\x74\x0b|\x8b\x45\xc8\x39\x45\xcc\xeb\x0b|; s|\x8b\x45\xb4\x39\x45\xb8\x74\x08|\x8b\x45\xb4\x39\x45\xb8\xeb\x08|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC

 

In my DSDT to get the power button working I had to change

Device (PWRB)
	{
		Name (_HID, EisaId ("PNP0C0C"))
		Name (_UID, 0xAA)
		Name (_STA, 0x0B)
	}
}

I changed _HID to _CID

 

Now the power button works and the sleep mode works. Disabling Legacy USB devices may have also helped. Thank you for suggestions and your time!

Link to comment
Share on other sites

 Share

×
×
  • Create New...