[App] libSoftPowerOff D/E/F/H

Here are software that related with Samsung F series TVs.
Please don't create any new topic here unless you have software to post/release.

zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff D/E/F/H

Post by zoelechat »

If you can connect to Telnet -> soft-off
If you can't -> real-off
:)
I do NOT receive any PM. Please use forum.
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff D/E/F/H

Post by zoelechat »

In case you were talking about ON vs. soft-OFF, you can use cmd_on/cmd_off to write/delete some flag. e.g.:

Code: Select all

touch /tmp/softoff

Code: Select all

rm /tmp/softoff
Then check if file exists to know state.
I could log it but I don't think it's necessary since most people are in front of their TV when they're watching it. :)
I do NOT receive any PM. Please use forum.
smart_lover
SamyGO Project Donor
Posts: 161
Joined: Sun May 03, 2015 6:11 am

Re: [App] libSoftPowerOff D/E/F/H

Post by smart_lover »

zoelechat wrote:In case you were talking about ON vs. soft-OFF, you can use cmd_on/cmd_off to write/delete some flag. e.g.:

Code: Select all

touch /tmp/softoff

Code: Select all

rm /tmp/softoff
Then check if file exists to know state.
I could log it but I don't think it's necessary since most people are in front of their TV when they're watching it. :)
I think its my solution.
yes! but I am far far away from my TVs and I want to controll them all remotely!
smart_lover
SamyGO Project Donor
Posts: 161
Joined: Sun May 03, 2015 6:11 am

Re: [App] libSoftPowerOff D/E/F/H

Post by smart_lover »

How can I soft power off TV locally? I mean,assume that there is no connection between TV and server with telnet and there is nobody in front of TV(using remote control), So how can I set a schedule(on specified time) on TV to set it off (with helps of libSoftPowerOff I want to set panel off only)?
Thanks in advance for your great helps as always.
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff D/E/F/H

Post by zoelechat »

Set offtimer from TV menu. Done.
I do NOT receive any PM. Please use forum.
smart_lover
SamyGO Project Donor
Posts: 161
Joined: Sun May 03, 2015 6:11 am

Re: [App] libSoftPowerOff D/E/F/H

Post by smart_lover »

zoelechat wrote:Set offtimer from TV menu. Done.
Simplest way!
I want to be able to run a routine(like run libSoftPowerOff and libRunWidget) at a specified time during disconnection and do not want to let TV turn itself off(real off).
Note:If TV backs to network and connected to server, Server will run above lib with telnet. What if there is no telnet and we do not want to let TV turn it off really(we want softpoweroff)?
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff D/E/F/H

Post by zoelechat »

No idea what you're talking about :)
I do NOT receive any PM. Please use forum.
User avatar
momchetoi
SamyGO Project Donor
Posts: 92
Joined: Thu Apr 23, 2015 7:36 pm
Location: in front of the TV

Re: [App] libSoftPowerOff D/E/F/H

Post by momchetoi »

Hi,
After downgrading from fw 2606 to fw. 2130 I`ve switched from new root on my H6500 to "old Skype root". Now it appears that my cmd_off and cmd_on scripts are not working. With these scripts I`m trying to kill and start oscam when going in Soft-Off mode. I`ve tried with port 3023, 3123 and 2023 and although the log is showing:

Code: Select all

[SoftPowerOff] Launching CMD_OFF: /mnt/opt/privateer/usr/bin/cmd_off.sh
[SoftPowerOff] -> Returns: 0
[SoftPowerOff] Launching CMD_ON: /mnt/opt/privateer/usr/bin/cmd_on.sh
[SoftPowerOff] -> Returns: 0
Oscam is not being killed or started.

Here my scripts:
cmd_on.sh

Code: Select all

#!/bin/sh
	echo "/mnt/opt/privateer/usr/bin/oscam/oscam-* -c /mnt/opt/privateer/usr/bin/oscam -w 0 -b" | /dtv/bin/nc localhost 3023
	
cmd_off.sh

Code: Select all

#!/bin/sh
   echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 3023
I`m not shure if it is also related to this question /I think it is :)/ but the CMD_libAirToSat script for libAirToSat is also not working now for me.
Here the script for libAirToSat

Code: Select all

#!/bin/sh
[ -e /tmp/.${0##*/} ] && exit 0 
echo OK > /tmp/.${0##*/} 
SODIR=/mnt/opt/privateer/usr/libso
SAMYGOSODIR=/mnt/opt/privateer/usr/bin

echo "$SAMYGOSODIR/samyGOso -A -B -l $SODIR/libAirToSat.so CABLE" | /dtv/bin/nc localhost 3023
sleep 2            # no new execution allowed before 2 seconds 
rm /tmp/.${0##*/}
Here also the log from libRCremap

Code: Select all

[RCremap] mapping key: 'KEY_RED' to command: '/mnt/opt/privateer/usr/bin/CMD_libAirToSat'
[RCremap] 1 _ZN9KeyCommon17SendKeyPressInputEiis [0x9f2884].
[RCremap] init done...
Do you have any idea where could be the problem
UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

Re: [App] libSoftPowerOff D/E/F/H

Post by zoelechat »

chmod +x ? :)
First check from Telnet if your cmd scripts are running, at least manually.
I do NOT receive any PM. Please use forum.
User avatar
momchetoi
SamyGO Project Donor
Posts: 92
Joined: Thu Apr 23, 2015 7:36 pm
Location: in front of the TV

Re: [App] libSoftPowerOff D/E/F/H

Post by momchetoi »

Have check them. chmod +x is done. I,ve executed

Code: Select all

/mnt # /mnt/opt/privateer/usr/bin/cmd_off.sh
/mnt #
and got no error, as you can see, but oscam has not been killed
:(

Here a log from http://myIP:1080/cgi-bin/test.cgi

Code: Select all

http://ctrlv.it/id/3006/6645460
Here also the result from executing /mnt/opt/privateer/usr/bin/CMD_libAirToSat

Code: Select all

/mnt # /mnt/opt/privateer/usr/bin/CMD_libAirToSat
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libAirToSat.so' resident: '0'
cannot attach to 142, error!
Failed.
/mnt #
UE40H6500 - T-MST14DEUC fw. 2606.2 ==>to 2130/Skype root/ with oscam
UE32EH5450 - T-MST10PDEUC fw. 1042.0 with oscam
UE32J5500 - T-HKMFDEUC fw. 1570 ==>1412 with oscam
TP-Link C6U with OpenWrt 21.02 & TL-WR842N v.3.1 OpenWrt 15.05.1 with oscam and smartmouse

Post Reply

Return to “[F] Software”