Page 1 of 3

[Solved] Sleep wake solutions?

Posted: Thu Oct 10, 2019 6:09 pm
by Jagung
Hi guys, just updated to Catalina from Mojave.

Sleep and wake was working fine on Mojave, but not on Catalina.

Has anyone manage to get sleep to work on Catalina ?

*** Update: 22 March, 2020. Finally got sleep to work on my build.

Catalina 10.15.3
OC 0.5.6

Ryzen 3700x
Asus B450-F Gaming
MSI RX480 8gb
Corsair Vengeance 8gb DDR4 3600 x 2
Samsung NVME M2 Evo 970 Evo plus 500gb
Fenvi T919 WIFI BT card

Patriot 2.5" Sata SSD 500gb (dual boot to Windows)

Guides used
Step 1. TechNolli's guide to setup OC and Catalina Installation

Step 2. Used this Hackintool guide to create the USBPorts.kext file ... on.286553/

Sleep and Wake will not work if:
- USB 2.0 device plugged into the motherboard's USB 3.1 I/O ports
- USB 3.0 device plugged into the motherboard's USB 2.0 I/O ports
- USB 2.0 device connected to a USB 3.0 hub and plugged into the motherboard's USB 3.1 I/O port, Sleep works if only the hub is plugged into a USB 2.0 I/O port.
- Auto sleep and hibernate won't work if an external mechanical hard drive is mounted in OSX.

To take note when experimenting:
Start with unplugging all of your USB I/O devices, but keep your keyboard and mouse connected to the USB 2.0 I/O ports and see if sleep works.

Keep your USB device connections clean i.e. 3.0 devices --> 3.1 I/O ports and 2.0 devices --> 2.0 I/O ports.

Sleep may not work if USB hubs that has simultaneous 2.0 and 3.0 devices plugged together into either a USB 2.0 I/O port or USB 3.1 I/O port.

You will need to experiment further If you board allows for different types of device i.e. Type C, or maybe even Thunderbolt.

Re: Sleep wake solutions?

Posted: Fri Oct 11, 2019 9:20 pm
by AntarcticPL
Yes, working on my fx8350 and RX580 hack with the same settings as for Mojave in my config.plist.

Re: Sleep wake solutions?

Posted: Sat Oct 12, 2019 2:09 am
by Shaneee
It seems sleep is broken on Catalina.

Re: Sleep wake solutions?

Posted: Sat Oct 12, 2019 3:05 am
by Mudza
AntarcticPL wrote: Fri Oct 11, 2019 9:20 pm Yes, working on my fx8350 and RX580 hack with the same settings as for Mojave in my config.plist.
Can you share your config.plist, i have fx8120 try many way to sleep wake but still no luck

Re: Sleep wake solutions?

Posted: Sat Oct 12, 2019 4:02 am
by bdfish1104
My Ryzen 3600 could sleep and wake up without any issue on Mojave but could not sleep on Catalina.

It always report kernel panic which is caused by

I have tried some way to solve it but no lucky.

Re: Sleep wake solutions?

Posted: Sat Oct 12, 2019 5:15 am
by micheldiz
This also happens on my machine. I've first just update Mojave to Catalina. Works fine, but no Sleep/wake. In Mojave the sleep/wake just works. I was very happy cuz it "just worked" after I installed a rencently bought RX 580 (suffery with Nvidia and a buggy old R9 for years, I was fulfilled, so then... I updated it). So then I tried a clean install. No luck again.

I'm using the vanilla pslist and also have a pendrive with a custom EFI. Both works, but no sleep/wake.

What happens is, when I send it to sleep. The machine tries to. The USB perifericals turn off and so on. But the motherboard keeps on for hours. The BIOS POST Code painel keeps the same code (saying it stills on and nothing changes).

I think something is preventing it to finish the sleep. Not sure if it is the USB controler(AppleUSBXHCIPCI). Maybe the kernel? As I'm not using any kernel crafted for AMD specifically.

I have a software called "Sleep Expert" and it is all normal on it.

With my other pendrive EFI I've tested several combinations of clover configs. No luck. The whole system seems totally fine.

Re: Sleep wake solutions?

Posted: Sat Oct 12, 2019 10:05 am
by AntarcticPL
I am still using the XLNCUSBFix.kext that I needed for Mojave to get my USB ports working in Catalina.
See my config.plist, wiped serial.

Re: Sleep wake solutions?

Posted: Sat Oct 12, 2019 11:24 am
by Mudza
still not working for me, after use your config.plist what is your hibernate mode? I use 0 mode is that right?

Re: Sleep wake solutions?

Posted: Sat Oct 12, 2019 7:40 pm
by micheldiz
@AntarcticPL, Are you saying it works for you?

I've just test your clover configs and it didn't worked for me. Actually it gets a bit worse, don't even boot.

See photos from the screen ... sp=sharing
also some other printscreen. And my original config.plist

Using the config.plist from AntarcticPL with
Code: Select all
-v -UseKernelCache No 
says "This version of Mac Os is not supported on this platform!"
Then I used my backup with the same clover, and I get a panic. So I used another pendrive with the original clover configs.


PS. My pmset configs
Code: Select all
pmset -g                     
System-wide power settings:
Currently in use:
 hibernatemode        0
 womp                 1
 networkoversleep     0
 sleep                10
 Sleep On Power Button 1
 ttyskeepawake        1
 hibernatefile        /var/vm/sleepimage
 disksleep            10
 displaysleep         10

pmset -g assertions             
2019-10-12 16:29:57 -0300 
Assertion status system-wide:
   BackgroundTask                 0
   ApplePushServiceTask           0
   UserIsActive                   1
   PreventUserIdleDisplaySleep    0
   PreventSystemSleep             0
   ExternalMedia                  1
   PreventUserIdleSystemSleep     0
   NetworkClientActive            0
Listed by owning process:
   pid 73(powerd): [0x0000000e00088000] 00:22:02 ExternalMedia named: ""  
   pid 118(hidd): [0x0000001600098051] 00:00:00 UserIsActive named: " serviceID:1000004ec name:AppleUserHIDEventSe product:GXT 890 Keyboard eventType:3"  
	Timeout will fire in 600 secs Action=TimeoutActionRelease
Kernel Assertions: 0x104=USB,MAGICWAKE
   id=500  level=255 0x4=USB mod=31/12/1969 21:00 owner=GXT 890 Keyboard
   id=501  level=255 0x4=USB mod=31/12/1969 21:00 owner=Patriot Memory
   id=502  level=255 0x4=USB mod=31/12/1969 21:00 owner=Razer USB Audio Enhancer
   id=503  level=255 0x4=USB mod=31/12/1969 21:00 owner=Gaming Mouse G502
   id=504  level=255 0x100=MAGICWAKE mod=31/12/1969 21:00 description=en0 owner=en0
Idle sleep preventers: IODisplayWrangler

Re: Sleep wake solutions?

Posted: Sat Oct 12, 2019 8:06 pm
by AntarcticPL
Hi Micheldiz, yes it works for me without any problem.
But, I'm still using Gigabyte GA-990fxa-UD5 motherboard with AMD fx8350 processor and RX580 GPU.

Make sure you generate a new serial before using my config.plist. I have wiped it.
And of course change your settings in Graphics section of Clover Configurator for your GPU if needed, I'm using Orinoco (rx580).