Hibernation questions

zarboz

New member
AMD OS X Member
Joined
May 25, 2020
Messages
5
Hey all,

First AMD hack build but long time hack user (since Lion)

I have had sleep/wake/hibernate working 100% on all my intel builds after a little bit of headache and trials but I have hit a brick wall with the AMD setup.


Setup:
Gigabyte Aorus B450 I Pro Wifi
AMD Ryzen 9 3900x
VisionTek AMD 5700
Opencore bootloader


All USB mapping done by hand with DSDT to avoid issues sleeping / waking with USB.

Code:
Time stamp                Domain                  Message                                                                        Duration      Delay     
==========                ======                  =======                                                                        ========      =====     
UUID: 863FEE9D-C287-48E7-80A5-4F0536548044
2020-05-25 22:24:55 -0600 Notification            Display is turned off                                                                   
2020-05-25 22:24:55 -0600 Assertions              PID 73(powerd) Summary ExternalMedia "com.apple.powermanagement.externalmediamounted" 00:01:33  id:0x0x800008006 [System: DeclUser BGTask IntPrevDisp kDisp]         
2020-05-25 22:24:55 -0600 Assertions              PID 119(hidd) Summary UserIsActive "com.apple.iohideventsystem.queue.tickle serviceID:1000003cc name:AppleUserHIDEventSe product:Razer Lancehead eventType:17" 00:00:00  id:0x0x90000823f [System: DeclUser BGTask IntPrevDisp kDisp]         
2020-05-25 22:24:55 -0600 Assertions              PID 407(UserEventAgent) Summary BackgroundTask "com.apple.coreduet.sync.update-source-device-identifiers" 00:01:16  id:0x0xb000081aa [System: DeclUser BGTask IntPrevDisp kDisp]         
2020-05-25 22:24:55 -0600 Assertions              PID 73(powerd) Summary InternalPreventDisplaySleep "com.apple.powermanagement.delayDisplayOff" 00:01:12  id:0x0x1000008001 [System: DeclUser BGTask IntPrevDisp kDisp]         
2020-05-25 22:24:55 -0600 Assertions              Kernel Idle sleep preventers: -None-         
2020-05-25 22:24:55 -0600 Assertions              [System: DeclUser BGTask IntPrevDisp kDisp]         
2020-05-25 22:24:55 -0600 Assertions              PID 73(powerd) Created InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:00  id:0x0xd00008265 [System: DeclUser BGTask SRPrevSleep IntPrevDisp kCPU kDisp]         
2020-05-25 22:24:55 -0600 AppWakeReason           AppWoke:com.apple.bluetoothd-blueavengers Reason:BlueAvengers: Toggle beacon state             
2020-05-25 22:25:10 -0600 Assertions              PID 73(powerd) TimedOut InternalPreventSleep "com.apple.powermanagement.darkwakelinger" 00:00:15  id:0x0xd00008265 [System: DeclUser BGTask SRPrevSleep IntPrevDisp kCPU kDisp]         
2020-05-25 22:25:10 -0600 Assertions              Summary- [System: DeclUser BGTask IntPrevDisp kDisp] Using AC         
2020-05-25 22:25:26 -0600 Sleep                   Entering Sleep state due to 'Software Sleep pid=131':TCPKeepAlive=disabled Using AC (Charge:0%)           
2020-05-25 22:25:27 -0600 Assertions              PID 203(coreaudiod) Released PreventUserIdleSystemSleep "com.apple.audio.context111.preventuseridlesleep" 00:01:59  id:0x0x100008041 [System: DeclUser BGTask IntPrevDisp kDisp]         
2020-05-25 22:25:29 -0600 PM Client Acks          Delays to Sleep notifications: [com.apple.apsd is slow(2116 ms)]           
2020-05-25 22:27:48 -0600 ShutdownCause           SMC shutdown cause: 5: Software initiated shutdown                                       
Sleep/Wakes since boot at 2020-05-25 22:23:22 -0600 :0   Dark Wake Count in this sleep cycle:0

