Search
-
Recent Posts
Tags
adwords amazon analytics api apple aws blog chrome chromium cloud Design dropbox ec2 email error facebook firefox google google-apps homebrew ipad javascript jQuery linux lion mac microsoft mysql osx os x paypal php plugin quicksilver raspberry pi scam social spam twitter ubuntu unix video windows woo wordpress
Tag Archives: debian
How to disable the LEDs on the PogoPlug running Debian Squeeze
If you’ve installed Debian Squeeze on the PogoPlug you’ll notice there is no longer an /sys/module/xce/sections/ or /dev/xce path for you to echo commands to. However, you can still control the LEDs by using the sys -> devices -> platform -> LEDS / GPIO How to disable the LEDs echo 0 > /sys/devices/platform/leds-gpio/leds/status:red:fault/brightness echo 0 > /sys/devices/platform/leds-gpio/leds/status:green:health/brightness How to make the LED green echo 0 > /sys/devices/platform/leds-gpio/leds/status:red:fault/brightness echo 1 > /sys/devices/platform/leds-gpio/leds/status:green:health/brightness How to make the LED red echo 1 > /sys/devices/platform/leds-gpio/leds/status:red:fault/brightness echo 0 > /sys/devices/platform/leds-gpio/leds/status:green:health/brightness How to make the LED orange / yellow echo 1 > /sys/devices/platform/leds-gpio/leds/status:red:fault/brightness echo 1 > /sys/devices/platform/leds-gpio/leds/status:green:health/brightness You can also try using values 1-255 to control the brightness but I didn’t see much difference between different numbers. ymmv. Also, if you wish to read the status of the LEDs you can do so by using something like cat with these paths: cat /sys/devices/platform/leds-gpio/leds/status:red:fault/brightness A value of 0 indicates the LED is off. Most likely if you are running Debian there will be no events that turn the LEDs on – but in case you have issues you can disable system events from triggering the LEDS you also need to change the ‘triggers’ – first check out the existing ones: cat /sys/devices/platform/leds-gpio/leds/status:green:health/trigger This results in: [none] nand-disk timer oneshot ide-disk1 ide-disk2 heartbeat gpio default-on mmc0 And for the red led use: cat /sys/devices/platform/leds-gpio/leds/status:red:fault/trigger Which should result in: [none] nand-disk timer oneshot ide-disk1 ide-disk2 heartbeat gpio default-on mmc0 Next, to disable the events from triggering the LEDs run: … Continue reading