Skip to content

Instantly share code, notes, and snippets.

@joshskidmore
Created May 22, 2019 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshskidmore/75aa1fe8fec499c557c55824ad83c9b3 to your computer and use it in GitHub Desktop.
Save joshskidmore/75aa1fe8fec499c557c55824ad83c9b3 to your computer and use it in GitHub Desktop.
gpd-pocket2-fix-optical-sensor.sh
#!/usr/bin/env bash
id=$(lsusb.py | grep -i hail | awk '{ print $1 }')
echo "on" | sudo tee /sys/bus/usb/devices/${id}/power/control
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment