Jump to content

[Need Help] Sleep issues

lion 10.7.4 AMD AthlonII ECS sleep wake

  • Please log in to reply
46 replies to this topic

#1
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Hello, everybody!!

Thanks to this forum and the efforts of RAW X86, Bronzovka, AnV and others, who developed a working (32-bit, but working) lion legacy kernel, i have the latest OsX running on my machine, fine and stable. I installed it using Devout's experimental method.

Now there's one last thing to solve, while its not possible to have 64-bit extensions (even Raw's kernel, whic offers support for 64-bit apps, is i386) or iCloud/facetime. What happens is this: when i put my computer to sleep, be by quick pressing once my power switch, be by clicking at the sleep option in the apple menu, the computer sleeps. In fact, it enters a coma, because it doesn't wake anymore, and i'm forced to reboot.

Is there a solution? I'm running lion 10.7.4 (32-bit, with RAW's latest kernel) on an ECS A780LM-M2 motherboard and an Athlon II x2 250 (3.0 ghz) CPU. Any help will be much appreciated.

#2
rockinron_1

rockinron_1

    InsanelyMac Sage

  • FAQ Team
  • 394 posts
  • Gender:Male
  • Location:UK

In fact, it enters a coma, because it doesn't wake anymore, and i'm forced to reboot


Best line I've read on this forum yet, sorry I can't help you with regards to the AMD lion kernel....
Still laughing....

#3
eep357

eep357

    Triple Platinum

  • Supervisors
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
If it's an issue specific to AMD kernel than I don't know either, but double check bios settings like sleep set to S3, or wake on LAN, USB, PS/2, repost VBIOS, etc.

#4
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Hi, eeep! Thank you for the answer! I'm not sure if i understand you well, though. I mean, what should the correct bios settings be for each of the parameters you listed?

