<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/remotely-unplugging-a-usb-device-on-my-mac-without-touching-it-qrodkwqyx" -->

---
title: Remotely unplugging a USB device on my Mac, without...
description: You can power-cycle a USB port on a Mac remotely with the tool uhubctl, no physical replug needed. The author installed it with Homebrew and ran 'sudo uhubctl...
canonical: https://daily.dev/posts/remotely-unplugging-a-usb-device-on-my-mac-without-touching-it-qrodkwqyx
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Remotely unplugging a USB device on my Mac, without touching it | daily.dev
og:description: You can power-cycle a USB port on a Mac remotely with the tool uhubctl, no physical replug needed. The author installed it with Homebrew and ran 'sudo uhubctl...
og:url: https://daily.dev/posts/remotely-unplugging-a-usb-device-on-my-mac-without-touching-it-qrodkwqyx
og:image: https://api.daily.dev/og/posts/QrOdKWqyx.png
og:image:alt: Remotely unplugging a USB device on my Mac, without touching it
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Remotely unplugging a USB device on my Mac, without touching it

**[Jeff Geerling](https://daily.dev/sources/jeffgeerling)** · 4 min read · 1 upvotes · 0 comments

## Summary

You can power-cycle a USB port on a Mac remotely with the tool uhubctl, no physical replug needed. The author installed it with Homebrew and ran 'sudo uhubctl -l 8-1 -p 1 -a cycle -d 5' on an M4 Max Mac Studio to reset a partially-flashed device. The matching USB 2 port is toggled at the same time. Thunderbolt ports don't work, but regular USB-C and USB-A ports did. The Mac Studio wasn't in the support matrix, so he filed a PR to add it.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.jeffgeerling.com/blog/2026/remote-control-usb-hub>

## Questions this post answers

### How can I remotely power cycle a USB port on a Mac without physically unplugging the device?

Use uhubctl, installed with Homebrew. Run 'uhubctl' to list hubs and ports, then 'sudo uhubctl -l 8-1 -p 1 -a cycle -d 5' to power the port off, wait 5 seconds, and power it back on. The matching USB 2 port is toggled together with the USB 3 port. It works on regular USB-C and USB-A ports, not Thunderbolt ports.

_Developers debugging hardware over SSH keep up with handy tools like this on daily.dev._

### Does uhubctl work on the M4 Max Mac Studio?

Yes, the leftmost front USB-C port on an M4 Max Mac Studio could be power cycled with uhubctl, even though the support matrix only listed the M4 Mac mini (2 front ports only) and a late 2010 MacBook Air. Thunderbolt ports are not supported. A pull request was filed to add the Mac Studio to the support matrix.

_Anyone choosing Mac hardware for USB debugging workflows can follow tool support changes on daily.dev._

## Similar posts on daily.dev

- [GitHub - mvp/uhubctl: uhubctl - USB hub per-port power control](https://daily.dev/posts/github---mvp-uhubctl-uhubctl---usb-hub-per-port-power-control-skvcwfyni) · Hacker News · 0 upvotes · 0 comments
- [I stopped using my TV's USB port as a power supply for streaming devices](https://daily.dev/posts/i-stopped-using-my-tv-s-usb-port-as-a-power-supply-for-streaming-devices-l13fxnzrh) · XDA Developers · 0 upvotes · 0 comments
- [You can finally power on a Mac remotely](https://daily.dev/posts/you-can-finally-power-on-a-mac-remotely-xreitlgvn) · Jeff Geerling · 1 upvotes · 0 comments
- [Linux 7.0 Apple Silicon Device Tree Updates Have All The Bits For USB Type-C Ports](https://daily.dev/posts/linux-7-0-apple-silicon-device-tree-updates-have-all-the-bits-for-usb-type-c-ports-wzlncocpq) · Phoronix · 0 upvotes · 0 comments
- [I ditched my desktop for a MacBook, but this dock made me realize I never actually needed to choose](https://daily.dev/posts/i-ditched-my-desktop-for-a-macbook-but-this-dock-made-me-realize-i-never-actually-needed-to-choose-afds47ssp) · XDA Developers · 0 upvotes · 0 comments

---

Tags: [#mac](https://daily.dev/tags/mac), [#raspberry-pi](https://daily.dev/tags/raspberry-pi)

[View this post on daily.dev](https://daily.dev/posts/remotely-unplugging-a-usb-device-on-my-mac-without-touching-it-qrodkwqyx)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Remotely unplugging a USB device on my Mac, without touching it","url":"https://daily.dev/posts/remotely-unplugging-a-usb-device-on-my-mac-without-touching-it-qrodkwqyx","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/remotely-unplugging-a-usb-device-on-my-mac-without-touching-it-qrodkwqyx"},"datePublished":"2026-11-27T05:52:46.731Z","dateModified":"2026-11-27T05:53:04.598Z","description":"You can power-cycle a USB port on a Mac remotely with the tool uhubctl, no physical replug needed. The author installed it with Homebrew and ran 'sudo uhubctl...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bfae7e4362556ceb2124e6eba696ed72?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/bfae7e4362556ceb2124e6eba696ed72?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Jeff Geerling","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Jeff Geerling","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/a425a8edd27a4930ae183c796db840b9","url":"https://daily.dev/sources/jeffgeerling"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/remotely-unplugging-a-usb-device-on-my-mac-without-touching-it-qrodkwqyx","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"mac,raspberry-pi","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Jeff Geerling","item":"https://daily.dev/sources/jeffgeerling"},{"@type":"ListItem","position":3,"name":"Remotely unplugging a USB device on my Mac, without touching it"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/remotely-unplugging-a-usb-device-on-my-mac-without-touching-it-qrodkwqyx#faq","mainEntity":[{"@type":"Question","name":"How can I remotely power cycle a USB port on a Mac without physically unplugging the device?","acceptedAnswer":{"@type":"Answer","text":"Use uhubctl, installed with Homebrew. Run 'uhubctl' to list hubs and ports, then 'sudo uhubctl -l 8-1 -p 1 -a cycle -d 5' to power the port off, wait 5 seconds, and power it back on. The matching USB 2 port is toggled together with the USB 3 port. It works on regular USB-C and USB-A ports, not Thunderbolt ports. Developers debugging hardware over SSH keep up with handy tools like this on daily.dev."}},{"@type":"Question","name":"Does uhubctl work on the M4 Max Mac Studio?","acceptedAnswer":{"@type":"Answer","text":"Yes, the leftmost front USB-C port on an M4 Max Mac Studio could be power cycled with uhubctl, even though the support matrix only listed the M4 Mac mini (2 front ports only) and a late 2010 MacBook Air. Thunderbolt ports are not supported. A pull request was filed to add the Mac Studio to the support matrix. Anyone choosing Mac hardware for USB debugging workflows can follow tool support changes on daily.dev."}}]}
```

