Flickering Wireless LED in Ubuntu 8.10

A quick solution to that darned flashing wireless light in Ubuntu 8.10 – works on my Dell Vostro anyway.

This solution didn’t work for me – I had to make a slight adjustment to the directories updated. It does give some background on how it works if you’re interested though.
Save the following file as “/etc/network/if-up.d/iwl-no-blink” and make it executable for all.

#!/bin/sh
if [ "$IFACE" = "wlan0" ]; then
  for dir in /sys/class/leds/iwl-phy*; do
    echo none > $dir/trigger
  done
fi

Now the wireless light is off when disconnected, blinks when I’m connecting, and is steady on when I’m connected.

Updated, 23th March 09
…but it doesn’t work on resume from suspend. When my Vostro 1310 resumes from suspend, it’s back to the defaults. I fixed this behaviour by adding a script /etc/pm/sleep.d/00wireless, executable for all.

#!/bin/sh
case "$1" in
        resume|thaw)
                /etc/network/if-up.d/iwl-no-blink
        ;;
        *)
        ;;
esac

Continue reading “Flickering Wireless LED in Ubuntu 8.10”