OpenCore-Strix-B450i icon indicating copy to clipboard operation
OpenCore-Strix-B450i copied to clipboard

Unable to wake after sleep

Open willza3 opened this issue 4 years ago • 16 comments

@willza3 - Did you experience sleep problem ? Cannot wake after sleep at all ( cpu, psu fan still spin, keyboard + mouse disconnected and cannot wake0. Just change CPU from 2400G -> 3500 and native mac wifi card and face this issue. LOL too many things to handle. I heard that this is the known issue but why it works for me at first but now didn't ...

Originally posted by @tranhoanvo in https://github.com/willza3/macOS-strix-B450i/issues/5#issuecomment-634799066

willza3 avatar May 30 '20 21:05 willza3

@tranhoanvo Could you test sleep without any USB devices connected?

willza3 avatar May 30 '20 21:05 willza3

@tranhoanvo Could you test sleep without any USB devices connected?

I have issue like him. I tested sleep without usb devices connected... it sleep ok and wake via power button. But can’t wake when usb devices connected

conchodaus avatar May 31 '20 17:05 conchodaus

@tranhoanvo Could you test sleep without any USB devices connected?

Just have time to do it. I have 2 things:

  • Yes, It does sleep without any USB connected (Properly).
  • BUT it instantly wakes up after the PC goes to sleep. ( Like when PC goes sleep fully 1 second later the PC auto wakes up). Oh, and it's not wake up by any Bluetooth or Wifi things ( I have turned them off).

tranhoanvo avatar Jun 01 '20 02:06 tranhoanvo

image This is my log, the log "powerd process is started" is normal logs, produced when I sleep only the display. From 06/01, we have:

  • "Entering Sleep state due to 'Idle Sleep': Using AC (Charge:0%) 25 secs" is sleep without any USB connected, and it has slept properly.
  • Right after that (1s), the PC automatically wakeup and the logging "Wake from Normal Sleep [CDNVA] : due to RTC0/Alarm Using AC (Charge:0%) xxx secs"

EDIT 1: image Also, my boot-args if it help.

EDIT 2: image Also my pmset -g :D

tranhoanvo avatar Jun 01 '20 14:06 tranhoanvo

image Log when Sleep with few USB connected, then stuck and have to hard reset by power button.

tranhoanvo avatar Jun 01 '20 16:06 tranhoanvo

I'm not even sure sleep ever worked for me in the first place thinking about it... I've tested with both OpenCore 0.5.8 & 0.5.9, 2017 iMac Pro and 2019 Mac Pro SMBIOS and even made a USB map but unfortunately I'm having the same issue now. Like you said, this is a very common issue with AMD and likely will never be fixed 🙃

For the time being, set your Energy Saver settings to the following to avoid any loss of work. Screenshot 2020-06-02 at 22 35 49

You could always attempt to create a USB map yourself and see if that fixes the issue for you (I wasn't actually hitting the 15 port limit so there was no need for me). I used this guide.

Let me know, Cheers.

willza3 avatar Jun 02 '20 21:06 willza3

I'm not even sure sleep ever worked for me in the first place thinking about it... I've tested with both OpenCore 0.5.8 & 0.5.9, 2017 iMac Pro and 2019 Mac Pro SMBIOS and even made a USB map but unfortunately, I'm having the same issue now. As you said, this is a very common issue with AMD and likely will never be fixed 🙃

For the time being, set your Energy Saver settings to the following to avoid any loss of work. Screenshot 2020-06-02 at 22 35 49

You could always attempt to create a USB map yourself and see if that fixes the issue for you (I wasn't actually hitting the 15 port limit so there was no need for me). I used this guide.

Let me know, Cheers.

I used to map port before :D Then I realized that it does nothing to help fix sleep, and I have no more than 15 ports. So I used your solution and seem likes it is the only solution for sleep right now.

But I want to know if it's OC fault and later releases they might fix it?

tranhoanvo avatar Jun 03 '20 07:06 tranhoanvo

I think we should buy usb hub 2.0 9 pin for keyboard and mouse usb. I orderd it and testing...

conchodaus avatar Jun 06 '20 12:06 conchodaus

I solved issue "wake after sleep". this is stuck with usb 3.0... our mainboard don't have usb 2.0 port. We must buy usb hub 2.0 9 pin (mainboard). Then keyboard and mouse usb plug in usb 2.0 port. Delete unnecessary usb ports and export usbport.kext via hackintool. Copy usbport.kext to efi opencore. Oc snapshot. Done. Sleep woking well. Screen Shot 2020-06-10 at 21 15 08 Screen Shot 2020-06-10 at 21 21 42 Screen Shot 2020-06-10 at 23 22 18

here is result: https://www.dropbox.com/s/aoj4n60znyk0smw/Video%206-10-20%2C%2021%2024%2015.mov?dl=0

conchodaus avatar Jun 10 '20 14:06 conchodaus

if i have something connected to the internal usb 2.0 port can i leave my keyboard and mouse plugged in to the usb 3.0 and have sleep work still?

carlosxfigueroa avatar Jun 25 '20 22:06 carlosxfigueroa

I bought the same thing as above and it works, except i didn’t do a usbkext left it as is without one and it slept all night

carlosxfigueroa avatar Jun 30 '20 18:06 carlosxfigueroa

@conchodaus any chance i can get your usb port.kext? I want to check if I’m doing this right. @willza3 wouldnt it be better to include USB ports prepatched? Since we all have the same board?

carlosxfigueroa avatar Jul 03 '20 21:07 carlosxfigueroa

@conchodaus any chance i can get your usb port.kext? I want to check if I’m doing this right. @willza3 wouldnt it be better to include USB ports prepatched? Since we all have the same board?

This is my usbport kext https://www.dropbox.com/s/fp0oxpf166i00hi/USBPorts.kext.zip?dl=0

conchodaus avatar Jul 04 '20 11:07 conchodaus

@willza3 wouldnt it be better to include USB ports prepatched? Since we all have the same board?

I don’t include a kext because everyone’s setup is different. For example, I patch for the ports on my case and monitor as well as the board itself

willza3 avatar Jul 05 '20 16:07 willza3

I don’t include a kext because everyone’s setup is different. For example, I patch for the ports on my case and monitor as well as the board itself @carlosxfigueroa Willza3's advice is right. you should patch for yourself. You can contact to me if you meet stuck. ;) My emaiL: [email protected]

conchodaus avatar Jul 06 '20 01:07 conchodaus

This issue seems to be fixed for me in Big Sur. Anyone else seeing the same?

willza3 avatar Nov 20 '20 16:11 willza3