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

Well, I don't see any obvious reason why startup script wouldn't start. You should maybe try to add some sleep in script after injection, or simply rename script to launch it as latest in sequence (99_95->99_99 for example).
I do NOT receive any PM. Please use forum.
User avatar
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

Post by momchetoi »

After a couple of restarts of the TV and after adding sleep 5 in the auto start script by trying to start the script manually, I getting the following error in the command prompt:

Code: Select all

/mnt # /mnt/etc/init.d/99_95_SoftPowerOff.init start
/mnt/bin/ash: /mnt/etc/init.d/99_95_SoftPowerOff.init: not found
And I can see the 99_95_SoftPowerOff.init file is in the specified directory?!?
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
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 »

Is the script file non-empty (size<>0, maybe transfer failed)? Did you use Notepad++ to edit script, and verified linefeeds were set to UNIX format?
I do NOT receive any PM. Please use forum.
User avatar
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

Post by momchetoi »

zoelechat wrote:Is the script file non-empty (size<>0, maybe transfer failed)? Did you use Notepad++ to edit script, and verified linefeeds were set to UNIX format?
Now I`m editing the script with Notepad ++.
I`ve modified it like this:

Code: Select all

#!/bin/sh
#
# ? Copyright 1996-2015, zoelechat@SamyGO
#
#
. /dtv/SGO.env

OPTIONS=""

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
	sleep 10
	[ "$LIBSO_DIR" ] && SODIR=$LIBSO_DIR
	samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS
	sleep 5
	;;
	stop)
	;;
	status)
	[ -f /dtv/SoftPowerOff.log ] && cat /dtv/SoftPowerOff.log || echo "Not started"
	;;
	*)
	echo "Usage: $0 {start|stop|status}" 1>&2
	exit 0
	;;
esac
Restarted the TV with deep standby. The script didn`t start again.
Then I`ve changed the name of the script to 99_99_SoftPowerOff.init, thean restarted the TV again. The script didn`t start. :(

Then I`ve tried again a manual start and it started and worked normally until the next deep stanby :(

Code: Select all

/mnt # /mnt/etc/init.d/99_99_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.
Obviously the system refuses to start automatically the script, but why???
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
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 »

Funny indeed, the mystery deepens :)
Edit script and send injection output to file, like this:

Code: Select all

samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
then after it should have started:

Code: Select all

cat /dtv/softp.log
So we'll be able to see what injection said.

Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
I do NOT receive any PM. Please use forum.
User avatar
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

Post by momchetoi »

zoelechat wrote:Funny indeed, the mystery deepens :)
Edit script and send injection output to file, like this:

Code: Select all

samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
then after it should have started:

Code: Select all

cat /dtv/softp.log
So we'll be able to see what injection said.

Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
All done.
Here the result:

Code: Select all

/mnt # cat /dtv/softp.log
cat: can't open '/dtv/softp.log': No such file or directory
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
User avatar
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

Post by momchetoi »

momchetoi wrote:
zoelechat wrote:Funny indeed, the mystery deepens :)
Edit script and send injection output to file, like this:

Code: Select all

samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
then after it should have started:

Code: Select all

cat /dtv/softp.log
So we'll be able to see what injection said.

Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
All done.
Here the result:

Code: Select all

/mnt # cat /dtv/softp.log
cat: can't open '/dtv/softp.log': No such file or directory
I think injection fails. :(
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
User avatar
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

Post by momchetoi »

zoelechat wrote:Funny indeed, the mystery deepens :)
Edit script and send injection output to file, like this:

Code: Select all

samyGOso -A -B -r -l $SODIR/libSoftPowerOff.so $OPTIONS > /dtv/softp.log
then after it should have started:

Code: Select all

cat /dtv/softp.log
So we'll be able to see what injection said.

Also add some linefeed after last line of script (=ENTER after 'esac'), just in case...
All done.
Here the result:

Code: Select all

/mnt # cat /dtv/softp.log
cat: can't open '/dtv/softp.log': No such file or directory
I think injection fails. :(
P.S. Manual start

Code: Select all

 /mnt/etc/init.d/99_99_SoftPowerOff.init start
works normally
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
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 »

Just thinking... Don't you have an endless script in your startup sequence? For example an oscam daemon not launched in the background as it should, and preventing then anything further after it? :)
I do NOT receive any PM. Please use forum.
User avatar
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

Post by momchetoi »

Yes, I have an oscam started,but what do you mean not started in the background?! How to start it in the background?
Osam -b ?
Last edited by momchetoi on Tue Oct 06, 2015 2:54 pm, edited 1 time in total.
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

Post Reply

Return to “[F] Software”