Jump to content
Dogez

[SOLVED] Sleep works only once

Recommended Posts

Hello, I have a Samsung RC530-S03

-Core i7 2670QM with HD3000 (speedstep working with patched AppleIntelCPUPowerManagement)

-Chipset Intel HM65

-nVidia GT540M (not working)

-ALC269 (working with patched AppleHDA)

-Ethernet: I'm using AppleRTL8169Ethernet and works fine; Wifi card: ATH-AR5B95 (working with patched IO802.11)

-Chameleon bootloader


Sleep works fine for the first time after startup (i don't know why, but I have to press the power button twice to wake), but after that:

-case 1: clicking sleep on Apple menu does nothing

-case 2: clicking sleep causes the screen to shut down for 1 second / occasionally freezes the computer for a few seconds

-case 3: clicking sleep or waiting for auto-sleep causes the screen to shut down and fans and HDD to stop, while the power light stays ON and after a few minutes (10 or less) it wakes automatically


Everything is working fine after wake (except for internal speakers).

When I get case 3 (it wakes automatically), kernel log says:

"Wake reason = PWRB EHC2 EHC1"

or

"Wake reason = PWRB"

and

"The USB device HubDevice (Port 1 of Hub at 0x1a000000) may have caused a wake by issuing a remote wakeup (2) or something like that."


-I tried using SleepEnabler but it gives me KP on boot (attempt to re-register power management... or version mismatch between kernel and CPU).

-Since I'm using a DSDT (it's basically the original one, i just corrected errors, no other patches), I tried deleting Method _PRW from Device USB (1 to 7) but no success. Anyway it doesn't make any difference without DSDT.

-I tried the following code

Method (_PSW, 1, NotSerialized)
					{
						If (Arg0)
						{
							// Store (0x03, U4EN)
							// Disable USB4 capability to wake a sleeping system
							Store (0x00, U4EN)
						}
						Else
						{
							Store (0x00, U4EN)
						}
					}

but again no success

-I tried to generate C-States with Chameleon

-I tried EHCI and UHCI DSDT patches

-I tried sleep without any USB device connected

-I don't know whether I could edit EHC1 and EHC2 since kernel log says they're responsible for wake


I'm attaching my DSDT (I've already corrected errors and warnings) and the untouched one.

Thanks for your help!

Archivio.zip

Edited by Guest

Samsung RC530-S03

OSX 10.9 Mavericks

Link to comment
Share on other sites

@artur-pt:


Thanks for your support

With your DSDT, after the first sleep, I only get "case 3" (the screen shuts down, the fan and the HDD stop, but power light doesn't blink, it stays still), so after a few minutes it wakes automatically.

I'm still using GenerateC-States, if it can make any difference.


Anyway I noticed something from kernel log: after the first sleep,

Wake reason = PWRB

happens as soon as I click Sleep (19.32.20), and not when it actually wakes (19.35.34), so probably he doesn't even enter sleep mode.

Any help is appreciated,

thanks!

887196743_Schermata2013-11-25alle19_35_46.png.0972d39c8f368c247999342665fa5d68.png

Samsung RC530-S03

OSX 10.9 Mavericks

Link to comment
Share on other sites

@artur-pt:


Still doesn't work, the only difference is that now it says

"Wake reason = power-button" instead of PWRB


I'm not sure about that, but I was wondering if I could disable this PWRB/PowerButton from DSDT, even if this means I won't be able to access the menu Reboot/Sleep/Shutdown by pressing it...

Samsung RC530-S03

OSX 10.9 Mavericks

Link to comment
Share on other sites

Try this

 

DSDT.aml.zip

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

Link to comment
Share on other sites

I finally managed to solve the sleep issue!


Simply added _PRW to H_EC Device in DSDT:

Device (H_EC)
               {
                   Name (_HID, EisaId ("PNP0C09"))
                   Name (_UID, One)
                   Name (_PRW, Package (0x02)
                   {
                       0x1E, 
                       0x04
                   })

 

Now sleep works even after the first time ;)


Thanks anyway to those who helped me!

Samsung RC530-S03

OSX 10.9 Mavericks

Link to comment
Share on other sites

Hi all


I have an ACER 7720g working perfectly on yosemite. Everything works except sleep which works only once like Dogez. I tried to add the _PWR secrion like Dogez did below me EC0 device section in my case.

 

Device (EC0)
               {
                   Name (_HID, EisaId ("PNP0C09"))
                   Name (_UID, One)
                   Name (_GPE, 0x1C)
                   Name (_PRW, Package (0x02)
                   {
                       0x1E, 
                       0x04
                   })
                   Method (_CRS, 0, NotSerialized)
                   {
                       Name (BFFR, ResourceTemplate ()
                       {
                           IO (Decode16,
                               0x0062,             // Range Minimum
                               0x0062,             // Range Maximum
                               0x00,               // Alignment
                               0x01,               // Length
                               )
                           IO (Decode16,
                               0x0066,             // Range Minimum
                               0x0066,             // Range Maximum
                               0x00,               // Alignment
                               0x01,               // Length
                               )
                       })
                       Return (BFFR)
                   }

 

It didn't work. Do the numbers blow the within the _PRW section mean anything?

 

Name (_PRW, Package (0x02)
                   {
                       0x1E, 
                       0x04
                   })

 

I'm a noob when it comes to dsdt editing. How do I find the kernel log file?


I've attached my dsdt. My pc sleeps and wakes perfectly the first time. Wakes from power button or from usb devices. The second time the screen goes black and I have to restart. The system uses only fakesmc and voodoops2 for trackpad and laptop keyboard so it's a clean yosemite install using clover. AppleLPC is loaded.


If I can get sleep to work more than once it would be a perfect install. Thanks in advance!!!

 

dsdt.aml.zip

Link to comment
Share on other sites

Greetings to you all! My hackintosh is running macOS High Sierra 10.13.2 and I was able to fix sleep and shutdown issues with a series of terminal commands. They must be entered in the order listed below. I hope it helps you guys too.


sudo defaults write /System/Library/LaunchDaemons/com.apple.securityd ExitTimeOut -int 5


sudo defaults write /System/Library/LaunchDaemons/com.apple.mDNSResponder ExitTimeOut -int 5


sudo defaults write /System/Library/LaunchDaemons/com.apple.diskarbitrationd ExitTimeOut -int 5


sudo defaults write /System/Library/LaunchDaemons/com.apple.coreservices.appleevents ExitTimeOut -int 5


sudo defaults write /System/Library/LaunchAgents/com.apple.coreservices.appleid.authentication ExitTimeOut -int 5

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.





×
  • Create New...