Author Topic: WiFi LED indicator blinking whilst online (SOLVED)  (Read 4250 times)

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
WiFi LED indicator blinking whilst online (SOLVED)
« on: October 04, 2016, 11:02:27 am »
One annoyance I've put up with is a blinking led on wifi.
Any way to sort this, I've asked before but that was a usb wifi - now given away.
Wifi works ok now after I found one of the internal antenae connectors had come loose from the wifi card.. ::)

output from:
Code: [Select]
sudo lshw -C network
Spoiler (click here to view / hide)
[close]

Thanks in advance  ;D
« Last Edit: October 05, 2016, 12:22:54 pm by acer »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
WiFi LED indicator blinking whilst online
« Reply #1 on: October 04, 2016, 11:02:27 am »
To help us help you, ALL new requests for technical support should include basic system information.

If you haven't already done so, please open a terminal (Ctrl+Alt+T) and run the following command:
Code: [Select]
inxi -Fzthen copy what was returned in the terminal and post it back here.

This was an automated response but please don't ignore it, providing this information now is highly likely to save time for both you and any prospective respondents and aid in the diagnosis of your problem  .. Thanks in advance :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: WiFi LED indicator blinking whilst online
« Reply #2 on: October 04, 2016, 11:03:56 am »
Code: [Select]
System:    Host: HP-Laptop Kernel: 4.4.0-38-generic i686 (32 bit) Desktop: N/A
           Distro: Peppermint Seven
Machine:   System: Hewlett-Packard product: HP G60 Notebook PC v: PCID
           Mobo: Hewlett-Packard model: 3617 v: 09.67
           Bios: Hewlett-Packard v: F.65 date: 12/15/2010
CPU:       Dual core Intel Core2 Duo T5800 (-MCP-) cache: 2048 KB
           clock speeds: max: 2000 MHz 1: 1600 MHz 2: 1200 MHz
Graphics:  Card: NVIDIA G98M [GeForce 9200M GS]
           Display Server: X.Org 1.18.3 drivers: nouveau (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.11hz
           GLX Renderer: Gallium 0.4 on NV98 GLX Version: 3.0 Mesa 11.2.0
Audio:     Card Intel 82801I (ICH9 Family) HD Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.4.0-38-generic
Network:   Card-1: Realtek RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
           driver: r8169
           IF: enp2s0 state: down mac: <filter>
           Card-2: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express)
           driver: ath5k
           IF: wlp3s0 state: up mac: <filter>
Drives:    HDD Total Size: 60.0GB (14.7% used)
           ID-1: /dev/sda model: Corsair_Force_LS size: 60.0GB
Partition: ID-1: / size: 51G used: 4.5G (10%) fs: ext4 dev: /dev/sda1
           ID-2: swap-1 size: 4.26GB used: 0.00GB (0%) fs: swap dev: /dev/dm-0
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 41.0C mobo: 41.0C gpu: 43.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 173 Uptime: 22 min Memory: 404.4/4009.5MB
           Client: Shell (bash) inxi: 2.2.35

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: WiFi LED indicator blinking whilst online
« Reply #3 on: October 04, 2016, 11:28:09 am »
oh and..
Code: [Select]
lspci -vnn | grep -i net
Spoiler (click here to view / hide)
[close]

and
Code: [Select]
lsmod
Spoiler (click here to view / hide)
[close]
« Last Edit: October 04, 2016, 12:36:44 pm by acer »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: WiFi LED indicator blinking whilst online
« Reply #4 on: October 04, 2016, 01:10:00 pm »
Does running these 2 commands stop it flashing
Code: [Select]
echo none | sudo tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/nullthen
Code: [Select]
echo none | sudo tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null
For my reference:
https://askubuntu.com/questions/88103/wireless-led-doesnt-stop-blinking-on-an-hp-dv5-with-an-atheros-ar5007
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: WiFi LED indicator blinking whilst online
« Reply #5 on: October 05, 2016, 12:15:18 am »
Quote

