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’


Fatal error: Uncaught Error: Call to undefined function get_field() in /homepages/26/d179873914/htdocs/sr/wp-content/themes/business-lite_custom/core/actions/global-actions.php:101 Stack trace: #0 /homepages/26/d179873914/htdocs/sr/wp-includes/class-wp-hook.php(292): business_loop_content('') #1 /homepages/26/d179873914/htdocs/sr/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #2 /homepages/26/d179873914/htdocs/sr/wp-includes/plugin.php(484): WP_Hook->do_action(Array) #3 /homepages/26/d179873914/htdocs/sr/wp-content/themes/business-lite_custom/core/core-hooks.php(159): do_action('business_loop') #4 /homepages/26/d179873914/htdocs/sr/wp-content/themes/business-lite_custom/core/actions/post-actions.php(64): business_loop() #5 /homepages/26/d179873914/htdocs/sr/wp-includes/class-wp-hook.php(292): business_post_content('') #6 /homepages/26/d179873914/htdocs/sr/wp-includes/class-wp-hook.php(316): WP_Hook->apply_filters('', Array) #7 /homepages/26/d179873914/htdocs/sr/wp-includes/plugin.php(484): WP_Hook-> in /homepages/26/d179873914/htdocs/sr/wp-content/themes/business-lite_custom/core/actions/global-actions.php on line 101