[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.

TheTroll
SamyGO Project Donor
Posts: 33
Joined: Fri Oct 31, 2014 4:47 pm

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

Post by TheTroll »

Sure:

# ./99_95_SoftPowerOff.init start
checking /dtv/usb/sda1
checking /dtv/usb/sdb
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libSoftPowerOff.so' resident: '1'
Succeeded.

Then I do (twice, once for off and once for on again)
samyGOrc -p $(pidof exeTV) 152

This is the init file:

Code: Select all

# hist
# cat /mnt/99_95_SoftPowerOff.init 
#!/bin/sh
#
# ? Copyright 1996-2015, zoelechat@SamyGO
#
#
. /dtv/SGO.env

OPTIONS="CMD_ON:/mnt/opt/privateer/usr/bin/cmd_on.sh CMD_OFF:/mnt/opt/privateer/usr/bin/cmd_off.sh"

SODIR=$SYSROOT/opt/privateer/usr/libso                  # D/E only, on F/H environment LIBSO_DIR is used

stop_bootloop()
{
        for USB in /dtv/usb/sd* ; do
                echo "checking $USB"
                [ -e $USB/STOP ] && echo "STOP found. Script exit..." && exit 1
        done
}

case $1 in 
        start)
        stop_bootloop
        [ "$LIBSO_DIR" ] && SODIR=$LIBSO_DIR
        samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS
        ;;
        stop)
        ;;
        status)
        [ -f /dtv/SoftPowerOff.log ] && cat /dtv/SoftPowerOff.log || echo "Not started"
        ;;
        *)
        echo "Usage: $0 {start|stop|status}" 1>&2
        exit 0
        ;;
esac#
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 »

Well, looking at an older version, it's true that I removed some strncpy, nfi why, let me fix :P
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 »

Ha:) cool, i ll try your fix then!
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 »

Should be good (I guess ;) ). Check first post.
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 have nobody at home anymore to power-on the tv after a hard power off :)
Do you have a remote solution to rehook or reboot to power-on ?
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 »

Not yet, but working on it :)
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 »

Nice :)
Anyway, i ll tell you tonight if you strncpy works!
Thanks
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 may have a clue for hard *reboot* without using micom, but I don't think power ON from full-off will be possible...

Funny that nobody reported issue you encountered, I'm personnally not using forum version(s) so I couldn't notice :)
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 »

Now it works :) thx!
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 »

Cool, thanks for bug detection ;)
I do NOT receive any PM. Please use forum.

Post Reply

Return to “[F] Software”