Save some power and go lights out

Many pirateboxes are packaged with batteries to run while mobile or at least away from an outlet.   Although LEDs are very energy efficient they do in fact use energy.   If the unit is in a case then the utility of using the LEDs for diagnostics is not useful.

The LEDs on the  MR3020 and most other routers can be configured via OpenWRT configuration files.   For more check out the OpenWRT documentation.   Use vi to edit /etc/config/system.  A sample is shown below that will disable all the LEDs except for the USB (3G LED).   They’ll still come on during boot, but as soon OpenWRT loads they’ll go out.

config system
option timezone ‘UTC’
option hostname ‘piratebox.lan’

config timeserver ‘ntp’
list server ’0.openwrt.pool.ntp.org’
list server ’1.openwrt.pool.ntp.org’
list server ’2.openwrt.pool.ntp.org’
list server ’3.openwrt.pool.ntp.org’

config led ‘led_usb’
option name ‘USB’
option sysfs ‘tp-link:green:3g’
option trigger ‘usbdev’
option dev ’1-1′
option interval ’50′

config led ‘led_wlan’
option sysfs ‘tp-link:green:wlan’
option default ’0′

config led ‘led_lan’
option sysfs ‘tp-link:green:lan’
option default ’0′

config led ‘led_wps’
option sysfs ‘tp-link:green:wps’
option default ’0′

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Home Tech Tips PirateBox Save some power and go lights out