Skip to content

Instantly share code, notes, and snippets.

@jbehrends
Last active December 14, 2015 03:39
Show Gist options
  • Save jbehrends/5022897 to your computer and use it in GitHub Desktop.
Save jbehrends/5022897 to your computer and use it in GitHub Desktop.
Notes on how to control the Seagate Dockstar's LEDs under debian
The following syntax shows how to control both LEDs
echo [command] > /sys/class/leds/dockstar\:green\:health/trigger
echo [command] > /sys/class/leds/dockstar\:orange\:misc/trigger
In the above examples replace [command] with one of the following:
none - turns off the LED.
default-on - turns on the LED.
timer - allows you to set timed on/off lighting in milliseconds.
mmc0 - blinks the LED when the MMC card is accessed, similar to an HDD light on your computer.
nand-disk - blinks the LED when the NAND device is accessed, similar to an HDD light on your computer. (doesn't seem to work with USB mounted drives)
--------------------------
Example on how to use timer-based control for the LEDs,
Example: 1 sec on, 5 sec off
# echo timer > /sys/class/leds/dockstar\:orange\:misc/trigger
# echo 1000 > /sys/class/leds/dockstar\:orange\:misc/delay_on
# echo 5000 > /sys/class/leds/dockstar\:orange\:misc/delay_off
--------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment