Auto "stand-by"

Here for general support for B series TVs, request and problem solve area.

sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Auto "stand-by"

Post by sbav1 »

viper3k wrote:Am not really a coder .. But am trying to look into this anyway ;)

Code: Select all

int chkSiSt() {
...
void writeSiSt(int val, int q) {
...
This is a piece of code from the signal strength app.. If I'm right then these functions check whether there is a signal or not and writes it to signalstrength.txt right ??
Yep.
Does it check for one particular source or just any source that is active (which should be fine I guess, who needs there TV one when it just displays no signal :P)..
It checks for currently active source AFAIRC.
BTW, there is 'auto stand by' in B650! But it only works for ATV (and perhaps DTV too ?). Timed at 30 min or something like that.
If that is the case .. then we just need to apply this code alongside a timer and _ZN14SsKeyInputBase7SendKeyEi() function right ??
Yes. Plus some kind of thread which checks 'signal strength' every 60 secs or so. Essentially all what's needed is already there, I think :)
jw1001
Posts: 166
Joined: Mon Dec 07, 2009 4:58 pm

Re: Auto "stand-by"

Post by jw1001 »

The Windows AutoIt3 Remote Control application of user moras86 has a "Power off" button, using keycode value 2. If both PC and TV are on the same network, then a cut-down script could send the command. This is the SendKeycode function:

Code: Select all

    Local $sc
    TCPStartup()
    While 1
        $sc = TCPConnect($tv_ip, 2345)
        If @error Then
 ;           MsgBox(4112, "Error", "TCPConnect failed with WSA error: " & @error)  ; don't need this for silent operation
            ExitLoop
        Endif
        TCPSend($sc, $keycode & @LF)
        TCPCloseSocket($sc)
        ExitLoop
    WEnd
    TCPShutdown()
Just set $tv_ip to "192.168.1.99" or whatever and $keycode = "2"

Getting the script to run is a bit trickier, but there are ways to do it, depending on OS version.

This is a quick way to get something running, but the obvious drawback is it could power off the TV even if the user has switched sources and is watching a DVD - or running a SamyGo app. Is there a way for the TV to respond to a network query on which source is in use? Alternatively, could the script determine through PC Graphics hardware whether the TV display is active?

Another way would be to send the Sleep command (keycode = "3"). This might give the user a warning, and allow them to stop the timer.

The TV has an "Auto Power Off" function (after 3 hours) but it only works when the TV has been turned on by a Timer.
sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Auto

Post by sbav1 »

juuso wrote:I thought my Tv shuts down after Tv programm ends... Damn, my cabel TV gives signal 24/7 and no table "no signal found" occurs. Really bad :-\
I swear it really works like that in my TV too (B650 non-CI+, firmware 2005.0).

It shuts itself down, after ~30 minutes (45 min ?) period of 'no signal' or so. Yet, this auto-shutdown works for analog TV source only (and perhaps for DTV as well ?).
That's not really good enough for me, because I'm mostly using HDMI inputs.

BTW: looks like there is a nice built-in feature like that in B650's for VGA/PC port as well ( I noticed it just recently). It's not shutting down TV on 'no-signal' condition; it's turning off panel backlight instead (???). Pretty nice, I should have a closer look how it works ;).
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Auto

Post by juusso »

sbav1 wrote:It's not shutting down TV on 'no-signal' condition; it's turning off panel backlight instead (???). Pretty nice, I should have a closer look how it works ;).
I would ok with that. Black panel and no sound is enough to ... sleep... :shock:
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

Post Reply

Return to “[B] Support”