Page 15 of 26

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

Posted: Fri Oct 09, 2015 8:33 am
by nono2lozere
Hello,

Why do you want to kill oscam in soft-off?

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

Posted: Fri Oct 09, 2015 8:38 am
by zoelechat
To prevent descrambling when "screen" is off, it will be black anyway :)

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

Posted: Fri Oct 09, 2015 10:09 am
by nono2lozere
I havn't got this issue on non-MST, it only occurs when I switch to other source like HDMI.

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

Posted: Fri Oct 09, 2015 10:23 am
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 :) )

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

Posted: Fri Oct 09, 2015 10:25 am
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 :)

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

Posted: Fri Oct 09, 2015 1:26 pm
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

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

Posted: Fri Oct 09, 2015 1:34 pm
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 :)

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

Posted: Fri Oct 09, 2015 1:36 pm
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?!

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

Posted: Fri Oct 09, 2015 1:57 pm
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 :)

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

Posted: Fri Oct 09, 2015 9:26 pm
by zoelechat
Please check if that version makes any difference, and give lib log after some soft off/on