Posted: Sun Jan 08, 2017 7:57 Post subject: R7000 - Kong's build : How to disable lights ?
Hello,
I tried this :
Quote:
add this to your startup script to disable the lights on your r7000.
for i in 2 3 8 9 12 13 17 18 ; do gpio enable $i ; done
for i in 14 15 ; do gpio disable $i ; done
Run this from the command line to disable the 4 LAN lights.
et robowr 0x0 0x18 0x1ff
et robowr 0x0 0x18 0x0
et robowr 0x0 0x1a 0x0
Joined: 16 Nov 2015 Posts: 6447 Location: UK, London, just across the river..
Posted: Sun Jan 08, 2017 8:30 Post subject:
well i have those 2 in my start up script and its working..
i also noticed if my local DNS beaks down and my adblocking script is not working this lights usually show off too, otherwise restart does the job for me _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
well i have those 2 in my start up script and its working..
i also noticed if my local DNS beaks down and my adblocking script is not working this lights usually show off too, otherwise restart does the job for me
What exactly do you have in your startup script?
I'm not interested in using this, but have been following the topic. I've yet to hear any success stories for disabling the LAN/switch port LEDs. Have you been able to do this? If so, a lot of people will be interested to know how. _________________ R7000 Nighthawk - DD-WRT v3.0-r50308
R7000 Nighthawk - DD-WRT v3.0-r50308
~~~~~~~~~~Dismantled for learning opportunities~~~~~~~~~~
WRT54Gv2
WRT54Gv8.2
~~~~~~~~~~Other Settings~~~~~~~~~
https://nextdns.io/?from=2d3sq39x https://pi-hole.net/ https://github.com/DNSCrypt/dnscrypt-proxy
Not shure if shell path is exactly right, but it works ;- ) Saved under menue ADMINISTRATION/COMMANDS/STARTUP
#!/bin/sh
#
for i in 2 3 8 9 12 13 17 18 ; do gpio enable $i ; done
for i in 14 15 ; do gpio disable $i ; done
et robowr 0x0 0x18 0x1ff
et robowr 0x0 0x18 0x0
et robowr 0x0 0x1a 0x0 _________________ IT Crowd - Have You Tried Turning It Off And On Again?
You can execute it in ADMINISTRATION/COMMANDS, but with the STARTUP script, no problem
All leds are off
Big thx Doppel-D
@Kong : can you add an entry in ADMINISTRATION/MANAGEMENT to enable/disable from the GUI ?
Hope you can _________________ Unofficial Kong's release repository : http://ddwrt-kong.clonevince.fr/
Joined: 18 Mar 2014 Posts: 12923 Location: Netherlands
Posted: Mon Jan 09, 2017 21:43 Post subject:
Clonevince, you stumbled upon one of the mysteries I recently discovered: Commands work form the CLI, from scripts but not when running from the Administration/Commands tab.
If I understand correctly this seems to be caused by the fact that special characters are interpreted and not send directly to the shell.
So every special character has to be preceded by an escape character.
So to run these command from the GUI it has to be something like: for i in 2 3 8 9 12 13 17 18 \; do gpio enable \$i \; done
I am not a linux savvy guy so it is probably not entirely correct but it is to give you a general idea.
This worked by saving it into the startup scripts under Administration/Commands! It also disables the LEDs for the USB drive, which is nice.
Code:
#!/bin/sh
#
for i in 2 3 8 9 12 13 17 18 ; do gpio enable $i ; done
for i in 14 15 ; do gpio disable $i ; done
et robowr 0x0 0x18 0x1ff
et robowr 0x0 0x18 0x0
et robowr 0x0 0x1a 0x0
Has anybody tried this with the Asus RT-N66U? I didn't have any luck with it. I'm going to try to see if I can get the Asus RT-AC68U lights disabled also. I'll report back
On my R700 all LEDs switch off beside the LAN1 LED, it stays turn on with those start-up commands on the latest Kong. Any one got an idea what's wrong?
On my R700 all LEDs switch off beside the LAN1 LED, it stays turn on with those start-up commands on the latest Kong. Any one got an idea what's wrong?
Joined: 16 Nov 2015 Posts: 6447 Location: UK, London, just across the river..
Posted: Mon Jan 01, 2018 19:44 Post subject:
well on last Kong build all led's are off on my unit and script is working as it should...
the only reason the led is on is if you have external power supply providing power to this units that you plugged in the router or bad grounding.. those are the cases why light could be on ... _________________ Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913