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

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 #15 on: October 05, 2016, 07:31:49 am »
Okay do these 3 commands stop the blinking
Code: [Select]
sudo su
echo none | tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
echo none | tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null
and what's the output from
Code: [Select]
cat /etc/rc.local
« Last Edit: October 05, 2016, 07:33:30 am by PCNetSpec »
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 #16 on: October 05, 2016, 08:00:55 am »
The 3 commands don't stop the blinking.

Output from:
Code: [Select]
cat /etc/rc.local
Code: [Select]
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0

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 #17 on: October 05, 2016, 08:30:17 am »
but
Code: [Select]
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
does stop the blinking ?
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 #18 on: October 05, 2016, 08:38:44 am »
but
Code: [Select]
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
does stop the blinking ?

Yes, it's been fine for a while now, until reboot, but I won't go there LOL

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 #19 on: October 05, 2016, 08:46:38 am »
well I'm baffled why
Code: [Select]
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
would work at a normal command prompt ($)
but
Code: [Select]
echo none | tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
echo none | tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null
wouldn't work at an elevated command prompt (#)

Can you reboot (important that you reboot first) .. then whilst it's blinking post the output from:
Code: [Select]
cat /sys/class/leds/ath5k-phy0::tx/triggerand
Code: [Select]
cat /sys/class/leds/ath5k-phy0::rx/triggerthen run:
Code: [Select]
echo none | sudo tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/nulland
Code: [Select]
echo none | sudo tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/nullso it stops blinking, then post the output again from:
Code: [Select]
cat /sys/class/leds/ath5k-phy0::tx/triggerand
Code: [Select]
cat /sys/class/leds/ath5k-phy0::rx/triggeragain
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 #20 on: October 05, 2016, 09:21:16 am »
After reboot:
Code: [Select]
cat /sys/class/leds/ath5k-phy0::tx/trigger
Code: [Select]
none kbd-scrollock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock ADP1-online usb-gadget usb-host cpu0 cpu1 cpu2 cpu3 rfkill0 rfkill1 phy0rx [phy0tx] phy0assoc phy0radio
Code: [Select]
cat /sys/class/leds/ath5k-phy0::rx/trigger
Code: [Select]
none kbd-scrollock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock ADP1-online usb-gadget usb-host cpu0 cpu1 cpu2 cpu3 rfkill0 rfkill1 [phy0rx] phy0tx phy0assoc phy0radio
Commands run in terminal:
Code: [Select]
echo none | sudo tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
Code: [Select]
echo none | sudo tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null
Post command output from:
Code: [Select]
cat /sys/class/leds/ath5k-phy0::tx/trigger
Code: [Select]
[none] kbd-scrollock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock ADP1-online usb-gadget usb-host cpu0 cpu1 cpu2 cpu3 rfkill0 rfkill1 phy0rx phy0tx phy0assoc phy0radio
and

Code: [Select]
cat /sys/class/leds/ath5k-phy0::rx/trigger
Code: [Select]
[none] kbd-scrollock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock ADP1-online usb-gadget usb-host cpu0 cpu1 cpu2 cpu3 rfkill0 rfkill1 phy0rx phy0tx phy0assoc phy0radio
« Last Edit: October 05, 2016, 09:27:50 am 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 #21 on: October 05, 2016, 10:16:10 am »
So the only difference is "none" changes to "[none]" .. well running those commands at an elevated prompt worked for me  :-\

Sod it, let's try it anyway...

First let's backup rc.local
Code: [Select]
sudo cp -v /etc/rc.local /etc/rc.local.bakNow run:
Code: [Select]
sudo pluma /etc/rc.localwhen it opens, make it read
Code: [Select]
!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

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

exit 0
SAVE the file .. reboot to test.
« Last Edit: October 05, 2016, 10:17:46 am by PCNetSpec »
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 #22 on: October 05, 2016, 10:37:17 am »
ok mate, thanks  ;D
Done Exactly as you requested but it's still blinking after reboot.

The other thing I noticed between the before and after outputs is [phy0tx] changed to phy0tx and [phy0rx] changed to phy0rx (end of each transmit/receive trigger)
Might that have something to do with the issue or was that expected?

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 #23 on: October 05, 2016, 10:40:00 am »
Were you running these 3 commands
Code: [Select]
sudo su
echo none | tee "/sys/class/leds/ath5k-phy0::tx/trigger" > /dev/null
echo none | tee "/sys/class/leds/ath5k-phy0::rx/trigger" > /dev/null
in sequence, one after the other, and in the same terminal window ?
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 #24 on: October 05, 2016, 10:54:23 am »
Yes, straight after the sudo su command the text changed colour to elevated priviledges
Then I entered each command followed by the [enter] key.
« Last Edit: October 05, 2016, 10:57:51 am 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 #25 on: October 05, 2016, 11:02:19 am »
okay let's leave sudo in, does
Code: [Select]
sudo su
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
stop the blinking ?
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 #26 on: October 05, 2016, 11:06:21 am »
Yes!!  ;D

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 #27 on: October 05, 2016, 11:32:46 am »
What's the output from:
Code: [Select]
ifconfig?
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 #28 on: October 05, 2016, 11:47:08 am »
What's the output from:
Code: [Select]
ifconfig?

Spoiler (click here to view / hide)
[close]
« Last Edit: October 07, 2016, 05:45:55 am 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 #29 on: October 05, 2016, 11:48:12 am »
Run:
Code: [Select]
sudo pluma /etc/network/if-up.d/ath5k-led-triggermake it read:
Code: [Select]
#!/bin/sh -e

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

# Also exit, if ath5k-phy0::tx directory doesn't exist.
if [ ! -d "/sys/class/leds/ath5k-phy0::tx" ]; then
    exit 0
fi

# Echo the triggers
echo none > "/sys/class/leds/ath5k-phy0::tx/trigger"
echo none > "/sys/class/leds/ath5k-phy0::rx/trigger"
SAVE the file and exit pluma.

Back in the terminal run:
Code: [Select]
sudo chmod +x /etc/network/if-up.d/ath5k-led-triggernow reboot to test.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec