Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
343 stars 52 forks source link

Eco LED settings has no effect #264

Closed 0jay closed 5 years ago

0jay commented 5 years ago

Device Model: TG799vac Gui Version: 8.8.56

Description of problem: Eco LED settings has no effect

FrancYescO commented 5 years ago

try to reboot to see if is working

0jay commented 5 years ago

I did reboot at the time. No effect.

Ansuel commented 5 years ago

can you check if you gave this file /sbin/status-led-eventing.lua ?

kevdagoat commented 5 years ago

Can’t you just stop the leds using /etc/init.d/ledfw stop?

0jay commented 5 years ago

The point is, mate, that the gui feature is non functioning on the TG799

On Tue, 9 Oct 2018 at 12:25 pm, Kevdagoat notifications@github.com wrote:

Can’t you just stop the leds using /etc/init.d/ledfw stop?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Ansuel/tch-nginx-gui/issues/264#issuecomment-428029070, or mute the thread https://github.com/notifications/unsubscribe-auth/AoSCUcDVqRz-t-ORORphf0wDi5vUz1-uks5ui_sEgaJpZM4XLQDy .

kevdagoat commented 5 years ago

I know. It is a suggestion to replace ansuels script with that command

On 9 Oct 2018, at 9:36 am, Oscar James notifications@github.com wrote:

The point is, mate, that the gui feature is non functioning on the TG799

On Tue, 9 Oct 2018 at 12:25 pm, Kevdagoat notifications@github.com wrote:

Can’t you just stop the leds using /etc/init.d/ledfw stop?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Ansuel/tch-nginx-gui/issues/264#issuecomment-428029070, or mute the thread https://github.com/notifications/unsubscribe-auth/AoSCUcDVqRz-t-ORORphf0wDi5vUz1-uks5ui_sEgaJpZM4XLQDy .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

0jay commented 5 years ago

ok

On Tue, 9 Oct 2018 at 12:41 pm, Kevdagoat notifications@github.com wrote:

I know. It is a suggestion to replace ansuels script with that command

On 9 Oct 2018, at 9:36 am, Oscar James notifications@github.com wrote:

The point is, mate, that the gui feature is non functioning on the TG799

On Tue, 9 Oct 2018 at 12:25 pm, Kevdagoat notifications@github.com wrote:

Can’t you just stop the leds using /etc/init.d/ledfw stop?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/Ansuel/tch-nginx-gui/issues/264#issuecomment-428029070 , or mute the thread < https://github.com/notifications/unsubscribe-auth/AoSCUcDVqRz-t-ORORphf0wDi5vUz1-uks5ui_sEgaJpZM4XLQDy

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Ansuel/tch-nginx-gui/issues/264#issuecomment-428031589, or mute the thread https://github.com/notifications/unsubscribe-auth/AoSCUY2sTNGRjCWd4CkdQkhQomruD9R_ks5ui_69gaJpZM4XLQDy .

Ansuel commented 5 years ago

Still waiting if the file exists.... Ledfw restart broke the led system entirely

0jay commented 5 years ago

I’m not at home mate, will have to wait till next week, sorry

flywire commented 5 years ago

TG799 GUI Version [ 8.8.62 ] running as double NAT (80.0.1.138).

image

For reference:

image Technicolor TG789(i)vac. Power and Reset switches not shown.

image Telstra Gateway Max (TG799vac). Power, Reset, WPS and DECT switches not shown.

image Telstra T-Gateway (TG797nV3)

image Front panel of TG800vac Telstra Gateway Max 2, DJN2130 Telstra Frontier Gateway or DJA0230 Telstra Smart Modem (Bottom to top: USB slot (USB2 on TG800), and Reset, Power, Pair and Wifi switches - top three also with leds.)

image Top panel of DJN2130 Telstra Frontier Gateway or DJA0230 Telstra Smart Modem. Note TG800vac Telstra Gateway Max 2 has same panel with no sim Backup/Signal led.

Note: Detailed examination of TG799 shows Status has green, red and blue leds, Internet, WPS and DECT have green and red leds and other leds are single green leds.

Ansuel commented 5 years ago

@flywire can you check if you have the file?

also i need the log with logread

problem fixed

flywire commented 5 years ago

/sbin/status-led-eventing.lua exists.

Which log file? Syslog is disabled by default.

Ansuel commented 5 years ago

this file /sbin/status-led-eventing.lua exist?

flywire commented 5 years ago

Sorry, swiped wrong path.

I see logread generates output. What do you want?

Ansuel commented 5 years ago

i already fixed the problem about eco led... i hust need to know if that file is present on your modem

flywire commented 5 years ago

https://github.com/Ansuel/tch-nginx-gui/issues/264#issuecomment-428107479

