Page 17 of 26
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Sun Oct 11, 2015 6:57 pm
				by zoelechat
				If you can connect to Telnet -> soft-off
If you can't -> real-off

 
			 
			
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Sun Oct 11, 2015 7:14 pm
				by zoelechat
				In case you were talking about ON vs. soft-OFF, you can use cmd_on/cmd_off to write/delete some flag. e.g.:
Then check if file exists to know state.
I could log it but I don't think it's necessary since most people are in front of their TV when they're watching it. 

 
			 
			
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Sun Oct 11, 2015 7:47 pm
				by smart_lover
				zoelechat wrote:In case you were talking about ON vs. soft-OFF, you can use cmd_on/cmd_off to write/delete some flag. e.g.:
Then check if file exists to know state.
I could log it but I don't think it's necessary since most people are in front of their TV when they're watching it. 

 
I think its my solution.
yes! but I am far far away from my TVs and I want to controll them all remotely!
 
			 
			
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Wed Oct 28, 2015 9:42 pm
				by smart_lover
				How can I soft power off TV locally? I mean,assume that there is no connection between TV and server with telnet and there is nobody in front of TV(using remote control), So how can I set a schedule(on specified time) on TV to set it off (with helps of libSoftPowerOff I want to set panel off only)?
Thanks in advance for your great helps as always.
			 
			
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Wed Oct 28, 2015 10:33 pm
				by zoelechat
				Set offtimer from TV menu. Done.
			 
			
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Wed Oct 28, 2015 10:48 pm
				by smart_lover
				zoelechat wrote:Set offtimer from TV menu. Done.
Simplest way!
I want to be able to run a routine(like run libSoftPowerOff and libRunWidget) at a specified time during disconnection and do not want to let TV turn itself off(real off).
Note:If TV backs to network and connected to server, Server will run above lib with telnet. What if there is no telnet and we do not want to let TV turn it off really(we want softpoweroff)?
 
			 
			
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Wed Oct 28, 2015 11:01 pm
				by zoelechat
				No idea what you're talking about 

 
			 
			
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Sat Nov 14, 2015 12:47 am
				by momchetoi
				Hi,
After downgrading from fw 2606 to fw. 2130 I`ve switched from new root on my H6500 to "old Skype root". Now it appears that my cmd_off and cmd_on scripts are not working. With these scripts I`m trying to kill and start oscam when going in Soft-Off mode. I`ve tried with port 3023, 3123 and 2023 and although the log is showing:
Code: Select all
[SoftPowerOff] Launching CMD_OFF: /mnt/opt/privateer/usr/bin/cmd_off.sh
[SoftPowerOff] -> Returns: 0
[SoftPowerOff] Launching CMD_ON: /mnt/opt/privateer/usr/bin/cmd_on.sh
[SoftPowerOff] -> Returns: 0
Oscam is not being killed or started.
Here my scripts:
cmd_on.sh
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 3023
	
cmd_off.sh
Code: Select all
#!/bin/sh
   echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 3023
I`m not shure if it is also related to this question /I think it is 

/ but the CMD_libAirToSat script for libAirToSat is also not working now for me.
Here the script for libAirToSat 
Code: Select all
#!/bin/sh
[ -e /tmp/.${0##*/} ] && exit 0 
echo OK > /tmp/.${0##*/} 
SODIR=/mnt/opt/privateer/usr/libso
SAMYGOSODIR=/mnt/opt/privateer/usr/bin
echo "$SAMYGOSODIR/samyGOso -A -B -l $SODIR/libAirToSat.so CABLE" | /dtv/bin/nc localhost 3023
sleep 2            # no new execution allowed before 2 seconds 
rm /tmp/.${0##*/}
Here also the log from libRCremap
Code: Select all
[RCremap] mapping key: 'KEY_RED' to command: '/mnt/opt/privateer/usr/bin/CMD_libAirToSat'
[RCremap] 1 _ZN9KeyCommon17SendKeyPressInputEiis [0x9f2884].
[RCremap] init done...
Do you have any idea where could be the problem
 
			 
			
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Sat Nov 14, 2015 9:36 am
				by zoelechat
				chmod +x ? 

First check from Telnet if your cmd scripts are running, at least manually.
 
			 
			
					
				Re: [App] libSoftPowerOff D/E/F/H
				Posted: Sat Nov 14, 2015 9:42 am
				by momchetoi
				Have check them. chmod +x is done. I,ve executed
Code: Select all
/mnt # /mnt/opt/privateer/usr/bin/cmd_off.sh
/mnt #
and got no error, as you can see, but oscam has not been killed
Here a log from  
http://myIP:1080/cgi-bin/test.cgi
Here also the result from executing /mnt/opt/privateer/usr/bin/CMD_libAirToSat
Code: Select all
/mnt # /mnt/opt/privateer/usr/bin/CMD_libAirToSat
samyGOso v1.2.5 (c) bugficks 2013-2014, sectroyer 2014-2015
Injecting '/mnt/opt/privateer/usr/libso/libAirToSat.so' resident: '0'
cannot attach to 142, error!
Failed.
/mnt #