Skip to content

Instantly share code, notes, and snippets.

@n0ts
Created April 28, 2014 01:17
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 n0ts/11359549 to your computer and use it in GitHub Desktop.
Save n0ts/11359549 to your computer and use it in GitHub Desktop.
usbhid.sh
#!bin/sh
echo -n "5-1:1.0" > /sys/bus/usb/drivers/usbhid/unbind
echo -n "5-1:1.0" > /sys/bus/usb/drivers/usbrh/bind
echo -n "5-2:1.0" > /sys/bus/usb/drivers/usbhid/unbind
echo -n "5-2:1.0" > /sys/bus/usb/drivers/usbrh/bind
ls /proc/usbrh
cat /proc/usbrh/0/temperature
cat /proc/usbrh/1/temperature
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment