
[App] libSoftPowerOff D/E/F/H
Re: [App] libSoftPowerOff D/E/F/H
Honestly? No idea
(root everywhere on E)

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
Could you please post the whole text for the cmd_off.sh and cmd_on /for oscam/ scripts for H serieszoelechat wrote:Ah right, forgot that on H
You have to pipe to nc:Simpler than your solutionCode: Select all
echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 2023
10x
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
cmd_off.sh:
cmd_on.sh:
Code: Select all
#!/bin/sh
echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 2023
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
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
Thank you, but it seems that this cmd_off script doesn`t kill oscam, as oscam live web log shows that ecm are requested.zoelechat wrote:cmd_off.sh:cmd_on.sh:Code: Select all
#!/bin/sh echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 2023
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
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
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 didn't forget to chmod +x both scripts I guess? 

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
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:
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 #
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
Ahh, you have new root, I think you should use port 3123 instead if 2023 

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
I`ve changed port to 3123 and got:
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....
Code: Select all
/mnt # . /mnt/opt/privateer/usr/bin/cmd_off.sh
/bin/sh: can't access tty; job control turned off

Reboted the TV. Oscam starts normally. But oscam doesn`t killed after pushing POWER button....
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, 3123 must be app too, not root. You might try TheTroll other solution above...
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
OK, thank you!
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