Closed abala16 closed 2 years ago
Hi,
Are you try this https://github.com/AlGreyy/ryzenusbfix!
I have the same problem with Mojave, and using this repo to fix!
Just tried that but unfortunately it didn't fix it.
Any solution about " Come back from sleep " on Catalina ?
Not yet
Seems to be a common problem, will need some more work to find a fix
Has anyone tested the OpenCore version to see if this issue is present?
It is present with OpenCore.
Seems like a problem with the USB Controller? This is the error report I got when I restart the computer after it panics during sleep.
panic(cpu 0 caller 0xffffff80108a295c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOUSBHostFamily. Thread 0x2b16.
Failure code:: 0x00000048 00000014
Backtracing specified thread
Backtrace (CPU 0), Frame : Return Address
0xffffff8754143900 : 0xffffff8010260088 mach_kernel : _machine_switch_context + 0xc8
0xffffffa75e8139b0 : 0xffffff801015d6f1 mach_kernel : _thread_unstop + 0x1771
0xffffffa75e813a20 : 0xffffff801015beef mach_kernel : _thread_block_reason + 0xaf
0xffffffa75e813a70 : 0xffffff801014cd33 mach_kernel : _lck_mtx_sleep_deadline + 0x73
0xffffffa75e813ab0 : 0xffffff801083f7cf mach_kernel : __ZN10IOWorkLoop9sleepGateEPvyj + 0xbf
0xffffffa75e813af0 : 0xffffff80108408d3 mach_kernel : __ZN13IOEventSource9sleepGateEPvyj + 0x53
0xffffffa75e813b30 : 0xffffff7f90f32258 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController20lowerOnePowerStateToEm + 0x114
0xffffffa75e813ca0 : 0xffffff7f916c3af4 com.apple.driver.usb.AppleUSBXHCI : __ZN12AppleUSBXHCI20lowerOnePowerStateToEm + 0x2e2
0xffffffa75e813d10 : 0xffffff7f917e5e1a com.apple.driver.usb.AppleUSBXHCIPCI : __ZN15AppleUSBXHCIPCI20lowerOnePowerStateToEm + 0x1fc
0xffffffa75e813d60 : 0xffffff7f90f31053 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController18setPowerStateGatedEmP9IOService + 0x2db
0xffffffa75e813dc0 : 0xffffff80108421a8 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138
0xffffffa75e813e20 : 0xffffff7f90f30d74 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController13setPowerStateEmP9IOService + 0x32
0xffffffa75e813e30 : 0xffffff8010827164 mach_kernel : __ZN9IOService19driverSetPowerStateEv + 0x184
0xffffffa75e813ea0 : 0xffffff8010826f6a mach_kernel : __ZN9IOService15pmDriverCalloutEPS_ + 0x2a
0xffffffa75e813ec0 : 0xffffff801017d765 mach_kernel : _thread_call_delayed_timer + 0xea5
0xffffffa75e813f40 : 0xffffff801017d291 mach_kernel : _thread_call_delayed_timer + 0x9d1
0xffffffa75e813fa0 : 0xffffff80100e213e mach_kernel : _call_continuation + 0x2e
Kernel Extensions in backtrace:
com.apple.iokit.IOUSBHostFamily(1.2)[0660FD10-3DCF-39D8-BD86-E9D78DCA7063]@0xffffff7f90f1d000->0xffffff7f91015fff
dependency: com.apple.driver.AppleBusPowerController(1.0)[084ABF9F-E110-38CF-A19D-5CB779D71000]@0xffffff7f90f03000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[96F78625-E64F-3C9E-995A-CD09823B1F07]@0xffffff7f90f0b000
dependency: com.apple.driver.AppleUSBHostMergeProperties(1.2)[9A255BB0-C071-30A0-AEEC-2BE9E7231523]@0xffffff7f90f19000
com.apple.driver.usb.AppleUSBXHCI(1.2)[0C67BAEB-2FF4-3E3B-8706-51033B2EBE32]@0xffffff7f916af000->0xffffff7f91706fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[039E19F6-698F-3AE3-8DF6-8AA1D9EF1525]@0xffffff7f90e93000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[0660FD10-3DCF-39D8-BD86-E9D78DCA7063]@0xffffff7f90f1d000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[96F78625-E64F-3C9E-995A-CD09823B1F07]@0xffffff7f90f0b000
com.apple.driver.usb.AppleUSBXHCIPCI(1.2)[DC2D1F3A-4ABC-3DBC-BA7F-9E2D75AF3619]@0xffffff7f917de000->0xffffff7f9180ffff
dependency: com.apple.iokit.IOACPIFamily(1.4)[039E19F6-698F-3AE3-8DF6-8AA1D9EF1525]@0xffffff7f90e93000
dependency: com.apple.iokit.IOPCIFamily(2.9)[A34C5DFD-0509-3E41-A041-BC0F2C58F65C]@0xffffff7f90ea5000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[0660FD10-3DCF-39D8-BD86-E9D78DCA7063]@0xffffff7f90f1d000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[96F78625-E64F-3C9E-995A-CD09823B1F07]@0xffffff7f90f0b000
dependency: com.apple.driver.usb.AppleUSBXHCI(1.2)[0C67BAEB-2FF4-3E3B-8706-51033B2EBE32]@0xffffff7f916af000
BSD process name corresponding to current thread: kernel_task
Boot args: -v keepsyms=1 npci=0x2000 debug=0x100 agdpmod=pikera alcid=7
Mac OS version:
19C39d
Kernel version:
Darwin Kernel Version 19.2.0: Sat Nov 9 05:51:39 PST 2019; root:xnu-6153.61.1~21/RELEASE_X86_64
Kernel UUID: 910E828E-404E-3C00-8CC4-3E33AF4DBA87
Kernel slide: 0x000000000fe00000
Kernel text base: 0xffffff8010000000
__HIB text base: 0xffffff800ff00000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file available: YES (0x0)
System uptime in nanoseconds: 992217127921
here is my report: CPU: Ryzen 2700X MB: ASUS X570 TUF GAMING PLUS (Wi-Fi) GPU: 5700XT
panic(cpu 0 caller 0xffffff8017aa295c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOUSBHostFamily. Thread 0x1eba.
Failure code:: 0x00000028 00000014
Backtracing specified thread
Backtrace (CPU 0), Frame : Return Address
0xffffff83d3723900 : 0xffffff8017460088 mach_kernel : _machine_switch_context + 0xc8
0xffffff83cfb7b9b0 : 0xffffff801735d6f1 mach_kernel : _thread_unstop + 0x1771
0xffffff83cfb7ba20 : 0xffffff801735beef mach_kernel : _thread_block_reason + 0xaf
0xffffff83cfb7ba70 : 0xffffff801734cd33 mach_kernel : _lck_mtx_sleep_deadline + 0x73
0xffffff83cfb7bab0 : 0xffffff8017a3f7cf mach_kernel : __ZN10IOWorkLoop9sleepGateEPvyj + 0xbf
0xffffff83cfb7baf0 : 0xffffff8017a408d3 mach_kernel : __ZN13IOEventSource9sleepGateEPvyj + 0x53
0xffffff83cfb7bb30 : 0xffffff7f98497278 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController20lowerOnePowerStateToEm + 0x114
0xffffff83cfb7bca0 : 0xffffff7f98c14af4 com.apple.driver.usb.AppleUSBXHCI : __ZN12AppleUSBXHCI20lowerOnePowerStateToEm + 0x2e2
0xffffff83cfb7bd10 : 0xffffff7f98d36e1a com.apple.driver.usb.AppleUSBXHCIPCI : __ZN15AppleUSBXHCIPCI20lowerOnePowerStateToEm + 0x1fc
0xffffff83cfb7bd60 : 0xffffff7f98496073 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController18setPowerStateGatedEmP9IOService + 0x2db
0xffffff83cfb7bdc0 : 0xffffff8017a421a8 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138
0xffffff83cfb7be20 : 0xffffff7f98495d94 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController13setPowerStateEmP9IOService + 0x32
0xffffff83cfb7be30 : 0xffffff8017a27164 mach_kernel : __ZN9IOService19driverSetPowerStateEv + 0x184
0xffffff83cfb7bea0 : 0xffffff8017a26f6a mach_kernel : __ZN9IOService15pmDriverCalloutEPS_ + 0x2a
0xffffff83cfb7bec0 : 0xffffff801737d765 mach_kernel : _thread_call_delayed_timer + 0xea5
0xffffff83cfb7bf40 : 0xffffff801737d291 mach_kernel : _thread_call_delayed_timer + 0x9d1
0xffffff83cfb7bfa0 : 0xffffff80172e213e mach_kernel : _call_continuation + 0x2e
Kernel Extensions in backtrace:
com.apple.iokit.IOUSBHostFamily(1.2)[C0C182A7-012B-3484-8AE0-5C383BD3EDB1]@0xffffff7f98482000->0xffffff7f9857afff
dependency: com.apple.driver.AppleBusPowerController(1.0)[47522661-FFD4-378B-B5C1-F68D05AC6F7D]@0xffffff7f98468000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[9A875EBB-4432-3A19-A58B-1DD5A1067EAC]@0xffffff7f98470000
dependency: com.apple.driver.AppleUSBHostMergeProperties(1.2)[B28E651B-348A-3884-B27A-A87B110E037C]@0xffffff7f9847e000
com.apple.driver.usb.AppleUSBXHCI(1.2)[05F64136-2809-3A7D-9D64-0E70113E6963]@0xffffff7f98c00000->0xffffff7f98c57fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[3467C105-9354-3BD2-85F3-E5AEF94BD275]@0xffffff7f98435000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[C0C182A7-012B-3484-8AE0-5C383BD3EDB1]@0xffffff7f98482000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[9A875EBB-4432-3A19-A58B-1DD5A1067EAC]@0xffffff7f98470000
com.apple.driver.usb.AppleUSBXHCIPCI(1.2)[C9E5A322-F99B-3215-A4E5-A7D5F9EC0B19]@0xffffff7f98d2f000->0xffffff7f98d60fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[3467C105-9354-3BD2-85F3-E5AEF94BD275]@0xffffff7f98435000
dependency: com.apple.iokit.IOPCIFamily(2.9)[1286D5E5-A6A1-3C44-A244-04C068903DB2]@0xffffff7f97d2f000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[C0C182A7-012B-3484-8AE0-5C383BD3EDB1]@0xffffff7f98482000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[9A875EBB-4432-3A19-A58B-1DD5A1067EAC]@0xffffff7f98470000
dependency: com.apple.driver.usb.AppleUSBXHCI(1.2)[05F64136-2809-3A7D-9D64-0E70113E6963]@0xffffff7f98c00000
BSD process name corresponding to current thread: kernel_task
Boot args: npci=0x2000 debug=0x100 keepsyms=1 agdpmod=pikera
Mac OS version:
19C57
Kernel version:
Darwin Kernel Version 19.2.0: Sat Nov 9 03:47:04 PST 2019; root:xnu-6153.61.1~20/RELEASE_X86_64
Kernel UUID: C3E7E405-C692-356B-88D3-C30041FD1E72
Kernel slide: 0x0000000017000000
Kernel text base: 0xffffff8017200000
__HIB text base: 0xffffff8017100000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file available: NO (0xe00002bc)
System uptime in nanoseconds: 366431577074
Mapping USB ports this guide is reported to fix the sleep issues for a majority of users. Additionally there have been a few reports of enabling AGPM fixing sleep.
I suggest trying both of these methods to all past reports and future readers.
Mapping USB ports this guide is reported to fix the sleep issues for a majority of users. Additionally there have been a few reports of enabling AGPM fixing sleep.
I suggest trying both of these methods to all past reports and future readers.
Hey there, actually mapping USB ports does not produce any results - the hackintosh still hangs, with the same KP @riverscn got. Interesting thing is that if I also map XHC0 ports (aside from PTXH) the result is the same. But if I declare no ports in XHC0 (PTXH is still declared) the computer succesfully goes to sleep (and can wake), but as expected I lose all USB3.0 ports from XHC0. My mobo is MSI X470 Gaming Plus. I hope that helps in some way.
I have the same problem...
@IOIIIO I mapped USB ports and sleep issue still happens. Sleep just hang the system, on reboot it seems no panic on previous sleep.
I tried to enabling AGPM, but the original DSDT do not seems to have CPU0/PR00. I can see C000 using IORegistryExplorer (but not DSDT). I made a PLUG dsl with _PR.C000 it do not seems have any effect. Any help on setup this is greatly appreciated.
board: X570 I Aorus Pro Wifi / cpu: 3950X
Same issue here... Ryzen 5 3600x ASUS prime X570 pro. I’m a noob and don’t understand how to map usbs, but when I put my machine to sleep, my hard disk shuts off after 15 secs, but the fans stay on. In Linux, it powers off in 2 seconds, then fans shut off less than a second later.
Ryzen 3600 MSI B450 Motar Max. Mine cann't go to sleep. Clicked sleep and the monitor goes black then come back again in 1 second. Besides the USB 2.0 ports in the front seems not work, I've checked the cable is good. BTW, the OS is installed from 10.15.3 and no upgrade till now.
similar behavior here on a X570 Aorus Pro / R9 3900 / RX5700 /10.15.3, usb ports mapped and working (bluetooth goes through a Fenvi T919 using USB). My findings up to now: As long as I do not use any USB mouse or keyboard sleep mode is ok.
I'm experiencing a similar issue:
panic(cpu 0 caller 0xffffff8013691b2c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOUSBHostFamily. Thread 0xe893.
Failure code:: 0x00000008 00000014
Backtracing specified thread
Backtrace (CPU 0), Frame : Return Address
0xffffff83cb353900 : 0xffffff80130471e8 mach_kernel : _machine_switch_context + 0xc8
0xffffffa3e8f23990 : 0xffffff8012f433f1 mach_kernel : _thread_unstop + 0x1731
0xffffffa3e8f23a00 : 0xffffff8012f41c2f mach_kernel : _thread_block_reason + 0xaf
0xffffffa3e8f23a50 : 0xffffff8012f32a53 mach_kernel : _lck_mtx_sleep_deadline + 0x73
0xffffffa3e8f23a90 : 0xffffff801362d65f mach_kernel : __ZN10IOWorkLoop9sleepGateEPvyj + 0xbf
0xffffffa3e8f23ad0 : 0xffffff801362e773 mach_kernel : __ZN13IOEventSource9sleepGateEPvyj + 0x53
0xffffffa3e8f23b10 : 0xffffff7f93d42a5a com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController20lowerOnePowerStateToEm + 0x114
0xffffffa3e8f23c80 : 0xffffff7f94123890 com.apple.driver.usb.AppleUSBXHCI : __ZN12AppleUSBXHCI20lowerOnePowerStateToEm + 0x2e2
0xffffffa3e8f23cf0 : 0xffffff7f94246c50 com.apple.driver.usb.AppleUSBXHCIPCI : __ZN15AppleUSBXHCIPCI20lowerOnePowerStateToEm + 0x1fc
0xffffffa3e8f23d40 : 0xffffff7f93d41859 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController18setPowerStateGatedEmP9IOService + 0x2df
0xffffffa3e8f23da0 : 0xffffff8013630048 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138
0xffffffa3e8f23e00 : 0xffffff7f93d41529 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController13setPowerStateEmP9IOService + 0xcf
0xffffffa3e8f23e30 : 0xffffff8013614e04 mach_kernel : __ZN9IOService19driverSetPowerStateEv + 0x184
0xffffffa3e8f23ea0 : 0xffffff8013614c0a mach_kernel : __ZN9IOService15pmDriverCalloutEPS_ + 0x2a
0xffffffa3e8f23ec0 : 0xffffff8012f63545 mach_kernel : _thread_call_delayed_timer + 0xec5
0xffffffa3e8f23f40 : 0xffffff8012f63071 mach_kernel : _thread_call_delayed_timer + 0x9f1
0xffffffa3e8f23fa0 : 0xffffff8012ec713e mach_kernel : _call_continuation + 0x2e
Kernel Extensions in backtrace:
com.apple.iokit.IOUSBHostFamily(1.2)[CC813BD5-B83C-3B83-A95E-796D87DE8F81]@0xffffff7f93d2d000->0xffffff7f93e26fff
dependency: com.apple.driver.AppleBusPowerController(1.0)[DEBDD821-1472-371A-896A-BC5C19BD76D0]@0xffffff7f93d13000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[A9FB7951-7658-34C4-9A44-0B6DBE6F7F78]@0xffffff7f93d1b000
dependency: com.apple.driver.AppleUSBHostMergeProperties(1.2)[19CEF2B0-63C1-34CC-A9CD-BDF842BE5CB3]@0xffffff7f93d29000
com.apple.driver.usb.AppleUSBXHCI(1.2)[08964881-BCC5-3A07-B3CA-DF5B3512B740]@0xffffff7f9410f000->0xffffff7f94166fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[9D1FF279-C4A2-3344-902F-E0B22B508689]@0xffffff7f93ca1000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[CC813BD5-B83C-3B83-A95E-796D87DE8F81]@0xffffff7f93d2d000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[A9FB7951-7658-34C4-9A44-0B6DBE6F7F78]@0xffffff7f93d1b000
com.apple.driver.usb.AppleUSBXHCIPCI(1.2)[5B0343A2-9C4B-3A81-81C3-03601B394CED]@0xffffff7f9423e000->0xffffff7f94272fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[9D1FF279-C4A2-3344-902F-E0B22B508689]@0xffffff7f93ca1000
dependency: com.apple.iokit.IOPCIFamily(2.9)[1B1F3BBB-9212-3CF9-94F8-8FEF0D3ACEC4]@0xffffff7f93cb3000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[CC813BD5-B83C-3B83-A95E-796D87DE8F81]@0xffffff7f93d2d000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[A9FB7951-7658-34C4-9A44-0B6DBE6F7F78]@0xffffff7f93d1b000
dependency: com.apple.driver.usb.AppleUSBXHCI(1.2)[08964881-BCC5-3A07-B3CA-DF5B3512B740]@0xffffff7f9410f000
BSD process name corresponding to current thread: kernel_task
Boot args: -v keepsyms=1 debug=0x100
Mac OS version:
19E266
Kernel version:
Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6
Kernel slide: 0x0000000012c00000
Kernel text base: 0xffffff8012e00000
__HIB text base: 0xffffff8012d00000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file available: YES (0x0)
System uptime in nanoseconds: 5335522878825
CPU: Ryzen 3950X Motherboard: Gigabyte X570 AORUS Elite Graphics Card: RX580 Wireless Card: Fenvi T919 with Bluetooth Hooked Up
Lilu.kext VirtualSMC.kext WhateverGreen.kext
ApfsDriverLoader.efi FwRuntimeServices.efi VBoxHfs.efi
SSDT-EC-USBX.aml from here https://github.com/khronokernel/Opencore-Vanilla-Desktop-Guide/blob/master/extra-files/SSDT-EC-USBX-AMD.aml
The crash seems to happen on sleep not on waking up from sleep as the system uptime in nanoseconds is about 1.48 hours.
I have not tried mapping the USB ports yet.
I'm experiencing a similar issue:
Kernel Panic
panic(cpu 0 caller 0xffffff8013691b2c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOUSBHostFamily. Thread 0xe893. Failure code:: 0x00000008 00000014 Backtracing specified thread Backtrace (CPU 0), Frame : Return Address 0xffffff83cb353900 : 0xffffff80130471e8 mach_kernel : _machine_switch_context + 0xc8 0xffffffa3e8f23990 : 0xffffff8012f433f1 mach_kernel : _thread_unstop + 0x1731 0xffffffa3e8f23a00 : 0xffffff8012f41c2f mach_kernel : _thread_block_reason + 0xaf 0xffffffa3e8f23a50 : 0xffffff8012f32a53 mach_kernel : _lck_mtx_sleep_deadline + 0x73 0xffffffa3e8f23a90 : 0xffffff801362d65f mach_kernel : __ZN10IOWorkLoop9sleepGateEPvyj + 0xbf 0xffffffa3e8f23ad0 : 0xffffff801362e773 mach_kernel : __ZN13IOEventSource9sleepGateEPvyj + 0x53 0xffffffa3e8f23b10 : 0xffffff7f93d42a5a com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController20lowerOnePowerStateToEm + 0x114 0xffffffa3e8f23c80 : 0xffffff7f94123890 com.apple.driver.usb.AppleUSBXHCI : __ZN12AppleUSBXHCI20lowerOnePowerStateToEm + 0x2e2 0xffffffa3e8f23cf0 : 0xffffff7f94246c50 com.apple.driver.usb.AppleUSBXHCIPCI : __ZN15AppleUSBXHCIPCI20lowerOnePowerStateToEm + 0x1fc 0xffffffa3e8f23d40 : 0xffffff7f93d41859 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController18setPowerStateGatedEmP9IOService + 0x2df 0xffffffa3e8f23da0 : 0xffffff8013630048 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138 0xffffffa3e8f23e00 : 0xffffff7f93d41529 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController13setPowerStateEmP9IOService + 0xcf 0xffffffa3e8f23e30 : 0xffffff8013614e04 mach_kernel : __ZN9IOService19driverSetPowerStateEv + 0x184 0xffffffa3e8f23ea0 : 0xffffff8013614c0a mach_kernel : __ZN9IOService15pmDriverCalloutEPS_ + 0x2a 0xffffffa3e8f23ec0 : 0xffffff8012f63545 mach_kernel : _thread_call_delayed_timer + 0xec5 0xffffffa3e8f23f40 : 0xffffff8012f63071 mach_kernel : _thread_call_delayed_timer + 0x9f1 0xffffffa3e8f23fa0 : 0xffffff8012ec713e mach_kernel : _call_continuation + 0x2e Kernel Extensions in backtrace: com.apple.iokit.IOUSBHostFamily(1.2)[CC813BD5-B83C-3B83-A95E-796D87DE8F81]@0xffffff7f93d2d000->0xffffff7f93e26fff dependency: com.apple.driver.AppleBusPowerController(1.0)[DEBDD821-1472-371A-896A-BC5C19BD76D0]@0xffffff7f93d13000 dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[A9FB7951-7658-34C4-9A44-0B6DBE6F7F78]@0xffffff7f93d1b000 dependency: com.apple.driver.AppleUSBHostMergeProperties(1.2)[19CEF2B0-63C1-34CC-A9CD-BDF842BE5CB3]@0xffffff7f93d29000 com.apple.driver.usb.AppleUSBXHCI(1.2)[08964881-BCC5-3A07-B3CA-DF5B3512B740]@0xffffff7f9410f000->0xffffff7f94166fff dependency: com.apple.iokit.IOACPIFamily(1.4)[9D1FF279-C4A2-3344-902F-E0B22B508689]@0xffffff7f93ca1000 dependency: com.apple.iokit.IOUSBHostFamily(1.2)[CC813BD5-B83C-3B83-A95E-796D87DE8F81]@0xffffff7f93d2d000 dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[A9FB7951-7658-34C4-9A44-0B6DBE6F7F78]@0xffffff7f93d1b000 com.apple.driver.usb.AppleUSBXHCIPCI(1.2)[5B0343A2-9C4B-3A81-81C3-03601B394CED]@0xffffff7f9423e000->0xffffff7f94272fff dependency: com.apple.iokit.IOACPIFamily(1.4)[9D1FF279-C4A2-3344-902F-E0B22B508689]@0xffffff7f93ca1000 dependency: com.apple.iokit.IOPCIFamily(2.9)[1B1F3BBB-9212-3CF9-94F8-8FEF0D3ACEC4]@0xffffff7f93cb3000 dependency: com.apple.iokit.IOUSBHostFamily(1.2)[CC813BD5-B83C-3B83-A95E-796D87DE8F81]@0xffffff7f93d2d000 dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[A9FB7951-7658-34C4-9A44-0B6DBE6F7F78]@0xffffff7f93d1b000 dependency: com.apple.driver.usb.AppleUSBXHCI(1.2)[08964881-BCC5-3A07-B3CA-DF5B3512B740]@0xffffff7f9410f000 BSD process name corresponding to current thread: kernel_task Boot args: -v keepsyms=1 debug=0x100 Mac OS version: 19E266 Kernel version: Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64 Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6 Kernel slide: 0x0000000012c00000 Kernel text base: 0xffffff8012e00000 __HIB text base: 0xffffff8012d00000 System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94) System shutdown begun: NO Panic diags file available: YES (0x0) System uptime in nanoseconds: 5335522878825
System Configuration
CPU: Ryzen 3950X Motherboard: Gigabyte X570 AORUS Elite Graphics Card: RX580 Wireless Card: Fenvi T919 with Bluetooth Hooked Up
Software Configuration
kexts
Lilu.kext VirtualSMC.kext WhateverGreen.kext
drivers
ApfsDriverLoader.efi FwRuntimeServices.efi VBoxHfs.efi
SSDTs
SSDT-EC-USBX.aml from here https://github.com/khronokernel/Opencore-Vanilla-Desktop-Guide/blob/master/extra-files/SSDT-EC-USBX-AMD.aml
More Information
The crash seems to happen on sleep not on waking up from sleep as the system uptime in nanoseconds is about 1.48 hours.
I have not tried mapping the USB ports yet.
just do not plug any device to XHC0 you can fix it.
I can kind of confirm the problem may comes from incorrect controller naming.
I have Catalina 10.15.4 on B350M-PLUS GAMING and I have my sleep working properly until I add a new SATA SSD to my hack yesterday, which is strange.
So I inspected with IOJones and found out my working USB ports PRT5 under XHC0 controller, is shared by the newly added SSD.
Both of them have the name PRT5. And after removing the USB drive on PRT5, my sleep works flawlessly again.
I think there can be a way to adjust the name or something but I have no idea how to do that. Nevertheless, try not to use the USB ports on XHC0 which is already taken by other devices (like SATA SSD in my case) may help fixing the sleep issue.
I just installed my Ryzentosh 2 weeks ago and also had this problem with macOS Catalina. My system runs on the following:
Ryzen 3600 Aorus Elite X570 board M.2 Samsung Evo 860 SSD (hackintosh runs dedicated on an ssd)
Update2: As soon I unplugged EVERY USB device, the sleep works on my side. So it seems to be a problem with the (energy-)control of the USB devices when it comes to sleep?...??
Update: This user is capable to let his device sleep. Maybe you find anything helpful in his config?
___- Unfortunately same problem. Ryzen 3900x MSI Unify
Settings: https://www.hackintosh-forum.de/forum/thread/48345-msi-x570-unify-ryzen-9-3900-opencore/
panic(cpu 0 caller 0xffffff801f691b2c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOUSBHostFamily. Thread 0x459a.
Failure code:: 0x00000048 00000014
Backtracing specified thread
Backtrace (CPU 0), Frame : Return Address
0xffffffa3f3f63900 : 0xffffff801f0471e8 mach_kernel : _machine_switch_context + 0xc8
0xffffffa3f4453990 : 0xffffff801ef433f1 mach_kernel : _thread_unstop + 0x1731
0xffffffa3f4453a00 : 0xffffff801ef41c2f mach_kernel : _thread_block_reason + 0xaf
0xffffffa3f4453a50 : 0xffffff801ef32a53 mach_kernel : _lck_mtx_sleep_deadline + 0x73
0xffffffa3f4453a90 : 0xffffff801f62d65f mach_kernel : __ZN10IOWorkLoop9sleepGateEPvyj + 0xbf
0xffffffa3f4453ad0 : 0xffffff801f62e773 mach_kernel : __ZN13IOEventSource9sleepGateEPvyj + 0x53
0xffffffa3f4453b10 : 0xffffff7fa00a7a5a com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController20lowerOnePowerStateToEm + 0x114
0xffffffa3f4453c80 : 0xffffff7fa0834890 com.apple.driver.usb.AppleUSBXHCI : __ZN12AppleUSBXHCI20lowerOnePowerStateToEm + 0x2e2
0xffffffa3f4453cf0 : 0xffffff7fa0957c50 com.apple.driver.usb.AppleUSBXHCIPCI : __ZN15AppleUSBXHCIPCI20lowerOnePowerStateToEm + 0x1fc
0xffffffa3f4453d40 : 0xffffff7fa00a6859 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController18setPowerStateGatedEmP9IOService + 0x2df
0xffffffa3f4453da0 : 0xffffff801f630048 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138
0xffffffa3f4453e00 : 0xffffff7fa00a6529 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController13setPowerStateEmP9IOService + 0xcf
0xffffffa3f4453e30 : 0xffffff801f614e04 mach_kernel : __ZN9IOService19driverSetPowerStateEv + 0x184
0xffffffa3f4453ea0 : 0xffffff801f614c0a mach_kernel : __ZN9IOService15pmDriverCalloutEPS_ + 0x2a
0xffffffa3f4453ec0 : 0xffffff801ef63545 mach_kernel : _thread_call_delayed_timer + 0xec5
0xffffffa3f4453f40 : 0xffffff801ef63071 mach_kernel : _thread_call_delayed_timer + 0x9f1
0xffffffa3f4453fa0 : 0xffffff801eec713e mach_kernel : _call_continuation + 0x2e
Kernel Extensions in backtrace:
com.apple.iokit.IOUSBHostFamily(1.2)[CC813BD5-B83C-3B83-A95E-796D87DE8F81]@0xffffff7fa0092000->0xffffff7fa018bfff
dependency: com.apple.driver.AppleBusPowerController(1.0)[DEBDD821-1472-371A-896A-BC5C19BD76D0]@0xffffff7fa0078000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[A9FB7951-7658-34C4-9A44-0B6DBE6F7F78]@0xffffff7fa0080000
dependency: com.apple.driver.AppleUSBHostMergeProperties(1.2)[19CEF2B0-63C1-34CC-A9CD-BDF842BE5CB3]@0xffffff7fa008e000
com.apple.driver.usb.AppleUSBXHCI(1.2)[08964881-BCC5-3A07-B3CA-DF5B3512B740]@0xffffff7fa0820000->0xffffff7fa0877fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[9D1FF279-C4A2-3344-902F-E0B22B508689]@0xffffff7fa0045000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[CC813BD5-B83C-3B83-A95E-796D87DE8F81]@0xffffff7fa0092000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[A9FB7951-7658-34C4-9A44-0B6DBE6F7F78]@0xffffff7fa0080000
com.apple.driver.usb.AppleUSBXHCIPCI(1.2)[5B0343A2-9C4B-3A81-81C3-03601B394CED]@0xffffff7fa094f000->0xffffff7fa0983fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[9D1FF279-C4A2-3344-902F-E0B22B508689]@0xffffff7fa0045000
dependency: com.apple.iokit.IOPCIFamily(2.9)[1B1F3BBB-9212-3CF9-94F8-8FEF0D3ACEC4]@0xffffff7f9f931000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[CC813BD5-B83C-3B83-A95E-796D87DE8F81]@0xffffff7fa0092000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[A9FB7951-7658-34C4-9A44-0B6DBE6F7F78]@0xffffff7fa0080000
dependency: com.apple.driver.usb.AppleUSBXHCI(1.2)[08964881-BCC5-3A07-B3CA-DF5B3512B740]@0xffffff7fa0820000
BSD process name corresponding to current thread: kernel_task
Boot args: debug=0x100 keepsyms=1 agdpmod=pikera alcid=1
Mac OS version:
19E287
Kernel version:
Darwin Kernel Version 19.4.0: Wed Mar 4 22:28:40 PST 2020; root:xnu-6153.101.6~15/RELEASE_X86_64
Kernel UUID: AB0AA7EE-3D03-3C21-91AD-5719D79D7AF6
Kernel slide: 0x000000001ec00000
Kernel text base: 0xffffff801ee00000
__HIB text base: 0xffffff801ed00000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file available: YES (0x0)
System uptime in nanoseconds: 557826109654
last loaded kext at 22666388635: @filesystems.smbfs 3.4.2 (addr 0xffffff7fa1411000, size 454656)
last unloaded kext at 191626640211: >!AHPET 1.8 (addr 0xffffff7fa49cc000, size 20480)
loaded kexts:
com.trendmicro.kext.filehook 3.0.0
com.trendmicro.kext.KERedirect 3.0.0
com.insanelymac.LucyRTL8125Ethernet 1.0.0d4
wtf.spinach.SMCAMDProcessor 1
as.vit9696.VirtualSMC 1.1.3
org.voodoo.driver.VoodooTSCSyncAMD 1.2
wtf.spinach.AMDRyzenCPUPowerManagement 0.6.2
as.vit9696.WhateverGreen 1.3.9
org.acidanthera.NVMeFix 1.0.2
as.lvs1974.HibernationFixup 1.3.3
as.vit9696.!AALC 1.4.9
as.vit9696.Lilu 1.4.4
@filesystems.smbfs 3.4.2
>!ATopCaseHIDEventDriver 3430.1
@fileutil 20.036.15
@filesystems.autofs 3.0
@filesystems.ntfs 3.14.3
>!AUpstreamUserClient 3.6.8
>!AMCCSControl 1.11
>AGPM 111.4.4
>!APlatformEnabler 2.7.0d0
>X86PlatformShim 1.0.0
>!AHDA 283.15
@kext.AMDRadeonX6000 3.0.8
@kext.AMDRadeonServiceManager 3.0.8
>!AGraphicsDevicePolicy 5.1.16
@AGDCPluginDisplayMetrics 5.1.16
>!AHV 1
|IOUserEthernet 1.0.1
|IO!BSerialManager 7.0.4f6
>pmtelemetry 1
@Dont_Steal_Mac_OS_X 7.0.0
>!A!ISlowAdaptiveClocking 4.0.0
>!AGFXHDA 100.1.426
>AudioAUUC 1.70
>!A!IMCEReporter 115
@private.KextAudit 1.0
>!AVirtIO 1.0
@filesystems.hfs.kext 522.100.5
@!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1
@BootCache 40
@!AFSCompression.!AFSCompressionTypeZlib 1.0.0
@filesystems.apfs 1412.101.1
>!AAHCIPort 341.0.2
>!AACPIButtons 6.1
>!ARTC 2.0
>!ASMBIOS 2.1
>!AAPIC 1.7
$!AImage4 1
@nke.applicationfirewall 303
$TMSafetyNet 8
@!ASystemPolicy 2.0.0
>!A!ICPUPowerManagement 222.0.0
|EndpointSecurity 1
>!AMultitouchDriver 3440.1
>!AInputDeviceSupport 3440.8
>!AHS!BDriver 3430.1
>IO!BHIDDriver 7.0.4f6
@kext.triggers 1.0
>!ASMBus!C 1.0.18d1
|IOSMBus!F 1.1
>DspFuncLib 283.15
@kext.OSvKernDSPLib 529
|IOAccelerator!F2 438.4.5
@kext.AMDRadeonX6000HWLibs 1.0
@kext.AMDRadeonX6000HWServices 3.0.8
>!AGraphicsControl 5.1.16
|IOAVB!F 840.3
>!ASSE 1.0
@!AGPUWrangler 5.1.16
|IOSlowAdaptiveClocking!F 1.0.0
>X86PlatformPlugin 1.0.0
>IOPlatformPlugin!F 6.0.0d8
>usb.cdc.acm 5.0.0
>usb.serial 6.0.0
>!AHDA!C 283.15
|IOHDA!F 283.15
@kext.AMDRadeonX6000Framebuffer 3.0.8
|IONDRVSupport 575.1
@kext.AMDSupport 3.0.8
@!AGraphicsDeviceControl 5.1.16
|IOGraphics!F 575.1
@plugin.IOgPTPPlugin 840.3
|IOEthernetAVB!C 1.1.0
|IOSkywalk!F 1
|Broadcom!BHost!CUSBTransport 7.0.4f6
|IO!BHost!CUSBTransport 7.0.4f6
|IO!BHost!CTransport 7.0.4f6
|IO!B!F 7.0.4f6
|IO!BPacketLogger 7.0.4f6
>!UAudio 322.2
>usb.cdc 5.0.0
>usb.networking 5.0.0
>usb.!UHostCompositeDevice 1.2
>usb.!UHub 1.2
|IOAHCIBlock!S 316.100.5
|IOAudio!F 300.2
@vecLib.kext 1.2.0
|IOSerial!F 11
|IOSurface 269.11
@filesystems.hfs.encodings.kext 1
>!UMergeNub 900.4.2
>usb.!UXHCIPCI 1.2
>usb.!UXHCI 1.2
|IOAHCI!F 290.0.1
|IONVMe!F 2.1.0
>usb.!UHostPacketFilter 1.0
>!AEFINVRAM 2.1
|IOUSB!F 900.4.2
>!AEFIRuntime 2.1
|IOHID!F 2.0.0
$quarantine 4
$sandbox 300.0
@kext.!AMatch 1.0.0d1
>DiskImages 493.0.0
>!AFDEKeyStore 28.30
>!AEffaceable!S 1.0
>!AKeyStore 2
>!UTDM 489.101.1
|IOSCSIBlockCommandsDevice 422.101.1
>!ACredentialManager 1.0
>KernelRelayHost 1
>!ASEPManager 1.0.1
>IOSlaveProcessor 1
|IOUSBMass!SDriver 157.101.3
|IOSCSIArchitectureModel!F 422.101.1
|IO!S!F 2.1
|IOUSBHost!F 1.2
>!UHostMergeProperties 1.2
>usb.!UCommon 1.0
>!ABusPower!C 1.0
|CoreAnalytics!F 1
>!AMobileFileIntegrity 1.0.5
@kext.CoreTrust 1
|IOTimeSync!F 840.3
|IONetworking!F 3.4
|IOReport!F 47
>!AACPIPlatform 6.1
>!ASMC 3.1.9
>watchdog 1
|IOPCI!F 2.9
|IOACPI!F 1.4
@kec.pthread 1
@kec.corecrypto 1.0
@kec.Libm 1
I have a same problem originally reported by abala16 - sleep no longer functions. The OS goes to sleep and the monitor and keyboard/mouse lights turn off, but the actual system doesn't go to sleep. Power stays on and fans spin up faster. At this point the computer is in a stuck state and can't be woken back up. Only way to get back into the OS is a hard reset.
I had 10.15.5 fresh install. I just upgraded to 10.15.6 but same issue. I also have Mojave install with same Opencore and BIOS settings, and sleep works fine in Mojave. I think it's a issue between Catalina and/or OpenCore...
same issue AMD 3700X GIGABYTE X570 I AORUS PRO WIFI
It looks the solution is to remove SSDT-USBX/fix the power injection values AND to have a proper USB mapping (see https://github.com/dortania/bugtracker/issues/15).
I have not been able to get it work on my own build.
It looks the solution is to remove SSDT-USBX/fix the power injection values AND to have a proper USB mapping (see dortania/bugtracker#15).
I have not been able to get it work on my own build.
@kprinssu Can't reproduce. Tried combinations of mapping (only mapped the ports I use as was busy) + removing/fixing power properties myself (also tried adding in that one extra property from the old DSDT USB fix patch), did not work. ASRock B450 Pro4 + 3700X if it matters.
I might install Mojave to check if it sleeps there over the weekend.
@dhinakg Same here (it is not working). It was something I came across and wanted to shine more line upon.
I am going to install 10.14 (Mojave) and see if that fixes anything on my end.
Sleep worked for me in Mojave out of the box without USB mapping. Asus X570-I motherboard. In Mojave, it was impossible for me to get the sleep to not work.
While I have to unplug my USB header splitter (which seems to be bugged, as I have issues in windows and macOS) and need to press twice to wake via USB, sleep in Mojave works. I do get some errors in the log when resuming from sleep, which is interesting.
For people where Mojave works but not Catalina, can you boot Mojave, sleep, wake, then run the following command and upload usb_log.txt
? It’ll be found on the desktop.
log show --last 10m --predicate 'process == "kernel"' | grep -i usb > ~/Desktop/usb_log.txt
An ioreg from IORegistryExplorer would also be appreciated.
While I have to unplug my USB header splitter (which seems to be bugged, as I have issues in windows and macOS) and need to press twice to wake via USB, sleep in Mojave works. I do get some errors in the log when resuming from sleep, which is interesting.
For people where Mojave works but not Catalina, can you boot Mojave, sleep, wake, then run the following command and upload
usb_log.txt
? It’ll be found on the desktop.log show --last 10m --predicate 'process == "kernel"' | grep -i usb > ~/Desktop/usb_log.txt
An ioreg from IORegistryExplorer would also be appreciated.
I have a Mojave install (it was using clover, but I could boot it with the same Catalina's EFI I generated yesterday using dortania tutorial with OC 0.60.0):
Mojave works fine!! It sleeps perfectly with my Dell monitor's USB 3.0 hub connected (where I have the keyboard and mouse connected).
Catalina does not sleep with this usb hub connected, it just turns off the HDD (I can hear it turning off), but the cpu cooler and VGA does not sleep. It does not "awake" from this state, I have to force reset...
If I remove the Dell's usb hub, Catalina sleeps and awakes fine.
I have tried to remove SSDT-USBX.aml as said somewhere else (https://github.com/dortania/bugtracker/issues/15), but the issue remains.
I have not done any USB mapping in Mojave nor in Catalina - (sorry, but the usb mapping tutorial is so hard to understand, I have tried twice but I gave up...).
It looks the solution is to remove SSDT-USBX/fix the power injection values AND to have a proper USB mapping (see dortania/bugtracker#15).
I have not been able to get it work on my own build.
Hi!
When you say SSDT-USBX, it is the one dortania has precompiled?
In my build I have:
SSDT-EC.aml was generated using SSDTTime SSDT-USBX.aml was downloaded precompiled here.
I have tried removing the SSDT-USBX.aml, but the sleep issue with Catalina still happens (HDD stops spinning, but CPU and case fans keeps spinning and computer do not sleep and cannot be "awaken" from this state).
My setup: Gigabyte B450 Aorus + Ryzen 5 3600 + Radeon RX 580.
Thanks a lot!
upgrade to Big Sur Beta8,Beta9
sleep/wake problem has been fixed
AMD 3700X GIGABYTE X570 I AORUS PRO WIFI
I have MSI X570 A-Pro and when I try to shut down the machine it is rebooting....PLEAS HELP!!!
@rchunping confirmed here also sleep/wake works on bigsur beta 9 as good as it used to work on Mojave.
Thank god! At last!
Aorus x570 master / 3900X
Closing as it seems this issue has been fixed based on the previous comments.
Update to Catalina from Mojave completed with no problems. After update, however, sleep no longer functions. The OS goes to sleep and the monitor and keyboard/mouse lights turn off, but the actual system doesn't go to sleep. Power stays on and fans spin up faster. At this point the computer is in a stuck state and can't be woken back up. Only way to get back into the OS is a hard reset. The fans spinning up is something that usually happens for about a second before the computer goes to sleep on Windows 10 and Mojave, but on Catalina it just stays in that state.
Cpu: R5 1600 Mobo: MSI B350 Tomahawk GPU: MSI Air Boost OC RX Vega 56 Kexts: Lilu, WhateverGreen (both updated)