Page 14 of 26

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

Posted: Thu Oct 08, 2015 9:33 pm
by zoelechat
Honestly? No idea :) (root everywhere on E)

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

Posted: Thu Oct 08, 2015 10:46 pm
by momchetoi
zoelechat wrote:Ah right, forgot that on H :D

You have to pipe to nc:

Code: Select all

echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 2023
Simpler than your solution :)
Could you please post the whole text for the cmd_off.sh and cmd_on /for oscam/ scripts for H series
10x

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

Posted: Thu Oct 08, 2015 11:08 pm
by zoelechat
cmd_off.sh:

Code: Select all

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

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

Posted: Thu Oct 08, 2015 11:17 pm
by momchetoi
zoelechat wrote:cmd_off.sh:

Code: Select all

#!/bin/sh
	echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 2023
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 2023
Thank you, but it seems that this cmd_off script doesn`t kill oscam, as oscam live web log shows that ecm are requested.
And libSoftOff log shows:

Code: Select all

[SoftPowerOff] SamyGO D/E/F/H libSoftPowerOff v0.2.2 - (c) zoelechat 2015
[SoftPowerOff] g_pAppTV [0xb5aa854].
[SoftPowerOff] _ZN5TCAPI5GetTvEv [0x16a2728].
[SoftPowerOff] dlsym '_ZN4TCTv5PowerEiNS_11EBootReasonEb' failed.
[SoftPowerOff] _ZN9TCTvProxy5PowerEiN4TCTv11EBootReasonEb [0x16f9df0].
[SoftPowerOff] dlsym '_ZN4TCTv13GetPowerStateEPiPNS_11EBootReasonE' failed.
[SoftPowerOff] _ZN9TCTvProxy13GetPowerStateEPiPN4TCTv11EBootReasonE [0x16f9c4c].
[SoftPowerOff] _ZN10CViewerApp15ProcessPowerOffEi15EPowerOffReason [0x29f1544].
[SoftPowerOff] _ZN5TPCTv8InstanceEv [0x16b03c8].
[SoftPowerOff] _ZN5TPATv5PowerEN5TPCTv10EPowerTypeEb [0x250e44c].
[SoftPowerOff] dlsym '_ZN5TCDMS8InstanceEN8TCWindow7EWindowE' failed.
[SoftPowerOff] dlsym '_ZN9TCDisplay9MuteAudioEb' failed.
[SoftPowerOff] _ZN10CViewerApp12t_OnKeyPowerEPK7PTEvent [0x29f0898].
[SoftPowerOff] _ZN9CMenuUtil14FlagPVRRunningEv [0x4c07e00].
[SoftPowerOff] lib_init, >>>
[SoftPowerOff] Hooking Soft Power-Off everywhere!
[SoftPowerOff] Avoiding CMD's if PVR is running!
[SoftPowerOff] Setting soft-ON command: /mnt/opt/privateer/usr/bin/cmd_on.sh
[SoftPowerOff] Setting soft-OFF command: /mnt/opt/privateer/usr/bin/cmd_off.sh
[SoftPowerOff] lib_init, hooking >>>
[SoftPowerOff] _ZN10CViewerApp12t_OnKeyPowerEPK7PTEvent [0x29f0898].
[SoftPowerOff] _ZN10CViewerApp15ProcessPowerOffEi15EPowerOffReason [0x29f1544].
[SoftPowerOff] dlsym '_ZN10CViewerApp13t_OnKeySourceEPK7PTEvent' failed.
[SoftPowerOff] _ZN21CTvApplicationManager13m_OnKeySourceEPK7PTEvent [0x4a35444].
[SoftPowerOff] _ZN10CViewerApp14t_OnInputOccurEPK7PTEvent [0x29ee374].
[SoftPowerOff] init done...
[SoftPowerOff] Launching CMD_OFF: /mnt/opt/privateer/usr/bin/cmd_off.sh

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

Posted: Thu Oct 08, 2015 11:21 pm
by zoelechat
You didn't forget to chmod +x both scripts I guess? :)

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

Posted: Thu Oct 08, 2015 11:25 pm
by momchetoi
I?ve double checked. chmod is done, but this is not the problem. I am pushing Power button, TV goes in SoftPowerOFF, but oscam continues to work...

Here is what I`m getting when I try to start off script manually:

Code: Select all

/mnt # . /mnt/opt/privateer/usr/bin/cmd_off.sh
nc: can't connect to remote host (127.0.0.1): Connection refused
/mnt #

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

Posted: Thu Oct 08, 2015 11:29 pm
by zoelechat
Ahh, you have new root, I think you should use port 3123 instead if 2023 :)

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

Posted: Thu Oct 08, 2015 11:36 pm
by momchetoi
I`ve changed port to 3123 and got:

Code: Select all

/mnt # . /mnt/opt/privateer/usr/bin/cmd_off.sh
/bin/sh: can't access tty; job control turned off
Oscam was somehow killed, but doesn`t want to start again :)

Reboted the TV. Oscam starts normally. But oscam doesn`t killed after pushing POWER button....

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

Posted: Thu Oct 08, 2015 11:48 pm
by zoelechat
Well, 3123 must be app too, not root. You might try TheTroll other solution above...

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

Posted: Thu Oct 08, 2015 11:54 pm
by momchetoi
OK, thank you!