Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

TinyPilot's USB not recognized on macOS

オープン
#1,848 コメント 21 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
静か
技術スタック
raspberry-pi, shell

調査の方向性

Reproduce the disconnect-and-reconnect sequence on the reported Apple Silicon macOS versions, then compare the USB state before and after reconnection. Start with /opt/tinypilot-privileged/remove-usb-gadget and /opt/tinypilot-privileged/init-usb-gadget; done means TinyPilot is recognized again and mouse and keyboard input work without rebooting.

索引モデルが issue の本文から書いたものです。

説明

bug

Description

Disconnecting and then reconnecting TinyPilot to a macOS-based machine via its USB cable causes TinyPilot to stop being recognized as a USB device. To restore functionality, you must reboot your TinyPilot. Alternatively, you can run sudo /opt/tinypilot-privileged/remove-usb-gadget and then sudo /opt/tinypilot-privileged/init-usb-gadget.

This behavior may only be present on Apple Silicon-based Macs. I could not reproduce this behavior on an Intel-based Mac running OS X 10.14 (very old).

This behavior was originally reported on a 2021 MacBook Pro M1 Pro running 14.6.1. I reproduced this behavior on a MacBook Air M2 running 14.4.1.

This behavior doesn't change when adjusting the Mac's USB accessory behavior. i.e., changing "Allow accessories to connect" to "Always", "Ask Every Time", "Ask for New Accessories", or "Automatically When Unlocked" doesn't affect the behavior.

There's a discussion thread on Apple's support forums related to USB hubs not working on macOS 14.4. So it may instead be an OS issue.

There are also similar Reddit threads reporting that some USB hubs no longer work correctly. Some users suggest that version 14.4.1 resolves these USB issues, but my machine on 14.4.1, and the TinyPilot forum user's machine on 14.6.1, both have this issue.

I haven't yet tried updating to Sequoia (15.0) - the user on the TinyPilot forum suggests the latest version of macOS also has this behavior.

What's the behavior that you expect?

I'd expect TinyPilot to successfully connect to the Mac's USB and correctly send mouse and keyboard input whenever you connect the USB cable.

What's happening instead?

When reconnecting TinyPilot's USB cable, the Mac no longer recognizes it as a USB device, causing a state where you cannot use TinyPilot's mouse or keyboard without rebooting TinyPilot.

What are the steps to reproduce this behavior?

  1. Connect your TinyPilot to a Mac (possibly only Apple Silicon-based or running macOS >= 14.4)
  2. Move TinyPilot's mouse or use the keyboard to show it's working
  3. Disconnect the USB cable from the Mac
  4. Reconnect the USB cable to the Mac
  5. Attempt to move TinyPilot's mouse or type characters on TinyPilot's keyboard
    a. Nothing happens

Screenshots

The Mac's USB System Information after connecting TinyPilot initially:

system-information1

The Mac's USB System Information after disconnecting and reconnecting TinyPilot's USB cable (this is identical to not having a connected USB device):

system-information2

@jotaen4tinypilot & @jdeanwallace - Do you have any suggestions for additional tests I can perform here?

主要言語
Python
スター
3.5k
フォーク
291
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tiny-pilot/tinypilot のほかの issue

tiny-pilot/tinypilot の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。