[App] libSoftPowerOff D/E/F/H
-
- SamyGO Project Donor
- Posts: 38
- Joined: Sat Sep 20, 2014 3:55 pm
Re: [App] libSoftPowerOff D/E/F/H
Hello,
Why do you want to kill oscam in soft-off?
Why do you want to kill oscam in soft-off?
Samsung UE40F7000 T-FXPDEUC1115.0
Re: [App] libSoftPowerOff D/E/F/H
To prevent descrambling when "screen" is off, it will be black anyway 

I do NOT receive any PM. Please use forum.
-
- SamyGO Project Donor
- Posts: 38
- Joined: Sat Sep 20, 2014 3:55 pm
Re: [App] libSoftPowerOff D/E/F/H
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
Re: [App] libSoftPowerOff D/E/F/H
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.
Re: [App] libSoftPowerOff D/E/F/H
zoelechat wrote:Well, 3123 must be app too, not root. You might try TheTroll other solution above...
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" methodmomchetoi wrote:OK, thank you!

I do NOT receive any PM. Please use forum.
- 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
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
cmd_on.sh
99_95_SoftPowerOff.init
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
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
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
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
Re: [App] libSoftPowerOff D/E/F/H
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.
- 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
It is a copy paste mistake here. It is changed.
As I told you the scripts are not executed automatically.
Could it be a lib problem?!
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
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
Re: [App] libSoftPowerOff D/E/F/H
Well, I don't see the point in copy/paste my post. Better paste what you're really usingmomchetoi wrote:It is a copy paste mistake here. It is changed.

No more idea, anyway you still have another provided solution above. Also verify all your paths.momchetoi wrote:As I told you the scripts are not executed automatically.
No, or something I ignore because of newest fw/rootmomchetoi wrote:Could it be a lib problem?!

I do NOT receive any PM. Please use forum.
Re: [App] libSoftPowerOff D/E/F/H
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.