Modify

Opened 4 years ago

Last modified 3 years ago

#17243 new defect

WDR3600 LED-Config partly broken

Reported by: anonymous Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Trunk
Keywords: Cc:

Description

There are some bugs in the LED-Definition of this Device.

1st)

Strange colour-definition here, my old device has green leds, but I think it should be blue here as well for all leds:

root@x:~# ls -l /sys/class/leds/
lrwxrwxrwx    1 root     root             0 Jul 24 03:55 ath9k-phy0 -> ../../devices/platform/ar934x_wmac/leds/ath9k-phy0
lrwxrwxrwx    1 root     root             0 Jul 24 03:55 ath9k-phy1 -> ../../devices/pci0000:00/0000:00:00.0/leds/ath9k-phy1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:lan1 -> ../../devices/virtual/leds/tp-link:blue:lan1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:lan2 -> ../../devices/virtual/leds/tp-link:blue:lan2
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:lan3 -> ../../devices/virtual/leds/tp-link:blue:lan3
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:lan4 -> ../../devices/virtual/leds/tp-link:blue:lan4
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:qss -> ../../devices/platform/leds-gpio/leds/tp-link:blue:qss
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:system -> ../../devices/platform/leds-gpio/leds/tp-link:blue:system
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:wan -> ../../devices/virtual/leds/tp-link:blue:wan
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:wlan2g -> ../../devices/platform/leds-gpio/leds/tp-link:blue:wlan2g
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:green:usb1 -> ../../devices/platform/leds-gpio/leds/tp-link:green:usb1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:green:usb2 -> ../../devices/platform/leds-gpio/leds/tp-link:green:usb2

2nd)
The default-config just contains usb-leds and 2ghz-wifi-led. Missing 5ghz-wifi, wan, qss and so on.

root@x:~# cat /etc/config/system 
[...]
config led 'led_usb1'
	option name 'USB1'
	option sysfs 'tp-link:green:usb1'
	option trigger 'usbdev'
	option dev '1-1.1'
	option interval '50'

config led 'led_usb2'
	option name 'USB2'
	option sysfs 'tp-link:green:usb2'
	option trigger 'usbdev'
	option dev '1-1.2'
	option interval '50'

config led 'led_wlan2g'
	option name 'WLAN2G'
	option sysfs 'tp-link:blue:wlan2g'
	option trigger 'phy0tpt'

3rd)
There is no LED for 5ghz-wifi definied in /sys/class/leds:

root@x:~# ls -l /sys/class/leds/
lrwxrwxrwx    1 root     root             0 Jul 24 03:55 ath9k-phy0 -> ../../devices/platform/ar934x_wmac/leds/ath9k-phy0
lrwxrwxrwx    1 root     root             0 Jul 24 03:55 ath9k-phy1 -> ../../devices/pci0000:00/0000:00:00.0/leds/ath9k-phy1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:lan1 -> ../../devices/virtual/leds/tp-link:blue:lan1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:lan2 -> ../../devices/virtual/leds/tp-link:blue:lan2
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:lan3 -> ../../devices/virtual/leds/tp-link:blue:lan3
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:lan4 -> ../../devices/virtual/leds/tp-link:blue:lan4
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:qss -> ../../devices/platform/leds-gpio/leds/tp-link:blue:qss
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:system -> ../../devices/platform/leds-gpio/leds/tp-link:blue:system
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:wan -> ../../devices/virtual/leds/tp-link:blue:wan
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:blue:wlan2g -> ../../devices/platform/leds-gpio/leds/tp-link:blue:wlan2g
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:green:usb1 -> ../../devices/platform/leds-gpio/leds/tp-link:green:usb1
lrwxrwxrwx    1 root     root             0 Jan  1  1970 tp-link:green:usb2 -> ../../devices/platform/leds-gpio/leds/tp-link:green:usb2

Attachments (0)

Change History (5)

comment:1 Changed 4 years ago by RubenKelevra

Created an account here.

comment:2 Changed 4 years ago by anonymous

Version 1.1/1.2/1.3 has blue led, 1.4/1.5 - green

comment:3 Changed 4 years ago by anonymous

There are many default configs that do not enable much more than just power (if anything). It would be nice if default configs were reasonable starting points, with power, WAN, WLAN, LAN, and USB being set up correctly.

comment:4 Changed 3 years ago by attila.lendvai

same issue with my tp-link 4300.

it's an uninformed opinion, but maybe the led names shouldn't contain the color, only its function?

comment:5 Changed 3 years ago by Krausse

Is there an option to disable the other LEDs, or how could I configure the other LEDs?

The following are available, but there are still 3 LEDs which couldn't be disabled..
echo "0" > /sys/devices/platform/leds-gpio/leds/tp-link:blue:system/brightness
echo "0" > /sys/devices/platform/leds-gpio/leds/tp-link:blue:qss/brightness
echo "0" > /sys/devices/platform/leds-gpio/leds/tp-link:blue:system/brightness
echo "0" > /sys/devices/platform/leds-gpio/leds/tp-link:blue:wlan2g/brightness
echo "0" > /sys/devices/platform/leds-gpio/leds/tp-link:green:usb1/brightness
echo "0" > /sys/devices/platform/leds-gpio/leds/tp-link:green:usb2/brightness

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.