Page 6 of 11 FirstFirst ... 45678 ... LastLast
Results 51 to 60 of 102

Thread: Blinking wifi LED

  1. #51
    Join Date
    Oct 2009
    Beans
    14

    Re: Blinking wifi LED

    now i change the code as

    Code:
    sudo echo phy0assoc >/sys/class/leds/ath9k-phy0\:assoc/trigger
    but it's written on the terminal windows is:

    Permission denied

    ??

  2. #52
    Join Date
    May 2007
    Beans
    69

    Re: Blinking wifi LED

    Quote Originally Posted by arslano View Post
    now i change the code as

    Code:
    sudo echo phy0assoc >/sys/class/leds/ath9k-phy0\:assoc/trigger
    but it's written on the terminal windows is:

    Permission denied

    ??
    its pretty straight forward and it did the trick for my Dell E6400

    lets start

    open terminal
    type the following in terminal "sudo gedit"

    you will notice it opens gedit, now with root privileges

    paste the script from Mobusbys post into the text file
    save the file as "blink" in the following folder "file system>etc>network>if-up.d

    now close gedit

    in terminal type the following

    sudo chown root /etc/network/if-up.d/blink

    press enter

    type the following in terminal

    sudo chmod a+x /etc/network/if-up.d/blink

    press enter


    close terminal

    restart machine


    that should do the trick, if not post back


    cheers
    Last edited by yunone; November 9th, 2009 at 06:34 AM. Reason: add blink

  3. #53
    Join Date
    Oct 2009
    Beans
    1

    Re: Blinking wifi LED

    Quote Originally Posted by laptoplinux View Post
    Whoa, whoa, whoa. Who said anything about going back to Windows? I used to use Windows, like 3 years ago. But besides being a primitive, clunky mess, Windows is entirely unsuited for the work that I currently do.

    If anything, I'd go pickup a shiny new Macbook and carry on. But until I am forced to move off of Hardy or replace my current computer, that's all moot.

    (That script may work to fix the blinking. If so, great. But Ibex also had a bad habit of constantly dropping connections on me.)

    We'll just see what happens. Surely enough people will be annoyed by this that the devs will eventually correct it.... right?
    Hi all!
    I've just visited this forum. Happy to get acquainted with you. Thanks.

  4. #54
    Join Date
    May 2009
    Beans
    13
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Blinking wifi LED

    Quote Originally Posted by mobusby View Post
    The files you want to change are in /sys/class/leds and are symbolic links to the LED controls. You can do
    Code:
    stat /sys/class/leds/*
    to see where the links point to, but it is unimportant.

    TX and RX are for transfer and receive (respectively), and control behavior when transferring or receiving data; assoc takes over when the card connects to an access point; radio takes over before association takes place, and just lets you know if the card is active or not.

    This script is perhaps a bit more elegant, and works if you have multiple effected wi-fi cards installed. It only allows blinking when connecting. The LED remains solid and on at all other times (when the wi-fi card is enabled or when it has a steady link). I find this behavior minimally invasive but still useful for debugging and troubleshooting network issues.

    Code:
    #!/bin/bash
    
    if [ "$IFACE" = "wlan0" ]; then
        for direc in /sys/class/leds/iwl-phy*X
        do
            echo none > $direc/trigger
            # never trigger blinking for TX, RX
        done
        
        for direc in /sys/class/leds/iwl-phy*radio
        do
            echo none > $direc/trigger
            # never trigger blinking for radio
        done
    
        # customize this loop to act on any relevant wi-fi cards
        for direc in /sys/class/leds/iwl-phy0:assoc
        do
            echo phy0assoc > $direc/trigger
            # do trigger blinking during association
        done
    fi
    Place this script in /etc/network/if-up.d/ (call it whatever you want) and do
    Code:
    sudo chown root /etc/network/if-up.d/<script name>
    sudo chmod a+x /etc/network/if-up.d/<script name>
    This worked for me with Intrepid and works now on Jaunty RC. Hopefully it will work for other people, too!
    This script worked on Ubuntu 9.04 installed on a Dell XPS M1210 but now it does not work on Ubuntu 9.10.

  5. #55
    Join Date
    May 2007
    Beans
    69

    Re: Blinking wifi LED

    Quote Originally Posted by ldjuda View Post
    This script worked on Ubuntu 9.04 installed on a Dell XPS M1210 but now it does not work on Ubuntu 9.10.
    i just did this last night on 9.10 on my E6400 and it works like a charm


    can you step by step walk us through what you are doing?

  6. #56
    Join Date
    May 2009
    Beans
    13
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Blinking wifi LED

    Quote Originally Posted by yunone View Post
    i just did this last night on 9.10 on my E6400 and it works like a charm


    can you step by step walk us through what you are doing?
    Code:
    sudo nano /etc/network/if-up.d/stopBlink
    paste the the script then save.

    Code:
    sudo chown root /etc/network/if-up.d/stopBlink
    Code:
    sudo chmod a+x /etc/network/if-up.d/stopBlink
    Code:
    sudo -i
    Code:
    reboot

  7. #57
    Join Date
    May 2007
    Beans
    69

    Re: Blinking wifi LED

    Quote Originally Posted by ldjuda View Post
    Code:
    sudo nano /etc/network/if-up.d/stopBlink
    paste the the script then save.

    Code:
    sudo chown root /etc/network/if-up.d/stopBlink
    Code:
    sudo chmod a+x /etc/network/if-up.d/stopBlink
    Code:
    sudo -i
    Code:
    reboot

    grab mobusbys new script right above and do the following...this is what i did and works great


    its pretty straight forward and it did the trick for my Dell E6400

    lets start

    open terminal
    type the following in terminal "sudo gedit"

    you will notice it opens gedit, now with root privileges

    paste the script from Mobusbys post into the text file
    save the file as "blink" in the following folder "file system>etc>network>if-up.d

    now close gedit

    in terminal type the following

    sudo chown root /etc/network/if-up.d/blink

    press enter

    type the following in terminal

    sudo chmod a+x /etc/network/if-up.d/blink

    press enter


    close terminal

    restart machine
    Last edited by yunone; November 9th, 2009 at 06:34 AM. Reason: add blink

  8. #58
    Join Date
    May 2009
    Beans
    13
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Blinking wifi LED

    Quote Originally Posted by yunone View Post
    grab mobusbys new script right above and do the following...this is what i did and works great


    its pretty straight forward and it did the trick for my Dell E6400

    lets start

    open terminal
    type the following in terminal "sudo gedit"

    you will notice it opens gedit, now with root privileges

    paste the script from Mobusbys post into the text file
    save the file as "blink" in the following folder "file system>etc>network>if-up.d

    now close gedit

    in terminal type the following

    sudo chown root /etc/network/if-up.d/blink

    press enter

    type the following in terminal

    sudo chmod a+x /etc/network/if-up.d/

    press enter


    close terminal

    restart machine
    Appreciate the help but that method is the same as mine but the difference is you using gedit while I prefer using the console. That method did not resolve my issue. Also have in mind we both have different hardware. I can get the wifi led to stop blinking by disconnecting and connecting back to my wireless network. But once I reboot I have to do the same process again which is tedious.

  9. #59
    Join Date
    May 2009
    Beans
    13
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Blinking wifi LED

    Quote Originally Posted by mobusby View Post
    It seems my little script needs updating for Karmic. Now there is an extra ":" in the directory names. This modified script should be a bit more flexible with names.

    Code:
    #!/bin/bash
    
    if [ "$IFACE" = "wlan0" ]; then
        for direc in /sys/class/leds/iwl-phy*X
        do
            echo none > $direc/trigger
            # never trigger blinking for TX, RX
        done
        
        for direc in /sys/class/leds/iwl-phy*radio
        do
            echo none > $direc/trigger
            # never trigger blinking for radio
        done
    
        # customize this loop to act on any relevant wi-fi cards
        for direc in /sys/class/leds/iwl-phy*assoc
        do
            echo phy0assoc > $direc/trigger
            # do trigger blinking during association
        done
    fi
    Cheers!
    It's seems that I miss this post by mobusby patching the script for Karmic. Thanks dude, this script works on my XPS-M1210 Laptop. Much appreciated.

  10. #60
    Join Date
    Nov 2007
    Beans
    42
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Blinking wifi LED

    The script not only stops the blinking but also kills the led. Now the led is always off in my Sony VAIO VGN-C240e laptop...is there something I'm missing?

    UPDATE: Never mind. Now it's working perfectly....thanks!
    Last edited by Cris(c); November 4th, 2009 at 02:10 AM. Reason: Update

Page 6 of 11 FirstFirst ... 45678 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •