
[App] libSoftPowerOff D/E/F/H
Re: [App] libSoftPowerOff D/E/F/H
Did you inject twice resident without reboot? 

I do NOT receive any PM. Please use forum.
Re: [App] libSoftPowerOff D/E/F/H
It looks like the string CMD_ON is not really valid.
Are you sure that:
if((optstr=getOptArg(argv,argc,"CMD_ON:")) && strlen(optstr))
{
CMD_ON=optstr;
log("Setting soft-ON command: %s\n", CMD_ON);
}
Will really work ?
Shouldn't it be a strcpy ?
Are you sure that:
if((optstr=getOptArg(argv,argc,"CMD_ON:")) && strlen(optstr))
{
CMD_ON=optstr;
log("Setting soft-ON command: %s\n", CMD_ON);
}
Will really work ?
Shouldn't it be a strcpy ?
Re: [App] libSoftPowerOff D/E/F/H
Yeah I use it everyday for months
Are you going to teach me?
My guess is that you should add double quotes there in startup script (around $OPTIONS):


My guess is that you should add double quotes there in startup script (around $OPTIONS):
Code: Select all
samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so "$OPTIONS"
I do NOT receive any PM. Please use forum.
Re: [App] libSoftPowerOff D/E/F/H
I injected it.
Then did a "source power"
Then power.
This injected it again of course, but I guess it's like a reboot right ?
Then did a "source power"
Then power.
This injected it again of course, but I guess it's like a reboot right ?
Re: [App] libSoftPowerOff D/E/F/H
haha no it'd not my goal
I am just trying to figure out why it fails :p

Re: [App] libSoftPowerOff D/E/F/H
Yeah full-off + on means rebootTheTroll wrote:I injected it.
Then did a "source power"
Then power.

Another way to solve problem would be to simply remove useless single quotes from your OPTIONS.
I do NOT receive any PM. Please use forum.
Re: [App] libSoftPowerOff D/E/F/H
But look at this log :
You can see that the parameter if found:
[SoftPowerOff] Setting soft-OFF command: '/mnt/opt/privateer/usr/bin/cmd_off.sh'
But it's not the right string when it must be called:
X?AJB?T4??Off] Launching CMD_OFF: A/
Code: Select all
[SoftPowerOff] SamyGO D/E/F/H libSoftPowerOff v0.2.0 - (c) zoelechat 2015
[SoftPowerOff] g_pAppTV [0xb46b534].
[SoftPowerOff] _ZN5TCAPI5GetTvEv [0x165c924].
[SoftPowerOff] dlsym '_ZN4TCTv5PowerEiNS_11EBootReasonEb' failed.
[SoftPowerOff] _ZN9TCTvProxy5PowerEiN4TCTv11EBootReasonEb [0x16b3974].
[SoftPowerOff] dlsym '_ZN4TCTv13GetPowerStateEPiPNS_11EBootReasonE' failed.
[SoftPowerOff] _ZN9TCTvProxy13GetPowerStateEPiPN4TCTv11EBootReasonE [0x16b37d0].
[SoftPowerOff] _ZN10CViewerApp15ProcessPowerOffEi15EPowerOffReason [0x29678dc].
[SoftPowerOff] _ZN5TPCTv8InstanceEv [0x166a5c4].
[SoftPowerOff] _ZN5TPATv5PowerEN5TPCTv10EPowerTypeEb [0x24848fc].
[SoftPowerOff] dlsym '_ZN5TCDMS8InstanceEN8TCWindow7EWindowE' failed.
[SoftPowerOff] dlsym '_ZN9TCDisplay9MuteAudioEb' failed.
[SoftPowerOff] _ZN10CViewerApp12t_OnKeyPowerEPK7PTEvent [0x2966cb8].
[SoftPowerOff] lib_init, >>>
[SoftPowerOff] Hooking Soft Power-Off everywhere!
[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 [0x2966cb8].
[SoftPowerOff] _ZN10CViewerApp15ProcessPowerOffEi15EPowerOffReason [0x29678dc].
[SoftPowerOff] dlsym '_ZN10CViewerApp13t_OnKeySourceEPK7PTEvent' failed.
[SoftPowerOff] _ZN21CTvApplicationManager13m_OnKeySourceEPK7PTEvent [0x4980f88].
[SoftPowerOff] _ZN10CViewerApp14t_OnInputOccurEPK7PTEvent [0x2964954].
[SoftPowerOff] init done...
X?AJB?T4??Off] Launching CMD_OFF: A/
[SoftPowerOff] Launching CMD_ON: AX?AX?A
[SoftPowerOff] Setting soft-OFF command: '/mnt/opt/privateer/usr/bin/cmd_off.sh'
But it's not the right string when it must be called:
X?AJB?T4??Off] Launching CMD_OFF: A/
Re: [App] libSoftPowerOff D/E/F/H
What if you inject manually without using startup script? 

I do NOT receive any PM. Please use forum.
Re: [App] libSoftPowerOff D/E/F/H
I just tried and same thing :/
[SoftPowerOff] lib_init, >>>
[SoftPowerOff] Hooking Soft Power-Off everywhere!
[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 [0x2966cb8].
[SoftPowerOff] _ZN10CViewerApp15ProcessPowerOffEi15EPowerOffReason [0x29678dc].
[SoftPowerOff] dlsym '_ZN10CViewerApp13t_OnKeySourceEPK7PTEvent' failed.
[SoftPowerOff] _ZN21CTvApplicationManager13m_OnKeySourceEPK7PTEvent [0x4980f88].
[SoftPowerOff] _ZN10CViewerApp14t_OnInputOccurEPK7PTEvent [0x2964954].
[SoftPowerOff] init done...
[SoftPowerOff] Launching CMD_OFF:
[SoftPowerOff] Launching CMD_ON: AX?A
[SoftPowerOff] lib_init, >>>
[SoftPowerOff] Hooking Soft Power-Off everywhere!
[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 [0x2966cb8].
[SoftPowerOff] _ZN10CViewerApp15ProcessPowerOffEi15EPowerOffReason [0x29678dc].
[SoftPowerOff] dlsym '_ZN10CViewerApp13t_OnKeySourceEPK7PTEvent' failed.
[SoftPowerOff] _ZN21CTvApplicationManager13m_OnKeySourceEPK7PTEvent [0x4980f88].
[SoftPowerOff] _ZN10CViewerApp14t_OnInputOccurEPK7PTEvent [0x2964954].
[SoftPowerOff] init done...
[SoftPowerOff] Launching CMD_OFF:
[SoftPowerOff] Launching CMD_ON: AX?A
Re: [App] libSoftPowerOff D/E/F/H
I want to see your commandline 

I do NOT receive any PM. Please use forum.