Time stamp                Domain                  Message                                                                        Duration      Delay     
==========                ======                  =======                                                                        ========      =====     
UUID: (null)
2020-05-25 22:27:49 -0600 Start                   powerd process is started                                                               
2020-05-25 22:27:49 -0600 Assertions              Summary- [System: No Assertions] Using AC         
2020-05-25 22:27:49 -0600 Assertions              PID 162(fsck_apfs) Created PreventUserIdleDisplaySleep "Running FSCK" 00:00:00  id:0x0x500008000 [System: PrevDisp kDisp]         
2020-05-25 22:27:49 -0600 Assertions              PID 73(powerd) Created ExternalMedia "com.apple.powermanagement.externalmediamounted" 00:00:00  id:0x0x800008001 [System: BGTask IntPrevDisp kDisp]




OK So if you just read these logs you would probably look at me and go "wtf is wrong with it?"

The issue is that after display sleep and kernel submits a code 5 "clean sleep by user"

my mobo never actually goes into "hibernate/deep sleep" mode and the only way to wake it up is by pulling power/forcing off


Then upon reboot OSX acts as if I had just woken it from from hibernate.


Is this an Opencore problem or is this an installation problem?


PS
I have an intel opencore install with deep sleep/hibernate working fine so I would lean more towards a configuration issue
 

Aluveitie

Donator
Donator
AMD OS X Member
Joined
May 2, 2020
Messages
895
Do you have hibernatemode set to 0?
 

zarboz

New member
AMD OS X Member
Joined
May 25, 2020
Messages
5
Do you have hibernatemode set to 0?
Code:
 ~  pmset -g                    
System-wide power settings:
SleepDisabled        0
Currently in use:
hibernatemode        25
tcpkeepalive         0
powernap             0
disksleep            10
sleep                0 (sleep prevented by coreaudiod)
Sleep On Power Button 1
proximitywake        0
hibernatefile        /var/vm/sleepimage
ttyskeepawake        1
gpuswitch            2
displaysleep         15


Have tried both 25 and 0 with no results


forgive me but when working on an intel CPU if i get exit/shutdown code 5 hibernate occurs successfully 99.9% of the time
 
Last edited:

zarboz

New member
AMD OS X Member
Joined
May 25, 2020
Messages
5
Update did a ton more digging

the RTC chip on this board has too small of a memory to store sleep settings from OSX

otherwise my setup would sleep properly
 

jamescobalt

New member
AMD OS X Member
Joined
May 27, 2020
Messages
1
Not sure if this will help, but this build, using the M variant of your board, got sleep working: https://forum.amd-osx.com/index.php...10-15-5-19f96-opencore-0-5-8-triple-boot.300/

Here's a comparison of the two mobos: https://www.gigabyte.com/us/Comparison/Result/2?pids=6751,6655

Sleep issues have been tied to the USB controllers, and I see these boards handle USB differently. Also different LAN chipset and lacks the M2 slot for wifi, but otherwise these boards are almost identical. Perhaps you two can compare your RTC chip models and report back? Maybe they're tied to the LAN chipset. And if so, then we can identify the working LAN chipset for other mobos. Or maybe it's not the RTC afterall.

Another 450 chipset board that got sleep working with a tweak: https://forum.amd-osx.com/index.php...-b450m-mortar-max-oc0-57-catalina-10-15-4.63/

For Sidecar, are you using a compatible machine definition?
 
Last edited:

Aluveitie

Donator
Donator
AMD OS X Member
Joined
May 2, 2020
Messages
895

barrrrt

Member
AMD OS X Member
Joined
May 19, 2020
Messages
30
Don't know if it fits to my problem (x570 hibernate problem), but I tried the parameter too.

It did not solve the problem on my side.

1590669477997.png

Got the "common" Kernel Panic afterwards:

