Jump to content
  • Announcements

    • Allan

      Forum Rules   04/13/2018

      Hello folks! As some things are being fixed, we'll keep you updated. Per hour the Forum Rules don't have a dedicated "Tab", so here is the place that we have our Rules back. New Users Lounge > [READ] - InsanelyMac Forum Rules - The InsanelyMac Staff Team. 
rayap

Power Button & WOL Wakes in Lion (10.7)

69 posts in this topic

Recommended Posts

This topic regularly crept in the CMOS Resets After Sleep thread. So I thought it's about time to move the discussion to a new thread.

In my setup with EP45-DS4P, with SnowLeopard, Power Button and WOL Wakes also brings up the display within a second or two. But the 'Wake Reason=' in the log is empty.

However, with Lion the display fails to come up and it just sleeps again within a few seconds. Nevertheless, a tap within the few seconds, on my trackpad or keyboard/mouse brings the display to life. Later checking the unsuccessful wakes in the log show the 'Wake Reason = ?'

On the other hand, my wife's setup on a 945GCM-S2L with GMA 950 graphics, has no such problems in Snow Leopard or Lion. As a matter of fact the kernel log even show the Wake Reason as 'power-button (User)'.

 

Otherwise, all forms of Sleep (including power-button sleep) and Wake (USB & Bluetooth) works normally.

 

Over the last couple of weeks, testing out various mods by comparing the two dsdt's proved unsuccessful. I may have to move my HD4850 to my wife's setup to see it the ATI card is the problem - but must wait for her to go on a short holiday. Or maybe use a analogue connected monitor- yet searching for the adaptor.

 

Those of you with GMA950 graphics can confirm if Lion wakes up by the Power Button successfully.

 

Edited OP on 23 July, 2011 - Include WOL.

 

After post#26

Power-button wakes work succesfully on GA-945GCM-S2L with GT220 graphics too.

 

After post#34

Overcomes topic's problem with darkwake=0 kernel parameter.

Share this post


Link to post
Share on other sites

If, unpatched even power-button sleep will not function let alone power-button wake.

Will be useful to see your signature.

Share this post


Link to post
Share on other sites

In this post by antic, replacing the USB Keyboard by a Bluetooth Keyboard reportedly solved this problem.

Tested with Apple Wireless Keyboard and Trackpad with no USB Devices attached - other than a Bluetooth Dongle - problem still persists.

Additionally, tried changing framebuffer for HD4850 between Motmot (2 display working) and default Radeon (1 display only working), but of no avail.

Share this post


Link to post
Share on other sites
Additionally, tried changing framebuffer for HD4850 between Motmot (2 display working) and default Radeon (1 display only working), but of no avail.

I have the same problem regardless if I use a GTX260 or a HD6850. Additionally, I think there are several people who do not have the problem who do not have a GMA 950.

 

This is probably more likely to be a motherboard specific problem, requiring a DSDT fix or the like. My knowledge of DSDT patching is pretty weak though.

 

I think getting to know why "Wake Reason" is empty would be an important clue, and I've tried to figure out where the "Wake Reason" is determined, but I've not had much luck. I downloaded the XNU kernel sources and poked around, but only found one mention about it in a header file.

 

More likely is it that "Wake Reason" is determined in a kext module such as the Intel Power Management kext.

Share this post


Link to post
Share on other sites

Okay, the relevant Kext is AppleACPIPlatform.

 

In the binary I found the string Wake reason: %s.

 

Is that Kext closed source?

Share this post


Link to post
Share on other sites

As per my Opening Post, in the DS4P (where power-button wake fails) I noticed AppleSMCClient is missing in ioreg whereas on the S2L, this is loaded. Could i seek feedback, if those who are successful in Power Button Wakes in Lion confirm their AppleSMcClient is loaded or if otherwise.

 

And, could some expert throw light on the function of AppleSMCClient and how to enable it.

 

Thanks.

Share this post


Link to post
Share on other sites
As per my Opening Post, in the DS4P (where power-button wake fails) I noticed AppleSMCClient is missing in ioreg whereas on the S2L, this is loaded. Could i seek feedback, if those who are successful in Power Button Wakes in Lion confirm their AppleSMcClient is loaded or if otherwise.

 

