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
Updated, thanks Richard
The easy way to make the script executable for all; you might be prompted for your password.
sudo chmod u+x /etc/network/if-up.d/iwl-no-blink
Meaning: Modify the file permissions on /etc/network/if-up.d/iwl-no-blink to add permission to execute for all users.
Then you can check the permissions with:
you@your-computer:~$ ls -lart /etc/network/if-up.d/iwl-no-blink -rwxr-xr-x 1 root root 119 2008-11-02 11:36 /etc/network/if-up.d/iwl-no-blink
The -rwxr-xr-x means that any user can execute the script.
This also worked on my Inspiron 1720.
Thanks,
Steven
Fantastic – my blog helped someone out! Thanks for the feedback @Steven
cool! it looks like it works on my M1330 too!
This worked on Lenovo ThinkPad X60. Thanks a lot for posting this, blinking light was not cool
I have same problem on my Dell Inspiron 6400 but how do you make it “executable for all”? I have generated a file as required but the LED still blinks!
TNX π it worked on my dell vostro 1310
Thank you very much for your help Paul, this works on my HP G3050EA!! Cheers from Nice, France π
THANK YOU!!!
Men you are GOD!
Vitej como decimo aqui en la mierda grande TE QUIERO EN PUTA!
SE TE AGRADECE EL APORTE!!!
Working in a HP 1020us… with 9.04
Thanks man, worked like a charm on my HP530 (i3945ABG) in Ubuntu 9.04.
Greets from Belarus.
i love u guy. thanks a lot. will save this info for future installs. U made my day mate. :P:P:P
@Richard
Hey did they ever reply to u on what to do becuz i am new to ubuntu and want to fix this on my Inspiron E1505, thnks.
Hi Alan
You make the file ‘executable for all’ with the command
sudo chmod u+x /etc/network/if-up.d/iwl-no-blink
There’s some more detail in the post, it starts ‘Updated, thanks Richard’. I should probably have dropped a reply directly to Richard’s comment to make it clearer, will do in future.
Cheers,
But it doesn’t work om my Vostro A860 π¦
Instead of led it switch on/off indicator of Bluetooth in system tray, but wifi led isn’t work
Worked great on a TP X200 – thank you very much.
@virgus
That sounds weird… I’m not sure what to suggest as troubleshooting, I sure don’t have an A680 to have a look at I’m afraid. So here’s what I looked at to get the script working as it is on my machine. Perhaps there are differences with your machine.
I would have a look round in the /sys/class/leds directory. My knowledge here is based largely on poking, trial and error, but my understanding is:
paul@paul-laptop:~$ ls /sys/class/leds
iwl-phy0:assoc iwl-phy0:radio iwl-phy0:RX iwl-phy0:TX
There are 4 behaviours for the wireless LED defined here, RX and TX being receive and transmit.
Looking in, say, the iwl-phy0:TX directory, there’s a ‘trigger’ file. Looking inside:
paul@paul-laptop:~$ cat /sys/class/leds/iwl-phy0:TX/trigger
none ACAD-online BAT1-charging-or-full BAT1-charging BAT1-full mmc0 phy0rx [phy0tx] phy0assoc phy0radio rfkill0
The square brackets around phy0tx means that the LED will flash when transmitting. When I echo ‘none’ into there, as in my script above:
paul@paul-laptop:~$ cat /sys/class/leds/iwl-phy0:TX/trigger
[none] ACAD-online BAT1-charging-or-full BAT1-charging BAT1-full mmc0 phy0rx phy0tx phy0assoc phy0radio rfkill0
Which means that the LED doesn’t react to any states at all. Hope that’s helpful.
EUREKA… you’re a genius! i love you man… even works on my china made dell…