[SOLVED] Sleep works only once

[SOLVED] Sleep works only once

Postby Dogez » 25 Nov 2013, 17:16

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
Code: Select all
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!
You do not have the required permissions to view the files attached to this post.
Last edited by Dogez on 26 Nov 2013, 23:14, edited 1 time in total.
Samsung RC530-S03
OSX 10.9 Mavericks
Dogez
 
Posts: 4
Joined: 20 Jun 2012, 13:45
Location: Italy
CPU: Core i7 2670QM
Motherboard: Intel HM65
GPU: HD3000/GT540M

Re: Sleep works only once

Postby artur-pt » 25 Nov 2013, 18:49

@Dogez

hello

try this one

DSDT.zip


good hack
You do not have the required permissions to view the files attached to this post.
PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI
Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000
My OS X Files - join me at irc.freenode.net/##olarila
User avatar
artur-pt
Staff
 
Posts: 4942
Joined: 24 May 2011, 12:04

Re: Sleep works only once

Postby Dogez » 25 Nov 2013, 19:38

@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!
You do not have the required permissions to view the files attached to this post.
Samsung RC530-S03
OSX 10.9 Mavericks
Dogez
 
Posts: 4
Joined: 20 Jun 2012, 13:45
Location: Italy
CPU: Core i7 2670QM
Motherboard: Intel HM65
GPU: HD3000/GT540M

Re: Sleep works only once

Postby artur-pt » 25 Nov 2013, 20:35

@Dogez

i apply another fix to PWRB (is related with power button)

u can test it

DSDT.aml.zip


good hack
You do not have the required permissions to view the files attached to this post.
PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI
Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000
My OS X Files - join me at irc.freenode.net/##olarila
User avatar
artur-pt
Staff
 
Posts: 4942
Joined: 24 May 2011, 12:04

Re: Sleep works only once

Postby Dogez » 25 Nov 2013, 21:28

@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
Dogez
 
Posts: 4
Joined: 20 Jun 2012, 13:45
Location: Italy
CPU: Core i7 2670QM
Motherboard: Intel HM65
GPU: HD3000/GT540M

Re: Sleep works only once

Postby artur-pt » 25 Nov 2013, 22:37

hello

man no ideas.. u now can test that .. remove the device from dsdt ?

u should google for that particular note .. any fix..

good hack
PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI
Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000
My OS X Files - join me at irc.freenode.net/##olarila
User avatar
artur-pt
Staff
 
Posts: 4942
Joined: 24 May 2011, 12:04

Re: Sleep works only once

Postby pernacabeluda » 25 Nov 2013, 22:48

Try this

DSDT.aml.zip
You do not have the required permissions to view the files attached to this post.
User avatar
pernacabeluda
Senior
 
Posts: 4590
Joined: 22 Oct 2012, 02:35

Re: Sleep works only once

Postby Dogez » 26 Nov 2013, 21:57

I finally managed to solve the sleep issue!

Simply added _PRW to H_EC Device in DSDT:
Code: Select all
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
Dogez
 
Posts: 4
Joined: 20 Jun 2012, 13:45
Location: Italy
CPU: Core i7 2670QM
Motherboard: Intel HM65
GPU: HD3000/GT540M

Re: [SOLVED] Sleep works only once

Postby yioulas » 26 Dec 2015, 08:48

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.

Code: Select all
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?

Code: Select all
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
You do not have the required permissions to view the files attached to this post.
yioulas
 
Posts: 1
Joined: 30 Jun 2015, 04:00
CPU: Intel Core 2 Processor T7300
Motherboard: Acer MBAHH02001
GPU: Nvidia Geforce 8400m


Return to Mavericks (10.9)

Who is online

Users browsing this forum: No registered users and 1 guest