>>107570127
>>107570047
Thanks for the leads, I used them to ask ChatGPT for a power cycling script:
#!/usr/bin/env bash
set -e
DEVICE=""
VENDOR=""
PRODUCT=""
# Find the USB device in sysfs
for d in /sys/bus/usb/devices/*; do
if [[ -f "$d/idVendor" && -f "$d/idProduct" ]]; then
if [[ "$(cat "$d/idVendor")" == "8087" && "$(cat "$d/idProduct")" == "0029" ]]; then
DEVICE="$(basename "$d")"
Comment too long. Click here to view the full text.