Skip to content

Instantly share code, notes, and snippets.

@rjocoleman
Last active April 13, 2018 01:21
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 rjocoleman/f2c6d08a6a52aa91ca92538b15427d67 to your computer and use it in GitHub Desktop.
Save rjocoleman/f2c6d08a6a52aa91ca92538b15427d67 to your computer and use it in GitHub Desktop.
## unbind the usbhid driver from USB scales
# Elene vendor_id: 7b7c, product_id: 0100
SUBSYSTEM=="usb", ATTRS{idVendor}=="7b7c", ATTRS{idProduct}=="0100", MODE="0660", GROUP="root", RUN="/bin/sh -c 'echo -n $kernel:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
# Dymo vendor_id: 0922, product_id: 8003 = M10, 8004 = M25, 8009 = Mettler S250
SUBSYSTEM=="usb", ATTRS{idVendor}=="0922", ATTRS{idProduct}=="8003|8004|8009", MODE="0660", GROUP="root", RUN="/bin/sh -c 'echo -n $kernel:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
# Stamps.com vendor_id: 1446, product_id: 6A75 = 2510, 6A73 = 510, 6A78 = 75LB
SUBSYSTEM=="usb", ATTRS{idVendor}=="1446", ATTRS{idProduct}=="6A73|6A75|6A78", MODE="0660", GROUP="root", RUN="/bin/sh -c 'echo -n $kernel:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
# Fairbanks SCB-R9000-14U vendor_id: 0B67, product_id: 555E
SUBSYSTEM=="usb", ATTRS{idVendor}=="0B67", ATTRS{idProduct}=="555E", MODE="0660", GROUP="root", RUN="/bin/sh -c 'echo -n $kernel:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
# Mettler PS60 vendor_id: 0EB8, product_id: F000
SUBSYSTEM=="usb", ATTRS{idVendor}=="0EB8", ATTRS{idProduct}=="F000", MODE="0660", GROUP="root", RUN="/bin/sh -c 'echo -n $kernel:1.0 > /sys/bus/usb/drivers/usbhid/unbind'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment