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

Mike

New member
Jun 11, 2020
6
2
3
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
 
  • Like
Reactions: dave

Mike

New member
Jun 11, 2020
6
2
3
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
Jun 11, 2020
6
2
3
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)
 
  • Like
Reactions: Aluveitie

paparotto

New member
Jul 9, 2020
9
0
1
iMessage
Paparotto
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

Mike

New member
Jun 11, 2020
6
2
3
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
Jul 9, 2020
9
0
1
iMessage
Paparotto
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 : [email protected]
 
Last edited: