When Macbook Pro M3 with Sonoma Sleeps, USB Ethernet Through Docking Station Doesn't Reconnect

After sleep and wake I found some USB connected devices would work, while others would not - specifically ethernet.


To fix this, I used a tool from Linux, but it requires homebrew to be installed. If you don't have homebrew, instructions can be found here:


https://brew.sh/


Next I pulled some software through brew with the commands on a terminal:


brew tap mvp/uhubctl https://github.com/mvp/uhubctl

brew install uhubctl


The uhubctl command gives you access to the USB connected devices.

First, I listed the connected USB devices by simply running uhubctl:


uhubctl


Which gave the output:

Current status for hub 2-1.1.2.2 [2109:2817 VIA Labs, Inc. USB2.0 Hub, USB 2.10, 5 ports, ppps]
  Port 1: 0103 power enable connect [05ac:026c Apple Inc. Magic Keyboard with Numeric Keypad F0T8102010DJKNCA8]
  Port 2: 0103 power enable connect [05ac:0265 Apple Inc. Magic Trackpad CC281550424J2XQAU]
  Port 3: 0303 power lowspeed enable connect [045e:001e Microsoft Microsoft IntelliMouse? Explorer]
  Port 4: 0100 power
  Port 5: 0507 power highspeed suspend enable connect [2109:8817 VIA Labs, Inc. USB Billboard Device 0000000000000001]
Current status for hub 2-2.1.2.2 [2109:0817 VIA Labs, Inc. USB3.0 Hub, USB 3.20, 4 ports, ppps]
  Port 1: 02a0 power 5gbps Rx.Detect
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 2-1 [05e3:0610 GenesysLogic USB2.1 Hub, USB 2.10, 4 ports, ppps]
  Port 1: 0503 power highspeed enable connect [05e3:0610 GenesysLogic USB2.1 Hub, USB 2.10, 4 ports, ganged]
  Port 2: 0503 power highspeed enable connect [05ac:12a8 Apple Inc. iPhone 00008101001C28E626B8001E]
  Port 3: 0103 power enable connect [2109:0103 VLI Inc. USB 2.0 BILLBOARD 0000000000000001]
  Port 4: 0100 power
Current status for hub 2-2 [05e3:0625 GenesysLogic USB3.2 Hub, USB 3.20, 4 ports, ppps]
  Port 1: 0203 power 5gbps U0 enable connect [05e3:0626 GenesysLogic USB3.1 Hub, USB 3.20, 4 ports, ganged]
  Port 2: 02a0 power 5gbps Rx.Detect
  Port 3: 02a0 power 5gbps Rx.Detect
  Port 4: 02a0 power 5gbps Rx.Detect


The list above shows connected hubs, the location can be found next to the hub word, e.g. 2-1.1.2.2 or 2-1. The port then shows what is connected. Unfortunately for me, there was no specific port for the ethernet, but from this I determined I'd need to shutdown and restart hub 2-2 port 1.


Unfortunately, this also disconnected my keyboard and trackpad, so I fixed this by creating a shell script which can be run in the terminal. I created a file called lan-reset with the following contents:

#!/usr/bin/env bash

uhubctl -a off -p 1 -l 2-2
uhubctl -a on -p 1 -l 2-2

The file then needed to be made executable by running:

chmod +x lan-reset 

in the terminal in the folder that contains that file.


Now, if my machine sleeps and on restart does not have network connectivity, I run my lan-reset script from the command line and it reconnects automatically without having to restart the machine.


Hopefully, Apple will solve this themselves, but in the meantime, this works nicely for me and removes the need for a restart. Worth noting it takes about 10 seconds for the ethernet connection to come back up.

MacBook Pro 16″, macOS 14.3

Posted on Feb 4, 2024 12:29 PM

Reply

There are no replies.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

When Macbook Pro M3 with Sonoma Sleeps, USB Ethernet Through Docking Station Doesn't Reconnect

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.