[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.

nono2lozere
SamyGO Project Donor
Posts: 38
Joined: Sat Sep 20, 2014 3:55 pm

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

Post by nono2lozere »

Hello,

Why do you want to kill oscam in soft-off?
Samsung UE40F7000 T-FXPDEUC1115.0
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 »

To prevent descrambling when "screen" is off, it will be black anyway :)
I do NOT receive any PM. Please use forum.
nono2lozere
SamyGO Project Donor
Posts: 38
Joined: Sat Sep 20, 2014 3:55 pm

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

Post by nono2lozere »

I havn't got this issue on non-MST, it only occurs when I switch to other source like HDMI.
Samsung UE40F7000 T-FXPDEUC1115.0
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 »

Well it's no really an "issue", it's even consistent since libSoftPowerOff just "cut" display and speaker. I'm more surprised you don't notice it, but I don't really know how behaves the "old" oscam (I guess that's the one you're using :) )
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 »

zoelechat wrote:Well, 3123 must be app too, not root. You might try TheTroll other solution above...
momchetoi wrote:OK, thank you!
Actually the right "root netcat" port to use should be 3023, not 3123 which is "app telnet", if you want to give another try before switching to "alternative" method :)
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,
I?ve tried with port 3023 and it works when I execute the cmd_off.sh and the cmd_on.sh manually from telnet/i.e oscam is being killed and started normally/, but it seems that it doesn?t work when they are executed automatically from 99_95_SoftPowerOff.init, i.e. after reboot of the TV.

cmd_off.sh

Code: Select all

#!/bin/sh
   echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 3023
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
99_95_SoftPowerOff.init

Code: Select all

#!/bin/sh
#
# ? Copyright 1996-2015, zoelechat@SamyGO
#
#
. /dtv/SGO.env

OPTIONS="NOCMDONPVR CMD_ON:/mnt/opt/privateer/usr/bin/cmd_on.sh CMD_OFF:/mnt/opt/privateer/usr/bin/cmd_off.sh"

SODIR=$SYSROOT/opt/privateer/usr/libso			# D/E only, on F/H environment LIBSO_DIR is used

stop_bootloop()
{
	for USB in /dtv/usb/sd* ; do
		echo "checking $USB"
		[ -e $USB/STOP ] && echo "STOP found. Script exit..." && exit 1
	done
}

case $1 in 
	start)
	stop_bootloop
	[ "$LIBSO_DIR" ] && SODIR=$LIBSO_DIR
	samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS
	;;
	stop)
	;;
	status)
	[ -f /dtv/SoftPowerOff.log ] && cat /dtv/SoftPowerOff.log || echo "Not started"
	;;
	*)
	echo "Usage: $0 {start|stop|status}" 1>&2
	exit 0
	;;
esac
Last edited by momchetoi on Fri Oct 09, 2015 1:37 pm, edited 1 time in total.
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 »

You have to change 2023 to 3023 in cmd_on.sh too, otherwise I see no more reason why it wouldn't work :)
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 »

It is a copy paste mistake here. It is changed.

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

As I told you the scripts are not executed automatically. :(

Could it be a lib 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 »

momchetoi wrote:It is a copy paste mistake here. It is changed.
Well, I don't see the point in copy/paste my post. Better paste what you're really using :lol:
momchetoi wrote:As I told you the scripts are not executed automatically. :(
No more idea, anyway you still have another provided solution above. Also verify all your paths.
momchetoi wrote:Could it be a lib problem?!
No, or something I ignore because of newest fw/root :)
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 »

Please check if that version makes any difference, and give lib log after some soft off/on
You do not have the required permissions to view the files attached to this post.
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[F] Software”