panic(cpu 0 caller 0xffffff8019e9169c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOUSBHostFamily. Thread 0x26fe.
Failure code:: 0x00000048 00000014

Backtracing specified thread
Backtrace (CPU 0), Frame : Return Address
0xffffff83d8a8b900 : 0xffffff80198458f8 mach_kernel : _machine_switch_context + 0xc8
0xffffffa3df9bb990 : 0xffffff80197413f1 mach_kernel : _thread_unstop + 0x1731
0xffffffa3df9bba00 : 0xffffff801973fc2f mach_kernel : _thread_block_reason + 0xaf
0xffffffa3df9bba50 : 0xffffff8019730a53 mach_kernel : _lck_mtx_sleep_deadline + 0x73
0xffffffa3df9bba90 : 0xffffff8019e2d11f mach_kernel : __ZN10IOWorkLoop9sleepGateEPvyj + 0xbf
0xffffffa3df9bbad0 : 0xffffff8019e2e233 mach_kernel : __ZN13IOEventSource9sleepGateEPvyj + 0x53
0xffffffa3df9bbb10 : 0xffffff7f9a50fa56 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController20lowerOnePowerStateToEm + 0x114
0xffffffa3df9bbc80 : 0xffffff7f9b065890 com.apple.driver.usb.AppleUSBXHCI : __ZN12AppleUSBXHCI20lowerOnePowerStateToEm + 0x2e2
0xffffffa3df9bbcf0 : 0xffffff7f9b188c50 com.apple.driver.usb.AppleUSBXHCIPCI : __ZN15AppleUSBXHCIPCI20lowerOnePowerStateToEm + 0x1fc
0xffffffa3df9bbd40 : 0xffffff7f9a50e855 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController18setPowerStateGatedEmP9IOService + 0x2df
0xffffffa3df9bbda0 : 0xffffff8019e2fb08 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138
0xffffffa3df9bbe00 : 0xffffff7f9a50e525 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController13setPowerStateEmP9IOService + 0xcf
0xffffffa3df9bbe30 : 0xffffff8019e148c4 mach_kernel : __ZN9IOService19driverSetPowerStateEv + 0x184
0xffffffa3df9bbea0 : 0xffffff8019e146ca mach_kernel : __ZN9IOService15pmDriverCalloutEPS_ + 0x2a
0xffffffa3df9bbec0 : 0xffffff8019761565 mach_kernel : _thread_call_delayed_timer + 0xec5
0xffffffa3df9bbf40 : 0xffffff8019761091 mach_kernel : _thread_call_delayed_timer + 0x9f1
0xffffffa3df9bbfa0 : 0xffffff80196c513e mach_kernel : _call_continuation + 0x2e
Kernel Extensions in backtrace:
com.apple.iokit.IOUSBHostFamily(1.2)[23C6290C-B42C-3885-B77D-09995CE04183]@0xffffff7f9a4fa000->0xffffff7f9a5f3fff
dependency: com.apple.driver.AppleBusPowerController(1.0)[7F7844A2-E46C-32A5-98C4-B39B5EA28701]@0xffffff7f9a4e0000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[61D30C0D-8B6A-3E66-BC75-C35BDD0B9F25]@0xffffff7f9a4e8000
dependency: com.apple.driver.AppleUSBHostMergeProperties(1.2)[9AB5DD3B-44FD-3934-996B-C2F4AFF6A083]@0xffffff7f9a4f6000
com.apple.driver.usb.AppleUSBXHCI(1.2)[2C0A8BDD-420B-3E9F-ABAE-128EF886FC8D]@0xffffff7f9b051000->0xffffff7f9b0a8fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[0A7D7382-66FE-391B-9F93-97A996256C25]@0xffffff7f9a4ad000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[23C6290C-B42C-3885-B77D-09995CE04183]@0xffffff7f9a4fa000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[61D30C0D-8B6A-3E66-BC75-C35BDD0B9F25]@0xffffff7f9a4e8000
com.apple.driver.usb.AppleUSBXHCIPCI(1.2)[1100DCD4-FFB2-3747-A2D3-CB67EA591442]@0xffffff7f9b180000->0xffffff7f9b1b4fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[0A7D7382-66FE-391B-9F93-97A996256C25]@0xffffff7f9a4ad000
dependency: com.apple.iokit.IOPCIFamily(2.9)[3C56BB73-D149-3E84-A2EB-DF806779B96C]@0xffffff7f9a131000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[23C6290C-B42C-3885-B77D-09995CE04183]@0xffffff7f9a4fa000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[61D30C0D-8B6A-3E66-BC75-C35BDD0B9F25]@0xffffff7f9a4e8000
dependency: com.apple.driver.usb.AppleUSBXHCI(1.2)[2C0A8BDD-420B-3E9F-ABAE-128EF886FC8D]@0xffffff7f9b051000

BSD process name corresponding to current thread: kernel_task
Boot args: keepsyms=1 alcid=1 agdpmod=pikera

Mac OS version:
19F96

Kernel version:
Darwin Kernel Version 19.5.0: Thu Apr 30 18:25:59 PDT 2020; root:xnu-6153.121.1~7/RELEASE_X86_64
Kernel UUID: 7B7F06EE-1B75-345E-B898-2FD4FEC20F0D
Kernel slide: 0x0000000019400000
Kernel text base: 0xffffff8019600000
__HIB text base: 0xffffff8019500000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file available: YES (0x0)

System uptime in nanoseconds: 292783317331
last loaded kext at 25240961825: @filesystems.smbfs 3.4.3 (addr 0xffffff7f9c62e000, size 454656)
loaded kexts:
com.trendmicro.kext.filehook 3.0.0
com.trendmicro.kext.KERedirect 3.0.0
com.logitech.driver.LogiGamingMouseFilter 1
com.logitech.driver.LogiWheelDriver 1
com.driver.LogJoystick 2.0
com.insanelymac.LucyRTL8125Ethernet 1.0.0d5
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.3
!ATopCaseHIDEventDriver 3430.1
@fileutil 20.036.15
@filesystems.autofs 3.0
!AUpstreamUserClient 3.6.8
!AMCCSControl 1.14
@filesystems.ntfs 3.14.3
AGPM 111.4.4
!APlatformEnabler 2.7.0d0
X86PlatformShim 1.0.0
!AHDAHardwareConfigDriver 283.15
!AHDA 283.15
@kext.AMDRadeonX6000 3.0.9
@kext.AMDRadeonServiceManager 3.0.9
!AGraphicsDevicePolicy 5.2.4
@AGDCPluginDisplayMetrics 5.2.4
|IOUserEthernet 1.0.1
|IO!BSerialManager 7.0.5f6
pmtelemetry 1
@Dont_Steal_Mac_OS_X 7.0.0
ACPI_SMC_PlatformPlugin 1.0.0
!AFIVRDriver 4.1.0
!A!ISlowAdaptiveClocking 4.0.0
!A!IMCEReporter 115
!AGFXHDA 100.1.428
AudioAUUC 1.70
@private.KextAudit 1.0
|IO!BUSBDFU 7.0.5f6
!AFileSystemDriver 3.0.1
@filesystems.apfs 1412.120.2
!AVirtIO 1.0
@filesystems.hfs.kext 522.100.5
@!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1
AirPort.BrcmNIC 1400.1.1
@BootCache 40
@!AFSCompression.!AFSCompressionTypeZlib 1.0.0
!AAHCIPort 341.0.2
!AHPET 1.8
!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.5f6
@kext.triggers 1.0
!ASMBus!C 1.0.18d1
|IOSMBus!F 1.1
|IOUSBHIDDriver 900.4.2
DspFuncLib 283.15
@kext.OSvKernDSPLib 529
|IOAccelerator!F2 438.5.4
@kext.AMDRadeonX6000HWLibs 1.0
@kext.AMDRadeonX6000HWServices 3.0.9
!AGraphicsControl 5.2.4
|IOAVB!F 850.1
!ASSE 1.0
@kext.AMDRadeonX6000Framebuffer 3.0.9
@kext.AMDSupport 3.0.9
IOPlatformPluginLegacy 1.0.0
X86PlatformPlugin 1.0.0
IOPlatformPlugin!F 6.0.0d8
@!AGPUWrangler 5.2.4
@!AGraphicsDeviceControl 5.2.4
|IOSlowAdaptiveClocking!F 1.0.0
!AHDA!C 283.15
|IOHDA!F 283.15
usb.cdc.acm 5.0.0
usb.serial 6.0.0
|IONDRVSupport 576.1
|IOGraphics!F 576.1
!ASMBusPCI 1.0.14d1
@plugin.IOgPTPPlugin 840.3
|IOEthernetAVB!C 1.1.0
usb.cdc.ecm 5.0.0
|Broadcom!BHost!CUSBTransport 7.0.5f6
|IO!BHost!CUSBTransport 7.0.5f6
|IO!BHost!CTransport 7.0.5f6
|IO!B!F 7.0.5f6
|IO!BPacketLogger 7.0.5f6
usb.IOUSBHostHIDDevice 1.2
!UAudio 323.1
usb.cdc 5.0.0
usb.networking 5.0.0
usb.!UHostCompositeDevice 1.2
usb.!UHub 1.2
|IOAHCIBlock!S 316.100.5
!UMergeNub 900.4.2
!AXsanScheme 3
|IOAudio!F 300.2
@vecLib.kext 1.2.0
|IOSerial!F 11
|IO80211!F 1200.12.2b1
mDNSOffloadUserClient 1.0.1b8
corecapture 1.0.4
|IOSkywalk!F 1
|IOSurface 269.11
@filesystems.hfs.encodings.kext 1
|IOAHCI!F 290.0.1
usb.!UXHCIPCI 1.2
usb.!UXHCI 1.2
|IONVMe!F 2.1.0
usb.!UHostPacketFilter 1.0
|IOUSB!F 900.4.2
!AEFINVRAM 2.1
!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.120.1
|IOSCSIBlockCommandsDevice 422.120.3
!ACredentialManager 1.0
KernelRelayHost 1
!ASEPManager 1.0.1
IOSlaveProcessor 1
|IOUSBMass!SDriver 157.121.1
|IOSCSIArchitectureModel!F 422.120.3
|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
 

Kuma83

New member
AMD OS X Member
Joined
May 18, 2020
Messages
8
Don't know if it fits to my problem (x570 hibernate problem), but I tried the parameter too.

It did not solve the problem on my side.

View attachment 383

Got the "common" Kernel Panic afterwards:

panic(cpu 0 caller 0xffffff8019e9169c): Sleep transition timed out after 180 seconds while calling power state change callbacks. Suspected bundle: com.apple.iokit.IOUSBHostFamily. Thread 0x26fe.
Failure code:: 0x00000048 00000014

Backtracing specified thread
Backtrace (CPU 0), Frame : Return Address
0xffffff83d8a8b900 : 0xffffff80198458f8 mach_kernel : _machine_switch_context + 0xc8
0xffffffa3df9bb990 : 0xffffff80197413f1 mach_kernel : _thread_unstop + 0x1731
0xffffffa3df9bba00 : 0xffffff801973fc2f mach_kernel : _thread_block_reason + 0xaf
0xffffffa3df9bba50 : 0xffffff8019730a53 mach_kernel : _lck_mtx_sleep_deadline + 0x73
0xffffffa3df9bba90 : 0xffffff8019e2d11f mach_kernel : __ZN10IOWorkLoop9sleepGateEPvyj + 0xbf
0xffffffa3df9bbad0 : 0xffffff8019e2e233 mach_kernel : __ZN13IOEventSource9sleepGateEPvyj + 0x53
0xffffffa3df9bbb10 : 0xffffff7f9a50fa56 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController20lowerOnePowerStateToEm + 0x114
0xffffffa3df9bbc80 : 0xffffff7f9b065890 com.apple.driver.usb.AppleUSBXHCI : __ZN12AppleUSBXHCI20lowerOnePowerStateToEm + 0x2e2
0xffffffa3df9bbcf0 : 0xffffff7f9b188c50 com.apple.driver.usb.AppleUSBXHCIPCI : __ZN15AppleUSBXHCIPCI20lowerOnePowerStateToEm + 0x1fc
0xffffffa3df9bbd40 : 0xffffff7f9a50e855 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController18setPowerStateGatedEmP9IOService + 0x2df
0xffffffa3df9bbda0 : 0xffffff8019e2fb08 mach_kernel : __ZN13IOCommandGate9runActionEPFiP8OSObjectPvS2_S2_S2_ES2_S2_S2_S2_ + 0x138
0xffffffa3df9bbe00 : 0xffffff7f9a50e525 com.apple.iokit.IOUSBHostFamily : __ZN22AppleUSBHostController13setPowerStateEmP9IOService + 0xcf
0xffffffa3df9bbe30 : 0xffffff8019e148c4 mach_kernel : __ZN9IOService19driverSetPowerStateEv + 0x184
0xffffffa3df9bbea0 : 0xffffff8019e146ca mach_kernel : __ZN9IOService15pmDriverCalloutEPS_ + 0x2a
0xffffffa3df9bbec0 : 0xffffff8019761565 mach_kernel : _thread_call_delayed_timer + 0xec5
0xffffffa3df9bbf40 : 0xffffff8019761091 mach_kernel : _thread_call_delayed_timer + 0x9f1
0xffffffa3df9bbfa0 : 0xffffff80196c513e mach_kernel : _call_continuation + 0x2e
Kernel Extensions in backtrace:
com.apple.iokit.IOUSBHostFamily(1.2)[23C6290C-B42C-3885-B77D-09995CE04183]@0xffffff7f9a4fa000->0xffffff7f9a5f3fff
dependency: com.apple.driver.AppleBusPowerController(1.0)[7F7844A2-E46C-32A5-98C4-B39B5EA28701]@0xffffff7f9a4e0000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[61D30C0D-8B6A-3E66-BC75-C35BDD0B9F25]@0xffffff7f9a4e8000
dependency: com.apple.driver.AppleUSBHostMergeProperties(1.2)[9AB5DD3B-44FD-3934-996B-C2F4AFF6A083]@0xffffff7f9a4f6000
com.apple.driver.usb.AppleUSBXHCI(1.2)[2C0A8BDD-420B-3E9F-ABAE-128EF886FC8D]@0xffffff7f9b051000->0xffffff7f9b0a8fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[0A7D7382-66FE-391B-9F93-97A996256C25]@0xffffff7f9a4ad000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[23C6290C-B42C-3885-B77D-09995CE04183]@0xffffff7f9a4fa000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[61D30C0D-8B6A-3E66-BC75-C35BDD0B9F25]@0xffffff7f9a4e8000
com.apple.driver.usb.AppleUSBXHCIPCI(1.2)[1100DCD4-FFB2-3747-A2D3-CB67EA591442]@0xffffff7f9b180000->0xffffff7f9b1b4fff
dependency: com.apple.iokit.IOACPIFamily(1.4)[0A7D7382-66FE-391B-9F93-97A996256C25]@0xffffff7f9a4ad000
dependency: com.apple.iokit.IOPCIFamily(2.9)[3C56BB73-D149-3E84-A2EB-DF806779B96C]@0xffffff7f9a131000
dependency: com.apple.iokit.IOUSBHostFamily(1.2)[23C6290C-B42C-3885-B77D-09995CE04183]@0xffffff7f9a4fa000
dependency: com.apple.driver.usb.AppleUSBCommon(1.0)[61D30C0D-8B6A-3E66-BC75-C35BDD0B9F25]@0xffffff7f9a4e8000
dependency: com.apple.driver.usb.AppleUSBXHCI(1.2)[2C0A8BDD-420B-3E9F-ABAE-128EF886FC8D]@0xffffff7f9b051000

BSD process name corresponding to current thread: kernel_task
Boot args: keepsyms=1 alcid=1 agdpmod=pikera

Mac OS version:
19F96

Kernel version:
Darwin Kernel Version 19.5.0: Thu Apr 30 18:25:59 PDT 2020; root:xnu-6153.121.1~7/RELEASE_X86_64
Kernel UUID: 7B7F06EE-1B75-345E-B898-2FD4FEC20F0D
Kernel slide: 0x0000000019400000
Kernel text base: 0xffffff8019600000
__HIB text base: 0xffffff8019500000
System model name: iMacPro1,1 (Mac-7BA5B2D9E42DDD94)
System shutdown begun: NO
Panic diags file available: YES (0x0)

System uptime in nanoseconds: 292783317331
last loaded kext at 25240961825: @filesystems.smbfs 3.4.3 (addr 0xffffff7f9c62e000, size 454656)
loaded kexts:
com.trendmicro.kext.filehook 3.0.0
com.trendmicro.kext.KERedirect 3.0.0
com.logitech.driver.LogiGamingMouseFilter 1
com.logitech.driver.LogiWheelDriver 1
com.driver.LogJoystick 2.0
com.insanelymac.LucyRTL8125Ethernet 1.0.0d5
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.3

@fileutil 20.036.15
@filesystems.autofs 3.0

@filesystems.ntfs 3.14.3

@kext.AMDRadeonX6000 3.0.9
@kext.AMDRadeonServiceManager 3.0.9

@AGDCPluginDisplayMetrics 5.2.4

|IOUserEthernet 1.0.1
|IO!BSerialManager 7.0.5f6

@Dont_Steal_Mac_OS_X 7.0.0

@private.KextAudit 1.0
|IO!BUSBDFU 7.0.5f6

@filesystems.apfs 1412.120.2

@filesystems.hfs.kext 522.100.5
@!AFSCompression.!AFSCompressionTypeDataless 1.0.0d1

@BootCache 40
@!AFSCompression.!AFSCompressionTypeZlib 1.0.0

$!AImage4 1
@nke.applicationfirewall 303
$TMSafetyNet 8
@!ASystemPolicy 2.0.0

|EndpointSecurity 1

@kext.triggers 1.0

|IOSMBus!F 1.1
|IOUSBHIDDriver 900.4.2

@kext.OSvKernDSPLib 529
|IOAccelerator!F2 438.5.4
@kext.AMDRadeonX6000HWLibs 1.0
@kext.AMDRadeonX6000HWServices 3.0.9

|IOAVB!F 850.1

@kext.AMDRadeonX6000Framebuffer 3.0.9
@kext.AMDSupport 3.0.9

@!AGPUWrangler 5.2.4
@!AGraphicsDeviceControl 5.2.4
|IOSlowAdaptiveClocking!F 1.0.0

|IOHDA!F 283.15

|IONDRVSupport 576.1
|IOGraphics!F 576.1

@plugin.IOgPTPPlugin 840.3
|IOEthernetAVB!C 1.1.0

|Broadcom!BHost!CUSBTransport 7.0.5f6
|IO!BHost!CUSBTransport 7.0.5f6
|IO!BHost!CTransport 7.0.5f6
|IO!B!F 7.0.5f6
|IO!BPacketLogger 7.0.5f6

|IOAHCIBlock!S 316.100.5

|IOAudio!F 300.2
@vecLib.kext 1.2.0
|IOSerial!F 11
|IO80211!F 1200.12.2b1

|IOSkywalk!F 1
|IOSurface 269.11
@filesystems.hfs.encodings.kext 1
|IOAHCI!F 290.0.1

|IONVMe!F 2.1.0

|IOUSB!F 900.4.2

|IOHID!F 2.0.0
$quarantine 4
$sandbox 300.0
@kext.!AMatch 1.0.0d1

|IOSCSIBlockCommandsDevice 422.120.3

|IOUSBMass!SDriver 157.121.1
|IOSCSIArchitectureModel!F 422.120.3
|IO!S!F 2.1
|IOUSBHost!F 1.2

|CoreAnalytics!F 1

@kext.CoreTrust 1
|IOTimeSync!F 840.3
|IONetworking!F 3.4
|IOReport!F 47

|IOPCI!F 2.9
|IOACPI!F 1.4
@kec.pthread 1
@kec.corecrypto 1.0
@kec.Libm 1

Have you flush NVRAM after modified boot-args?
 

Aluveitie

Donator
Donator
AMD OS X Member
Joined
May 2, 2020
Messages
895
@barrrrt Your problem is first getting it to sleep. The hibernation fixup is trying to fix dark screen after wake up.
 

barrrrt

Member
AMD OS X Member
Joined
May 19, 2020
Messages
30
No.. didn't flush nvram afterwards. Do I always have to do that, when I change my EFI? Or just when I change my boot args?

And in this case (like Alu said) it doesn't make any sense to change the args... cause I don't get to sleep :p
 

Aluveitie

Donator
Donator
AMD OS X Member
Joined
May 2, 2020
Messages
895
I think OpenCore does not override existing keys, so to apply changes you'd have to clear NVRAM.
 

Obelix

New member
AMD OS X Member
Joined
May 3, 2020
Messages
18
Hi,
I’m having the exact same problem.
My board is a MSI b450i gaming OC and the processor is a 3900X too.

The Sleep crashing on AMD section in the Dortania TS guide points to the power power management of the XHC0 USB controller:

  • Avoid the chipset USB all together(ideally set _STA = 0x0 to disable the controller outright with an SSDT)
  • Correct the USBX power properties to what the controller expects

I believe USB is the right track.

The PTXH controller was not working properly (not detecting the bluetooth module) because the controller’s path was not defined in the DSDT.

But I assume the XHC0 controller is ok as macOS seems to work fine with it...

I’ll try to deactivate the XHC0 controller and replace it with another one (XHC2 ?) with the ports clearly defined in the USB SSDT.

Also, how can I determine the correct USBX values??
 

barrrrt

Member
AMD OS X Member
Joined
May 19, 2020
Messages
30
You can use the tool Hackintool.
First unplug all USB devices.
Then click this button to clear the view:
1590829702944.png
Afterwards start plug and unplug in every usb slot an usb 2.0 stick. (it will be highlighted green)
Aftewards do the same with an 3.0 stick.
When done, you can click the export button and Hackintool will create AML files and an kext file.
1590829807053.png
1590829863343.png
Either the kext or aml files will be needed in your EFI.
1590829669002.png
 

Obelix

New member
AMD OS X Member
Joined
May 3, 2020
Messages
18
Thanks.
I found the cause of my sleep issue.

I had device properties for the GPU in my OC Config.
These properties were not causing any issues on the Intel motherboard but it was causing the GPU to stay on during the sleep-in sequence.

Also, I remapped the PTXH USB controller with a SSDT so there are no loose ends with the wifi-bluetooth module.
 

zarboz

New member
AMD OS X Member
Joined
May 25, 2020
Messages
5


sleep works fine usb are mapped all power stepping and power management works can even control fans with the amd power management utility and enable turbo boost etc from OS


Hibernation is very different and is the issue I am looking to combat

@zarboz Have a look at https://github.com/acidanthera/HibernationFixup it can workaround the RTC issue by storing those variables in NVRAM.

I tried a few variations of this but after further code review into opencore it looks like the hibernation fixup has to be used in tandem with the hibernation setting in the configuration.xml

I tried a few combinations with no success screen goes black but computer never actually hibernates (talking deep sleep low power state with fans off not normal sleep)


all the pmset logs say that OSX is putting the computer to hibernate mode successfully so I am left poking at straws and the only real theory I could come up with was that my RTC chip is too small to store the hibernate variables in.


Thanks.
I found the cause of my sleep issue.

I had device properties for the GPU in my OC Config.
These properties were not causing any issues on the Intel motherboard but it was causing the GPU to stay on during the sleep-in sequence.

Also, I remapped the PTXH USB controller with a SSDT so there are no loose ends with the wifi-bluetooth module.

I just realized I had those 2x entries in the deviceproperites field as well
Going to attempt to take them out and see if it helps


are you able to post your config file

I am curious about 2-3 settings within the misc/boot

and kernel/quirks



---------------------------


Update:

I removed the deviceproperties for the gpu
I changed boot/misc/hibernatesomething->NVRAM
RTC CHECksum disable something in kernel quirks set to yes

computer now shuts down when "hibernating" which is interesting I can prolly figure that out



Mind you folks in the thread it kernel sleeps fine but HW sleep seems to be an issue -_-


I am referring to true deep sleep hibernation AKA no lights / fans / etcs
 
Last edited:

Obelix

New member
AMD OS X Member
Joined
May 3, 2020
Messages
18
are you able to post your config file

I am curious about 2-3 settings within the misc/boot

and kernel/quirks

---------------------------

Update:

I removed the deviceproperties for the gpu
I changed boot/misc/hibernatesomething->NVRAM
RTC CHECksum disable something in kernel quirks set to yes

computer now shuts down when "hibernating" which is interesting I can prolly figure that out


Mind you folks in the thread it kernel sleeps fine but HW sleep seems to be an issue -_-


I am referring to true deep sleep hibernation AKA no lights / fans / etcs

Indeed, hibernation is the next level once your hack can sleep.
My issue seems to be related specifically to the MacPro7,1 SMBIOS and the AMD-USB-MAP-kext.

I managed to fix my sleep crash problems by matching some properties of the AMD-USB-MAP-kext to Catalina's kexts. It sleeps now.

Here is my EFI.
Good luck.
 

Attachments

  • MacPro7,1-MSI450i-R3900X.zip
    6.5 MB · Views: 14

zarboz

New member
AMD OS X Member
Joined
May 25, 2020
Messages
5
yah well... the computer just shutsdown instead of sleeping after triple checking my usb mapping

so thats kind of progress i suppose
 
Top Bottom
  AdBlock Detected
Sure, ad-blocking software does a great job at blocking ads, but it also blocks some useful and important features of our website. For the best possible site experience please take a moment to disable your AdBlocker.