Community discussions

MikroTik App
 
User avatar
payday
Member Candidate
Member Candidate
Topic Author
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Turn on LCD using script

Mon Nov 12, 2012 11:16 pm

Could you, please, add a command to turn on the LCD backlight from the script. I would like to be able to turn it on using Traffic Monitor or Scheduler.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26815
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Turn on LCD using script

Tue Nov 13, 2012 1:58 pm

what do you mean by LCD backlight? For what purpose?
 
User avatar
payday
Member Candidate
Member Candidate
Topic Author
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Turn on LCD using script

Tue Nov 13, 2012 3:11 pm

When option 'backlight-timer' is set to some time, LCD backlight turns off after preset time, and then I must touch it to turn backlight on. It is not convenient. Also, I will not use option 'backlight-timer=never' because I don't want it to illuminate all night.
If there was a command 'backlight=yes' I could use it in script to turn on LCD at preset time of day (using Scheduler) or when traffic on gateway interface is detected (using Traffic Monitor)
I tried to execute 'enabled=yes' but LCD starts with menu instead of previously selected graph. I just want it to show graph that was selected before it timed out.

Mikrotik RB2011UAS-2HnD-IN RouterOS v6rc3
 
User avatar
payday
Member Candidate
Member Candidate
Topic Author
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Turn on LCD using script

Fri Dec 21, 2012 12:23 am

I have found a solution:

ros code

/lcd set backlight-timeout=never

/system leds set 0 type=interface-status interface=ether4 leds=lcd
Now, when I turn my computer on (computer is connected to ether4) LCD backlight turns on, also. When I turn off my computer, LCD also goes off.
:)
 
ofca
Member Candidate
Member Candidate
Posts: 229
Joined: Fri Aug 20, 2004 7:18 pm

Re: Turn on LCD using script

Mon Jan 06, 2014 8:47 pm

Ah, the simple pleasures in life and that sense of accomplishment when something just... works :)
 
User avatar
payday
Member Candidate
Member Candidate
Topic Author
Posts: 233
Joined: Thu Aug 16, 2012 11:05 pm

Re: Turn on LCD using script

Mon Jan 06, 2014 10:24 pm

Funny, you have digged the thread that is one year old, and everything has changed since then. :) Now it works in different way:
/lcd backlight state=on
Thank you Mikrotik for adding mentioned option. :)
 
ChristianGrundy
just joined
Posts: 2
Joined: Fri Oct 23, 2020 8:45 pm

Re: Turn on LCD using script

Fri Oct 23, 2020 8:48 pm

Thanks, this really helps
/lcd backlight state=on

Who is online

Users browsing this forum: anav, codered1983, silviub, triodetube and 43 guests