And, could some expert throw light on the function of AppleSMCClient and how to enable it.

 

Thanks.

 

I have the same issue with power button wakes and it going back to sleep without an additional click, yet AppleSMCClient is loaded in my ioreg. Incidentally, it's not only my power button, but also waking from magic mouse/magic trackpad, it requires two clicks as opposed to one (with one the system wakes with no monitor and then shortly goes back to sleep, as would just pressing the power button). One thing to note though, both my wired apple aluminum keyboard and wireless wake with one click, as well as my wired mouse. So I just have this problem with power button, magic mouse, and magic trackpad.

Share this post


Link to post
Share on other sites

What does the kernel log say if you press your magic mouse or trackpad just once? "wake reason: ?" maybe? Then you know you have the same problem.

Share this post


Link to post
Share on other sites
Have you tried if the SL AppleSMCClient works in Lion and if that would make a difference?

AppleSMCClient is not loaded so i do not know if it makes a difference. In post #9 antipop2323 says, in his case it is loaded but problem persists.

 

@antipop2323 - In my DS4P case , tested Apple AL Keyboard, Magic Trackpad, Magic Mouse and Wired Mouse all work with one click and HID Tickle appears automatically in less than 200 msecs. As for Power-Buttom and WOL, only wakes with second click or just touch of trackpad, mouse or button and HID Tickle appears accordingly; if re-sleep has not already happened. As for S2L, only WOL requires second click.

Share this post


Link to post
Share on other sites
What does the kernel log say if you press your magic mouse or trackpad just once? "wake reason: ?" maybe? Then you know you have the same problem.

 

 

Power Button Without Addition Click:

http://pastebin.com/Rd9Kt5r6

 

Magic Trackpad 1 Click:

http://pastebin.com/UHJtV7Mr

 

Wireless Keyboard 1 Click

http://pastebin.com/MXNgSk7r

 

I'm not convinced that the power button wake fails because there isn't a properly identified wake reason, clearly it is partially waking up with the power button... for some reason, there is no HID Tickle and the graphics are suppressed, which you'll also note happens with 1 click of the Magic Tracpad, even though it has a wake reason of Wake reason: IGBE HDEF USE2...

Share this post


Link to post
Share on other sites

I haven't noticed if this is the case for me. What app can I monitor my speedstep state with again? Some time since I did it last after I got it working in SL.

Share this post


Link to post
Share on other sites

I'm using istat menus

 

It tells you a rough reading of your CPU volage, speedstep for me means 0.89 V when idle. After waking it stays at 1.26 V

Share this post


Link to post
Share on other sites

this is pretty much my only hackintosh specific lion issue, but am not sure where we go from here... perhaps if anyone without the graphics suppression issue with power button wakes without additional mouse/keyboard strokes could post their DSDT we could compare...

Share this post


Link to post
Share on other sites

This is my only issue as well.

 

I'm just wondering how not more people could be affected by this, as it must be something that plagues at least anyone with the same motherboards as ours. I figured the EP45-UD3(XX) motherboard to quite popular around here.

Share this post


Link to post
Share on other sites

As per my OP, had a chance to install the HD4850 into the 945GCM-S2L but failed to get it working satisfactorily within that day. Reverted to GMA950 graphics. After stripping the S2L-dsdt including the WAK and PTS methods, sleeps and wakes in SL were AOK, while in Lion only WOL lead to no display and re-sleep. Also WOL can always boot if system is on soft-off.

As for the DS4P, no change or improvement, and WOL when system is soft-off failed to boot most of the time.

Must check in Windows the LAN wake properties, as both boards have the same RTL 8111C.

Share this post


Link to post
Share on other sites

It must have something to do with the new low power wake state introduced in Lion.

 

On genuine Macs (I have a 2007 Mini and a 2010 MBA), if you access network services or just do WOL the systems will wake with "Graphics Suppressed". The systems stay awake and do not go instantly back to sleep, so bonjour advertised network services can be accessed. They can then be woken fully with mouse/keyboard ("HID Tickle").

 

