Can't change LED on GoFlex Home? October 19, 2010 03:07AM |
Registered: 14 years ago Posts: 36 |
root@GoFlexHome:~# ls /sys/class/leds/ plug:green:health
root@GoFlexHome:~# echo heartbeat > /sys/class/leds/plug\:green\:health/trigger bash: echo: write error: Invalid argument
Re: Can't change LED on GoFlex Home? August 12, 2012 10:00PM |
Registered: 12 years ago Posts: 36 |
Re: Can't change LED on GoFlex Home? August 13, 2012 12:24AM |
Admin Registered: 14 years ago Posts: 19,295 |
if [ -d /sys/class/leds/status:green:health ]; then echo default-on > /sys/class/leds/status:green:health/trigger fi if [ -d /sys/class/leds/dockstar:green:health ]; then echo default-on > /sys/class/leds/dockstar:green:health/trigger echo none > /sys/class/leds/dockstar:orange:misc/trigger fi if [ -d /sys/class/leds/plug:green:health ]; then echo default-on > /sys/class/leds/plug:green:health/trigger fi exit 0
log_action_msg "Will now halt" if [ -d /sys/class/leds/status:green:health ]; then echo none > /sys/class/leds/status:green:health/trigger fi if [ -d /sys/class/leds/dockstar:green:health ]; then echo none > /sys/class/leds/dockstar:green:health/trigger fi if [ -d /sys/class/leds/plug:green:health ]; then echo none > /sys/class/leds/plug:green:health/trigger fi halt -d -f $netdown $poweroff $hddown
Re: Can't change LED on GoFlex Home? August 13, 2012 07:05PM |
Registered: 12 years ago Posts: 36 |
Re: Can't change LED on GoFlex Home? August 13, 2012 07:36PM |
Admin Registered: 14 years ago Posts: 19,295 |
Re: Can't change LED on GoFlex Home? August 14, 2012 11:30PM |
Registered: 12 years ago Posts: 36 |
Re: Can't change LED on GoFlex Home? August 14, 2012 11:48PM |
Admin Registered: 14 years ago Posts: 19,295 |
Re: Can't change LED on GoFlex Home? November 29, 2012 09:51PM |
Registered: 12 years ago Posts: 38 |
# Turn on the white LED echo default-on > /sys/class/leds/status:white:misc/trigger
# Turn off white LED echo none > /sys/class/leds/status:white:misc/triggerIt's also possible to blink the green LED at shutdown time by adding the following command in the stop section of the same script:
# Blink green LED echo timer > /sys/class/leds/status:green:health/trigger
Re: Can't change LED on GoFlex Home? November 30, 2012 12:30AM |
Admin Registered: 14 years ago Posts: 19,295 |
log_action_msg "Will now halt" if [ -d /sys/class/leds/status:green:health ]; then echo none > /sys/class/leds/status:green:health/trigger fi halt -d -f $netdown $poweroff $hddown
> # Blink green LED > echo timer > > /sys/class/leds/status:green:health/trigger >
Re: Can't change LED on GoFlex Home? December 01, 2012 04:00PM |
Registered: 12 years ago Posts: 38 |
Re: Can't change LED on GoFlex Home? December 01, 2012 04:59PM |
Admin Registered: 14 years ago Posts: 19,295 |
Re: Can't change LED on GoFlex Home? December 01, 2012 11:55PM |
Admin Registered: 14 years ago Posts: 19,295 |
Re: Can't change LED on GoFlex Home? December 02, 2012 10:26PM |
Registered: 12 years ago Posts: 38 |
Re: Can't change LED on GoFlex Home? December 02, 2012 11:27PM |
Admin Registered: 14 years ago Posts: 19,295 |
Re: Can't change LED on GoFlex Home? January 05, 2013 03:11PM |
Registered: 12 years ago Posts: 36 |
$ ls /sys/class/leds/ status:green:health status:orange:fault status:white:misc
$ ls /sys/class/leds/status\:green\:health brightness device max_brightness power subsystem trigger ueventUnfortunately a lot of things listed there do not work. This also shows that my current configuration does not allow you to control the timing of led flashes (when you use 'timer' as the trigger mode) because there are no 'delay_on' and 'delay_off' directories (which are provided by the ledtrig-transient module).
$ cat /sys/class/leds/status\:green\:health/trigger [none] nand-disk timer default-on heartbeat
# echo timer > /sys/class/leds/status\:green\:health/trigger
Re: Can't change LED on GoFlex Home? January 06, 2013 02:49AM |
Admin Registered: 14 years ago Posts: 19,295 |
Re: Can't change LED on GoFlex Home? January 07, 2013 04:03AM |
Registered: 12 years ago Posts: 36 |