Unfortunately, this driver doesn't have an option to turn that blinking off, but you should be able to control the leds via the sys interface and put the commands in a startup script:

    Test the commands from the command line:

    echo none | sudo tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
    echo none | sudo tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null

    This should completely turn off led triggering on data transfer. If you want it to reflect your radio status (on/off), you can try this instead (I'm afraid I cannot test this):

    echo none | sudo tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
    echo phy0radio | sudo tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null

    [If phy0radio doesn't work, you can run cat /sys/class/leds/ath5k-phy0::rx/trigger to get a list of supported triggers for the led you can try.]

    Once you know which commands to use, run them automatically when the wireless interface comes up:

        Create and open a new file in gedit from the command line:

        gksu gedit /etc/network/if-up.d/ath5k-led-trigger

        Now paste the following into the file (replace the value to echo and your wireless interface name if necessary):

        #!/bin/sh -e
        # Called whenever an interface comes up. Sets led triggers for
        # tx and rx of the ath5k module.

        # Only care about the wireless interface "wlan0"
        if [ "$IFACE" != "wlan0" ]; then
            exit 0
        fi           

        # Also exit, if /sys is not yet mounted (not sure
        # if that's even possible, but checking shouldn't hurt).
        if [ ! -d "/sys/class/leds/ath5k-phy0::tx/trigger" ]; then
            exit 0
        fi

        # Echo the two triggers
        echo none > "/sys/class/leds/ath5k-phy0::tx/trigger"
        echo none > "/sys/class/leds/ath5k-phy0::rx/trigger"

        Save, quit gedit, back at the command line make the script executable:

        sudo chmod +x /etc/network/if-up.d/ath5k-led-trigger

Next time you reboot, the blinking should be gone. If anyone else knows of a better way to run those two echos on system start (Upstart job?), feel free to comment or suggest an edit. :-)

ok, I tried the commands that you gave and the blinking stopped but, on reboot it was the back ::)
I then tried the 2nd batch of commands and creating the start-up script from your reference link page quoted above
with exactly the same result, no blinking after command input but, once script generated and system rebooted, blinking returned. ???

How do I undo/remove the non working start-up script..?
Code: [Select]
gksu gedit /etc/network/if-up.d/ath5k-led-trigger- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The thing is, when the system wifi is on and functioning as intended, the wifi LED should blue.
When the wifi is off, the LED should be orange.
What I'm getting is an orange with blue blinking LED when the wifi is connected and working.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: WiFi LED indicator blinking whilst online
« Reply #6 on: October 05, 2016, 04:25:09 am »
Quote
How do I undo/remove the non working start-up script..?

Code: [Select]
sudo rm -v /etc/network/if-up.d/ath5k-led-trigger
I knew that startup script would no longer work, that's why I didn't ask you to try it and marked the link as for "MY" reference.



Try adding those 2 lines just above the "exit 0" line in
Code: [Select]
sudo pluma /etc/rc.localI don't know if this'll work as it may get run before networking comes up, but only one way to find out.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: WiFi LED indicator blinking whilst online
« Reply #7 on: October 05, 2016, 04:43:50 am »
Try adding those 2 lines just above the "exit 0" line in
Code: [Select]
sudo pluma /etc/rc.localI don't know if this'll work as it may get run before networking comes up, but only one way to find out.

do you mean these:
Code: [Select]
        # Only care about the wireless interface "wlan0"
        if [ "$IFACE" != "wlan0" ]; then

ot the other two lines above 'exit 0'?

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: WiFi LED indicator blinking whilst online
« Reply #8 on: October 05, 2016, 04:53:00 am »
Ok, just tried this one and rebooted, no change to LED, still blinking.
Code: [Select]
        # Only care about the wireless interface "wlan0"
        if [ "$IFACE" != "wlan0" ]; then

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: WiFi LED indicator blinking whilst online
« Reply #9 on: October 05, 2016, 05:37:35 am »
No (remove those lines) .. now do these 3 commands run in sequence stop the LED blinking ?
Code: [Select]
sudo su
echo none "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
echo none "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null
?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: WiFi LED indicator blinking whilst online
« Reply #10 on: October 05, 2016, 05:53:47 am »
ok, undone the previous and inserted the commands into the CLI/Terminal, rebooted AND...

Still the same..
blinking leds

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: WiFi LED indicator blinking whilst online
« Reply #11 on: October 05, 2016, 06:44:55 am »
Please stop getting ahead of me .. I didn't ask if they'd survive a reboot, I simply asked if THOSE 3 COMMANDS stopped the blinking ?
« Last Edit: October 05, 2016, 07:14:49 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 2179
  • Karma: 456
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8, 9
Re: WiFi LED indicator blinking whilst online
« Reply #12 on: October 05, 2016, 06:53:21 am »

ok, I tried the commands that you gave and the blinking stopped but, on reboot it was the back ::)

This is the point where it was on track, before the diversion :)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: WiFi LED indicator blinking whilst online
« Reply #13 on: October 05, 2016, 07:15:24 am »
Yes but I've changed the commands, so wanted to check them BEFORE trying to autorun them at boot.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: WiFi LED indicator blinking whilst online
« Reply #14 on: October 05, 2016, 07:19:39 am »
No (remove those lines) .. now do these 3 commands run in sequence stop the LED blinking ?
Code: [Select]
sudo su
echo none "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
echo none "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null

Ok, done these, and blinking is still happening.
Then as murraymint suggested, I input the original commands and the blinking has stopped (without a reboot), my bad oops!
appologies PCNetSpec