[SOLVED] Sleep/wake issue on MSI B350m gaming pro motherboard

Mike

New member
AMD OS X Member
Joined
Jun 11, 2020
Messages
7
Hi everyone,

I've got a mostly successful build now, the specs are:

  • Ryzen 5 1600 cpu
  • MSI B350m gaming pro motherboard
  • RX 5700XT gpu
  • 16gb Corsair 3200mhz ram
  • 500gb samsung 860 evo ssd
  • OpenCore 0.5.9

The main thing I haven't been able to get working is sleep/wake, does anyone know how to debug this?
Currently it seems like the system is pretending to sleep, the display turns off but the fans/lights are still active and I can 'wake' from this state and the system seems to function without issue.

Things I've tried:
  • Searching through the console logs.. there is a lot of output and I'm unsure how helpful that is (see below for an excerpt), without experience in the matter a lot of the output seems hard to parse.
  • Setting ErP to enabled/disabled (disabled seems better as I can 'wake' from the current pseudo sleep)
  • enabling/disabling IOMMU (I read somewhere that someone set this to enabled to resolve an issue, it did nothing so it's left enabled for now)
  • Disabling serial ports (I don't use them so I've left this disabled)
  • Mapping USB ports.. I found this a bit confusing but have included a hand crafted AMD-USB-Map.kext, it's working because I can disable my USBs by removing entries but it doesn't resolve sleep issues.
  • Removing as many USB devices as possible to check if it affects sleep (could not get a properly sleep this way either)

Thanks in advance for your help, will be sure to update a successful solution if we get there!

---

Console output when trying to sleep the system:
default 01:24:49.321039+0100 kernel PMRD: prevent idle sleep list: IODisplayWrangler- (0)
default 01:24:49.321048+0100 kernel PMRD: changePowerStateTo(2)
default 01:24:49.321052+0100 kernel PMRD: changePowerStateToPriv(4)
default 01:24:49.321085+0100 kernel PMRD: askChangeDownDone(0x5c2, 0) type 3, cap f->9
default 01:24:49.321089+0100 kernel PMRD: tellChangeDown ON_STATE->ON_STATE
default 01:24:49.321090+0100 kernel PMRD: tellChangeDown::userActivityAtSleep 8
default 01:24:49.321532+0100 kernel PMRD: trace point 0x31 msg 0xe0000280 to kernel
default 01:24:49.321180+0100 powerd Process hidd.141 Summary UserIsActive "com.apple.iohideventsystem.queue.tickle serviceID:10000067b name:NULL product:mikepjb’s Mouse eventType:11" age:00:00:00 id:38654738472 [System: DeclUser BGTask kDisp]
default 01:24:49.321755+0100 powerd Process (null).0 Released Idle Sleep Preventer "IODisplayWrangler" age: id:0 [System: DeclUser BGTask kDisp]

p.s It's also worth pointing out that the system would shutdown if I left it to auto sleep via energy saver, it would complain about the XHCI controller which makes me suspect it's something to do with USB
 

Mike

New member
AMD OS X Member
Joined
Jun 11, 2020
Messages
7
Bit of an update, I haven't got sleep working yet but have tried the following:

- Mapping out ports for XHC0 controller
-Using trulyspinach's AMD CPU Power Management
- Disabling wake on USB

I haven't been able to map out my other USB controller PTXH, will try this next..
 

Mike

New member
AMD OS X Member
Joined
Jun 11, 2020
Messages
7
Disabling all XHC0 ports seems to have fixed the issue, my computer now sleeps and wakes!

Only caveat is that it takes 20 seconds or so for the sleep to kick in (at which point the fans/lights shutdown)
 

paparotto

New member
AMD OS X Member
Joined
Jul 9, 2020
Messages
9
Hi friend, i Have almost same setup, MSI B350M GAMING PRO, R5 1600, 16 Gb 2666Mhz, RX 580. Did you have problem with your memory frequency ? Mine is showing half of speed (1333Mhz) - Picture attached. Do you know how to solve it ??

thanks !!
 

Attachments

  • 3D99E31E-8899-4991-94BB-0154F9F96774.jpeg
    3D99E31E-8899-4991-94BB-0154F9F96774.jpeg
    49.2 KB · Views: 16

Mike

New member
AMD OS X Member
Joined
Jun 11, 2020
Messages
7
Hey, I believe this is a reporting problem - I have 2933MHz ram and have 1467MHz reported in OSX. The number seems to show up as half what you see in the BIOS.

Having said that I am actually not sure - the BIOS reports correctly (I'm using XMP) and the machine works pretty fast.
 

paparotto

New member
AMD OS X Member
Joined
Jul 9, 2020
Messages
9
Hey, I believe this is a reporting problem - I have 2933MHz ram and have 1467MHz reported in OSX. The number seems to show up as half what you see in the BIOS.

Having said that I am actually not sure - the BIOS reports correctly (I'm using XMP) and the machine works pretty fast.
Hi Mike !

I solved the problem updating my bios, i’m using the last version (beta) in the MSI support site. Now OSX show the correct frequency and Geekbench results are better, I think was not just a show bug it was affecting the performance of the machine. About sleep can you share your configs (generated map kext) with me ?

Did you generate the amd-usb.kext ?

thanks a lot !!
my mail : paparotto@yahoo.com
 
Last edited:

Mike

New member
AMD OS X Member
Joined
Jun 11, 2020
Messages
7
Hey paparotto, cheers for the tip on the BIOS update I'll have a closer look.

I did create my own amd-usb.kext but ended up disabling all the ports on XCH0 to do so. I might have another look in the future but otherwise it's okay for now.

The kext I used was killXHC0.kext, I got it from here: https://amd-osx.com/forum/viewtopic.php?t=9648&start=10
 
Back
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.