Page 16 of 26

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

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

Code: Select all

[SoftPowerOff] SamyGO D/E/F/H libSoftPowerOff v0.2.3 - (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] system [0x1574030].
[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
[SoftPowerOff] -> Returns: 32512
[SoftPowerOff] Launching CMD_ON: /mnt/opt/privateer/usr/bin/cmd_on.sh
[SoftPowerOff] -> Returns: 32512
[SoftPowerOff] Launching CMD_OFF: /mnt/opt/privateer/usr/bin/cmd_off.sh
[SoftPowerOff] -> Returns: 32512
[SoftPowerOff] Launching CMD_ON: /mnt/opt/privateer/usr/bin/cmd_on.sh
[SoftPowerOff] -> Returns: 32512
[SoftPowerOff] Launching CMD_OFF: /mnt/opt/privateer/usr/bin/cmd_off.sh
[SoftPowerOff] -> Returns: 32512
Oscam wasn`t killed.

P.S. I have also tried the method of TheTroll and got the same result. Oscam refuses to be killed after reboot. But one can kill the process just by executing the cmd_off.sh manually.

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

Posted: Fri Oct 09, 2015 10:09 pm
by zoelechat
Please attach (not paste) your cmd_on/cmd_off

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

Posted: Fri Oct 09, 2015 10:13 pm
by momchetoi
Here,please! :)

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

Posted: Fri Oct 09, 2015 10:13 pm
by zoelechat
Well your return code indicate:

Code: Select all

"command not found"	illegal_command	Possible problem with $PATH or a typo

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

Posted: Fri Oct 09, 2015 10:17 pm
by zoelechat
LOL! :D

ALWAYS use Notepad++ to edit scripts and set linefeeds to UNIX format (LF) :twisted:
Otherwise scripts will ALWAYS fail.

Directly returned:

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

Posted: Fri Oct 09, 2015 10:33 pm
by momchetoi
LOL I can`t believe it. Now it works! :)
Which lib should I use now. The last one or this from the first post.
I`m using Notepad ++ for years, but I didn`t know that about UNIX format (LF) for the linefeeds. How/where to set it in Notepad ++
Here one las log: :)

Code: Select all

[SoftPowerOff] SamyGO D/E/F/H libSoftPowerOff v0.2.3 - (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] system [0x1574030].
[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
[SoftPowerOff] -> Returns: 0
[SoftPowerOff] Launching CMD_ON: /mnt/opt/privateer/usr/bin/cmd_on.sh
[SoftPowerOff] -> Returns: 0
[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
Thank you, again!Great job!

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

Posted: Fri Oct 09, 2015 10:42 pm
by zoelechat
momchetoi wrote:Which lib should I use now. The last one or this from the first post.
Doesn't matter, they're the same, just logged return value to check what YOU did wrong ;)
momchetoi wrote:I`m using Notepad ++ for years, but I didn`t know that about UNIX format (LF) for the linefeeds. How/where to set it in Notepad ++
If you edit some existing script, it will keep current linefeed type, but there you started from scratch and default is Windows format (CR+LF). To be found somewhere in edit menu (otherwise using Google) :)
momchetoi wrote:Here one las log: :)
Perfect log :ugeek:

Btw, I wouldn't say that advice is missing on forum: search.php?keywords=notepad

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

Posted: Fri Oct 09, 2015 10:49 pm
by momchetoi
;) Noted!

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

Posted: Fri Oct 09, 2015 10:53 pm
by zoelechat
Live and learn ;)

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

Posted: Sun Oct 11, 2015 6:42 pm
by smart_lover
How can I find if TV is in SoftPowerOff mode or not (with Telnet) remotely?