Commit 59e976a
Add script for checking USB data connection (#1925)
Resolves tiny-pilot/tinypilot-pro#1636.
This PR adds a script for determining the status of the USB data
connection, based on the power state. (See docstring comment.)
Note that in contrast to the [HDMI check
script](#1924), we don’t
need root privileges here, so the script can live in
`/opt/tinypilot/scripts`. Otherwise, the mechanics of the script are
equivalent. I’ve also added the info to the debug logs, just in case and
mostly for the sake of completeness.
<img width="824" height="902" alt="Screenshot 2025-10-20 at 19 53 13"
src="https://github.com/user-attachments/assets/ab471090-e612-44f0-97d3-597b84bfc890"
/>
<a data-ca-tag
href="https://codeapprove.com/pr/tiny-pilot/tinypilot/1925"><img
src="https://codeapprove.com/external/github-tag-allbg.png" alt="Review
on CodeApprove" /></a>
---------
Co-authored-by: Jan Heuermann <[email protected]>1 parent c81ba3b commit 59e976a
File tree
2 files changed
+73
-0
lines changed- debian-pkg/opt/tinypilot-privileged/scripts
- scripts
2 files changed
+73
-0
lines changedLines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
139 | 145 | | |
140 | 146 | | |
141 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments