Wireless LED on Ubuntu

From Knowledge76

Jump to: navigation, search

Overview

This How To gets that Wireless LED working on your laptop. Also see Alternative Method at the bottom of the page.


Create Script and Install

  • Open your text editor and copy the following code into a blank document.


#!/bin/sh
#
# wled
#
WIRELESS_LED=/proc/acpi/asus/wled

# $IFACE is set by ifup/down, $PPP_IFACE by pppd [ -n "$PPP_IFACE" ] && IFACE=$PPP_IFACE
[ -r $WIRELESS_LED ] || /sbin/modprobe asus_acpi
if [ -w $WIRELESS_LED ]; then case $(dirname "$0") in */if-up.d) if [ -d /sys/class/net/$IFACE/wireless ]; then echo -n 1 > $WIRELESS_LED fi ;; */if-down.d) if [ -d /sys/class/net/$IFACE/wireless ]; then echo -n 0 > $WIRELESS_LED fi ;; esac fi


  • Save the file - name it wled and place it in your home directory


From your terminal type

sudo install -m 755 /home/'username'/wled /etc/network/if-up.d/
sudo install -m 755 /home/'username'/wled /etc/network/if-down.d/


Alternative Method

This method may also work for some laptops.

From your terminal

sudo -s
echo "options ipw2200 led=1" >> /etc/modprobe.d/ipw2200.modprobe
modprobe -r ipw2200
modprobe ipw2200
exit
Personal tools