If I do "pmset -g log" on my EP45-UD3LR, it lists only wakes where it knows the reason, ie. USB EHC UHC. Since it can't recognize PWB1 or PEX wakes, I think powerd perhaps will reinitiate sleep instantly.

 

So I think either we need to get these wake reasons recognized (I have no idea if that is determined in DSDT), or perhaps it would be possible to downgrade powerd to the SL version (not the greatest solution).

 

 

Anyway which motherboards or not this is a problem for isn't dependent on if it includes GMA950 or not... I guess most GMA950 including boards just got a more Intel/Apple friendly power mangement/DSDT/Bios. Remember that there are Macs that do not have an Intel graphics card.

 

powerd sources released: http://opensource.apple.com/release/mac-os-x-107/

Share this post


Link to post
Share on other sites

Installed a cheap nVidia GT220 in the 945GCM-S2L setup. Status is same as with GMA950 graphics (Lion 11A511). Power button wakes are successful but for WOL system re-sleeps.

Share this post


Link to post
Share on other sites
Installed a cheap nVidia GT220 in the 945GCM-S2L setup. Status is same as with GMA950 graphics (Lion 11A511). Power button wakes are successful but for WOL system re-sleeps.

I do think that is intended behavior however.

 

If I wake my Mac Mini with Wake on LAN, it doesn't turn on the display, either. It stays in low power mode. Same if I access the Mini for Apple file sharing. It's on, but keeps the graphics off.

 

This is because Apple designed Lion only to turn on the display on user interaction.

 

If I wake my Mac Mini for Remote Mangement, the does display turn on.

 

The problem is how fast a hackintosh returns to sleep. It returns almost instantly, exactly because the wake reason isn't recognized.

 

So the problem isn't that WOL doesn't wake the display (it's per design), the problem is that WOL and Power Button isn't recognized as a proper wake reason, which makes it go back to sleep instantly.

 

You should check your console in Lion on the S2L and check what Wake Reason it gives you when you wake it with Power Button or WOL. If you get "?", it has the problem. If you get PWRB or PXS1 or something, then it works as it should.

Share this post


Link to post
Share on other sites

I agree with you that it isn't graphics card related, and all likely is the low power mode that you've mentioned, but I'm tellin' yah, my power button wakes return to sleep with a wake reason of ? but also wakes from my magic trackpad also returns to sleep (no hid tickle, graphics suppressed) with the wake reason defined.... (unless I double click)... IMO it's the same problem, regardless of wake reason.

Share this post


Link to post
Share on other sites

Well, if you only press the trackpad once, and it goes back to sleep, you should probably have "Wake Reason: ?" in the console. At least if you don't I have no clue what's going on.

Share this post


Link to post
Share on other sites

Yah, but it's Wake reason: IGBE HDEF USE2 for magic trackpad, yet no HID tickle and graphics are suppressed...yet w/ Apple Wireless Keyboard it's same wake reason, w/ HID ticke, and thusly wakes up... tis bizarre, since one would think they'd be quite comparable devices.... Power button is wake reason ? with no HID tickle & graphics suppressed like the both of you... I haven't tried WOL, as I don't believe the lan kext I use is supports WOL.

Share this post


Link to post
Share on other sites
Yah, but it's Wake reason: IGBE HDEF USE2 for magic trackpad, yet no HID tickle and graphics are suppressed...

I would be pretty sure if you pressed it just *once*, let it go back to sleep, then it would give you Wake Reason:? Somewhere in the console. So yeah I think it's all part of the same problem. I was hoping it could be fixed with some DSDT code, but I don't have any clue how that could be done.

yet w/ Apple Wireless Keyboard it's same wake reason, w/ HID ticke, and thusly wakes up... tis bizarre, since one would think they'd be quite comparable devices.... Power button is wake reason ? with no HID tickle & graphics suppressed like the both of you... I haven't tried WOL, as I don't believe the lan kext I use is supports WOL.

WOL doesn't need kext support (I think), the only thing kext support does is enable bonjour proxy wake. Any motherboard though can do WOL if you just enable it in the BIOS.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×