Btw, my mac eeepc is going fairy well: now, i even have touch screen, thanks to touchbase driver (with the limitations of trial mode, since the full driver is quite expensive, but it's cool to know that it can be done if i just pay the hundred-and-some bucks it costs). The sleep issue of the netbook (sleep issues haunting my hackintosh user experience, it seems) is not solved, however: the dsdt adventure is being harder than expected.

#5
eep357

eep357

    Triple Platinum

  • Supervisors
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
All depends on what options your bios has, but setting sleep/suspend to S3 is the first thing to check, for VBIOS repost on wake, depends on what works for you, gotta try both (if mobo has the option). Other wake options would probably be in the power settings and enabling all except maybe RTC clock should be OK, the RTC wake/power-on sets a time and date for your computer to boot or restart on it's own. All mobo bios tend to be a bit different in terms they use and features they have, but anything that looks sleep pr wake related your not sure of you can prob google for more info.

#6
JamesLittler

JamesLittler

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,022 posts
  • Gender:Male
  • Location:Portsmouth, England
AppleRTC may need patching.
You might be experiencing a CMOS reset on sleep.

#7
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Thank you for the answer. What is a CMOS reset? How do i patch this file?

#8
eep357

eep357

    Triple Platinum

  • Supervisors
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
cmos reset is reseting all your bios settings, like you can do by taking out the battery or using the clear cmos jumper pins. Unpatched appleRTC.kext will cause this to happen on some systems. To patch your's, run the following in Terminal.

sudo perl -pi -e 's|\x75\x30\x89\xd8|\xeb\x30\x89\xd8|' /System/Library/Extensions/AppleRTC.kext/Contents/MacOS/AppleRTC



#9
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Thank you again for the quick answer and the terminal command solution, eep!

However, how can i know if this CMOS reset is really happening? For the only one issue i'm experiencing is the comatose sleeping itself. No other situation, indeed. In fact, the system works quite fine considering it's AMD-imposed limitations. It's even my main working system right now. But everytime i put my computer to sleep, it passes out and doesn't come back. It doesn't happen automatically, only when i use the sleep option in the apple menu or by quickly clicking the power switch of my computer.

So, if the problem is a CMOS reset, what kind of perceptive effects would it have?

#10
JamesLittler

JamesLittler

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,022 posts
  • Gender:Male
  • Location:Portsmouth, England
You should be able to wake from sleep, give it a try.

Do you have another PC/MAC running OS X? If so, enable sharing on the AMD based PC. When you wake the PC you should see it re-appear on the network (this proves the PC is waking even if the graphics aren't waking up).

#11
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Yes, i do! I have an atom netbook running lion, i'll do what you're sugesting. Thank you!

As for the appleRTC patch, what i meant was: how i know that the CMOS is reseting? My bios settings look unchanged. I'm afraid to patch this kext unnecesarily and get some unwanted effect in a system that otherwise works like a charm, see?

#12
eep357

eep357

    Triple Platinum

  • Supervisors
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
I've never heard of patching appleRTC.kext causing a problem, for some it has fixed sleep and wake issues, but in theory should only prevent bios reset's on reboot. that being said I avoid AMD CPU setups like the plague so am not the expert. Anytime to patch or modify a file, you should back it up first. In the case above, the second half of the command is just the file path, so you could copy the extension to your desktop and edit it there first like
sudo perl -pi -e 's|\x75\x30\x89\xd8|\xeb\x30\x89\xd8|' ~/Desktop/AppleRTC.kext/Contents/MacOS/AppleRTC
Also along the lines of what James was saying, having a second mac around with screen sharing is the greatest when it comes to diag graphics issues. If you find that it is a Graphics problem, like I mentioned earlier, look in bios for "repost VBIOS on resume" or something along those lines. Personally on a desktop, unless your running on solar power, I don't see any reason sleep even needs to be enabled. Let the monitor sleep instead. That's just my opinion and I'm sure tons of people wouldn't agree for various reasons. Every desktop I've ever owned over the past 15+ years I've left running 24/7 and aside from maybe 1 or 2 hard drives and a stick of RAM, have never had a hardware failure.

#13
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Hi again!

May the problem be related to the fact i have

NullCPUPowerManagement installed? Should i remove it? What kind of side effects could it have?



Thanks in advance!

#14
eep357

eep357

    Triple Platinum

  • Supervisors
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
yup, can't sleep with it as far as i know, but on amd that may cause you other problems, i don't know anything about native power management on amd cpu or if it's even possible

#15
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Thank you again, eep!

I'm afraid you're right: when i remove the NullPowerCPUManagement, i get a KP when booting, regardless of bootflag i use, tracing to AppleIntelPowerManagement.kext.

Is there any known patch at hand for using this kext in an AMD environment? I googled a little, to no avail. If not, i think i'm going to let go of it and focus on enable sleeping where it's really essential: my osx-ed netbook Asus T101 MT.

Thanks!

#16
JamesLittler

JamesLittler

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,022 posts
  • Gender:Male
  • Location:Portsmouth, England
Remove AppleCPUIntelPowerManagement and install VoodooPower, this should give you speed stepping, but like eep I know very little about AMD.

#17
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Thanks a lot, James!

Out of curiosity, should this driver work also with an Atom N450 CPU? I'm afraid it got's AMD's kernel panic disease and can't stand yet the removal of NullCPUPowerManagement.

#18
JamesLittler

JamesLittler

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,022 posts
  • Gender:Male
  • Location:Portsmouth, England
I've just noticed that the RTC patch eep provided you with only patches for the 64 bit kernel and you mentioned you're running 32bit, this is only used in Mountain Lion.
You will need to use the following patch:
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

Out of curiosity, should this driver work also with an Atom N450 CPU? I'm afraid it got's AMD's kernel panic disease and can't stand yet the removal of NullCPUPowerManagement.


I use VoodooPowerMini on Atoms, it seems to be slightly better on battery (2 hours on a 3 cell, 4 on a 6 cell).
Sleep enabler should help you with your sleep issues, I have a N270 asleep right next to me using this method. The fans just span up for network access too :wink2:

Just move NCPM to your desktop, If you get a panic boot from an installer and move it back with terminal.
If you're not comfortable in the terminal I can link you to a nice bash introduction which will get you off to a good start,

#19
theconnactic

theconnactic

    Stubborn AMD user

  • Local Moderators
  • 2,905 posts
  • Gender:Male
Thanks again, James!

Tried this one (the RTC patch!), unfortunately it didn't work. Tried it in my atom netbook too, it didn't work either (both of them, and my atom runs 64-bit kernel and extensions). I rather believe now that the problem is related with NullPowerCPUManagement indeed.

I think i'll left aside my AMD machine for a while - in the end, it's working great in about everything but power management/sleep - and focus now, as i said, on my netbook, where sleeping is crucial for it's good work. I'm afraid i'm going to try the DSDT way, from which i was running like when cat see dog, because there is no realy good tutorial about it for beginners anywhere. But i'll have to resort to this at last, since other solutions didn't solve the problem (but i'll give Voodoo Power a shot in both machines anyway).

BTW, in my Atom netbook i got indeed a CMOS reset related to sleeping issues (that any of the indicated patches solved, bad for me). Now i know what it's like, not that i couldn't live without that...

In fact, i'm confortable with unix, but i appreciated the offer. See, i already tried this method of moving NullCPU to desktop, while working with the latest sleepenabler from OsX86.net, only to get a kernel panic at the boot with appleIntel, and no sleeping obviously, having to undo things with terminal. It was exactly what i was talking about. I'll give it a shot with mini voodoo power, though. Tried both of RTC patches, too (in Atom and in my AMD desktop) without any results (and, in atom, there was indeed a CMOS reset!). Tried with an unpatched dsdt.aml extracted using dsdt editor, to no avail.

Maybe the solution will be to get rid of NullCPUPower, to replace IntelCPUPower with Mini Voodoo Power, and to use either a dsdt (patched, if i learn how to do it) or the universal sleepenabler from OsX86, or both.

Edited by theconnactic, 26 July 2012 - 01:16 AM.


#20
eep357

eep357

    Triple Platinum

  • Supervisors
  • 2,527 posts
  • Gender:Male
  • Location:Dark Side of The Wall
  • Interests:things and stuff
good catch on the patch!





Also tagged with one or more of these keywords: lion, 10.7.4, AMD, AthlonII, ECS, sleep, wake


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