sudo apt-get install libusb-1.0-0-dev
git clone https://github.com/mvp/uhubctl
cd uhubctl
make
make install
sudo uhubctl
USB ハブ ポートを観察すると、
次のようになります。
Current status for hub 2-3 [0bda:0489 Generic 4-Port USB 3.0 Hub, USB 3.20, 4 ports, ppps]
Port 1: 0203 power 5gbps U0 enable connect [8087:0b37 Intel(R) Corporation Intel(R) RealSense(TM) Tracking Camera T265 2322110308]
Port 2: 0203 power 5gbps U0 enable connect [8087:0b37 Intel(R) Corporation Intel(R) RealSense(TM) Tracking Camera T265 2322110082]
Port 3: 02a0 power 5gbps Rx.Detect
Port 4: 02a0 power 5gbps Rx.Detect
Current status for hub 1-2 [0bda:5489 Generic 4-Port USB 2.0 Hub, USB 2.10, 4 ports, ppps]
Port 1: 0100 power
Port 2: 0100 power
Port 3: 0100 power
Port 4: 0100 power
#起動直後に再接続しないとインテル® Corporation Intel® RealSense™ は存在しません
sudo nano /etc/profile
説明: ユーザーがログインすると、bash はまずシステム管理者によって作成されたグローバル ログイン スクリプトを自動的に実行します。
最後に追加
sudo uhubctl -l 2-3 -a cycle -p 1-4
コマンド ライン パラメータ -l は USB ハブ ポートを意味します。 -a サイクルはオフにして再度オンにすることを意味します。 -p は 1 ~ 4 ポートを意味します。
プロンプトに従って保存します
起動後に抜き差しする必要はもうありません