MCP2221A Breakout does not resume after suspend on macos

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
hitchyflav
 
Posts: 2
Joined: Sat May 14, 2022 3:30 pm

MCP2221A Breakout does not resume after suspend on macos

Post by hitchyflav »

When I first plug in the MCP2221 Breakout, I can find the device with ioreg.

Code: Select all

$ ioreg -p IOUSB | grep MCP2221
    +-o MCP2221 USB-I2C/UART Combo@14300000  <class AppleUSBDevice, id 0x1001385a6, registered, matched, active, busy 0 (2 ms), retain 16>
After the mac goes into sleep, the MCP2221 doesn't seem to come back up.

Code: Select all

$ ioreg -p IOUSB | grep MCP2221
(nothing)
There seems to be some device configuration that could be saved on the device by reading the spec, but I don't see any options that stick out specifically related to this.

https://ww1.microchip.com/downloads/en/ ... 05565C.pdf

I'm curious if anyone has seen this issue or found a fix/workaround.

Thanks!

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: MCP2221A Breakout does not resume after suspend on macos

Post by adafruit_support_mike »

What do you get from a simple:

Code: Select all

ioreg -p IOUSB

before the Mac sleeps and after it wakes up?

User avatar
hitchyflav
 
Posts: 2
Joined: Sat May 14, 2022 3:30 pm

Re: MCP2221A Breakout does not resume after suspend on macos

Post by hitchyflav »

The command enumerates all of my usb devices:

Code: Select all

$ ioreg -p IOUSB
+-o Root  <class IORegistryEntry, id 0x100000100, retain 24>
  +-o AppleUSBVHCIBCE Root Hub Simulation@80000000  <class AppleUSBRootHubDevice, id 0x100000518, registered, matched, active, busy 0 (4077 ms), retain 1$
  | +-o IOUSBHostDevice@80800000  <class AppleUSBDevice, id 0x10000051a, registered, matched, active, busy 0 (0 ms), retain 12>
  | +-o FaceTime HD Camera (Built-in)@80200000  <class AppleUSBDevice, id 0x10000051e, registered, matched, active, busy 0 (0 ms), retain 13>
  | +-o Ambient Light Sensor@80300000  <class AppleUSBDevice, id 0x100000527, registered, matched, active, busy 0 (1 ms), retain 11>
  | +-o Touch Bar Backlight@80700000  <class AppleUSBDevice, id 0x10000052b, registered, matched, active, busy 0 (1 ms), retain 13>
  | +-o Touch Bar Display@80600000  <class AppleUSBDevice, id 0x100000545, registered, matched, active, busy 0 (0 ms), retain 13>
  | +-o Apple T2 Controller@80100000  <class AppleUSBDevice, id 0x100000549, registered, matched, active, busy 0 (0 ms), retain 13>
  | +-o Headset@80400000  <class AppleUSBDevice, id 0x100000550, registered, matched, active, busy 0 (0 ms), retain 11>
  | +-o Apple Internal Keyboard / Trackpad@80500000  <class AppleUSBDevice, id 0x10015eac3, registered, matched, active, busy 0 (2 ms), retain 19>
  +-o AppleUSBXHCI Root Hub Simulation@14000000  <class AppleUSBRootHubDevice, id 0x10000057e, registered, matched, active, busy 0 (4125 ms), retain 11>
    +-o IOUSBHostDevice@14400000  <class AppleUSBDevice, id 0x1001271b6, registered, matched, active, busy 0 (0 ms), retain 13>
    | +-o IOUSBHostDevice@14450000  <class AppleUSBDevice, id 0x1001271d2, registered, matched, active, busy 0 (0 ms), retain 12>
    +-o USB2.0 Hub Controller@14100000  <class AppleUSBDevice, id 0x1001565e7, registered, matched, active, busy 0 (0 ms), retain 14>
    | +-o DURGOD Taurus K320@14140000  <class AppleUSBDevice, id 0x10015660c, registered, matched, active, busy 0 (1 ms), retain 16>
    | +-o Razer DeathAdder Elite@14110000  <class AppleUSBDevice, id 0x10015663f, registered, matched, active, busy 0 (1 ms), retain 16>
    +-o MCP2221 USB-I2C/UART Combo@14300000  <class AppleUSBDevice, id 0x10015fdf1, registered, matched, active, busy 0 (1 ms), retain 16>
After it wakes up, it's the same list without the MCP2221 row.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: MCP2221A Breakout does not resume after suspend on macos

Post by adafruit_support_mike »

Hmm.. what kind of Mac are you using, and what version of macOS?

I've tested an MCP2221A on three machines:

- a 2023 M2 Macbook Pro running Ventura 13.2.1
- a 2019 i9 Macbook Pro running Ventura 13.2.1
- a 2016 i7 Macbook Pro running Monterey 12.6.3

All of them show the MCP2221A before sleeping and after waking up.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”