[App] libSoftPowerOff D/E/F/H

Here are software that related with Samsung F series TVs.
Please don't create any new topic here unless you have software to post/release.

zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

Did you inject twice resident without reboot? :)
I do NOT receive any PM. Please use forum.
TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

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

Post by TheTroll »

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 ?
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

Yeah I use it everyday for months :) Are you going to teach me? :P

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.
TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

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

Post by TheTroll »

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 ?
TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

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

Post by TheTroll »

haha no it'd not my goal :) I am just trying to figure out why it fails :p
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

TheTroll wrote:I injected it.
Then did a "source power"
Then power.
Yeah full-off + on means reboot :)

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.
TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

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

Post by TheTroll »

But look at this log :

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
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/
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

What if you inject manually without using startup script? :)
I do NOT receive any PM. Please use forum.
TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

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

Post by TheTroll »

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
zoelechat
SamyGO Moderator
Posts: 8616
Joined: Fri Apr 12, 2013 7:32 pm
Location: France

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

Post by zoelechat »

I want to see your commandline :)
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[F] Software”