/sbin/status-led-eventing.lua exists [on my modem].

Maybe Internal server error is a different issue?

Ansuel commented 5 years ago

what is your timeout value?

flywire commented 5 years ago

What is command to retrieve?

Ansuel commented 5 years ago

from the gui eco page

flywire commented 5 years ago

default - 5000

Ansuel commented 5 years ago

update to latest build..

Then can you try to reboot and switch the eco led option on and off anche check if something change to the led?

flywire commented 5 years ago

https://github.com/Ansuel/tch-nginx-gui/issues/264#issuecomment-428102932

TG799 GUI Version [ 8.8.62 ] running as double NAT (80.0.1.138).

Rebooted - same error.

Ansuel commented 5 years ago

@flywire update, don't need to reboot this time

flywire commented 5 years ago

GUI Version [ 8.8.64 ] - No errors but all leds are green.

image

Do I need to wait 5000 (sec(?))?

Ansuel commented 5 years ago

5000 ms = 5 sec

eco led off --> save

eco led on --> save

Any difference?

flywire commented 5 years ago

No difference - waited 15 sec and checked between each.

BTW Running vnstat with internet, ethernet and led on usb constantly flickering.

Ansuel commented 5 years ago

can you give me the output of this command?

ps | grep status

flywire commented 5 years ago
/sbin$ ps | grep status
 1329 root      6148 S    {status-led-even} /usr/bin/lua /sbin/status-led-even
13633 root      1888 S    grep status
Ansuel commented 5 years ago

uci show ledfw

flywire commented 5 years ago
/sbin$ uci show ledfw
ledfw.internet=service
ledfw.internet.check='1'
ledfw.iptv=service
ledfw.iptv.check='1'
ledfw.iptv.itf='iptv'
ledfw.voip=service
ledfw.voip.check='1'
ledfw.timeout=timeout
ledfw.timeout.ms='5000'
ledfw.syslog=syslog
ledfw.syslog.trace='0'
ledfw.status_led=status_led
ledfw.status_led.enable='1'
Ansuel commented 5 years ago

give me this file /etc/ledfw/statemachines.lua

flywire commented 5 years ago

emailed

Ansuel commented 5 years ago

ok so the problem is that statemachines doesn't have support for status at all...

let's check if the framework supports it

cat /usr/lib/lua/ledframework/ledhelper.lua | grep is_status_led_enabled

flywire commented 5 years ago

/etc/ledfw$ cat /usr/lib/lua/ledframework/ledhelper.lua | grep is_status_led_enabled -- @function [parent=#ledhelper] is_status_led_enabled function M.is_status_led_enabled()

Ansuel commented 5 years ago

ok good

Ansuel commented 5 years ago

update to latest dev gui and try the switch....

if it doesn't work reboot and retry also tell me if all the leds works properly

flywire commented 5 years ago

Tested as above - all leds always green.

Can leds be controlled with UCI? Do you want direct access to modem (through double nat)?

Ansuel commented 5 years ago

try with latest dev (and reboot after upgrade)

flywire commented 5 years ago

Status - Red; Wan, Internet, Ethernet - Green; other leds off; status or wifi button does nothing.

BTW - What does setting first three Eco Settings to on do?

Kherby commented 5 years ago

DGA4130, Bridge Mode, 8.8.61-stable

Can't find ECO/CPU settings anymore. Do i have to restart the modem after GUI upgrade? I already cleared the browser cache but i still can't find it...

Ansuel commented 5 years ago

they are now i a separate card

Kherby commented 5 years ago

they are now i a separate card

I understand but i don't have this card in bridge mode... I can only see the 10 old cards.

Ansuel commented 5 years ago

will unlock that card for bridge mode

Kherby commented 5 years ago

Thanks!

Ansuel commented 5 years ago

@flywire i need this directory /usr/lib/lua/ledframework

Kherby commented 5 years ago

@Ansuel 8.8.67-stable hasn't fixed the missing ECO card in bridge mode yet...

flywire commented 5 years ago

i need this directory /usr/lib/lua/ledframework

Assume email received 13 hours ago.

flywire commented 5 years ago

I don't expect this could be functional on a TG800 as there are only three switches with leds (power, pair [wps] and wifi). No leds would imply unit off.

Certainly don't want to press power switch.

Ansuel commented 5 years ago

@Kherby done sorry @flywire will check email anyway also the dga4132 don't have the info button.. we don't need the button, as it's only used to deacivate is for n ms (the timeout option)

Ansuel commented 5 years ago

@flywire i need file from /rom/usr/lib/lua/ledframework (latest dev overwrite them so.... the zip you send me is useless, if i'm wrong send them anyway i notice something strange in the file you sent)