If you can't -> real-off
[App] libSoftPowerOff D/E/F/H
Re: [App] libSoftPowerOff D/E/F/H
If you can connect to Telnet -> soft-off
If you can't -> real-off

If you can't -> real-off
I do NOT receive any PM. Please use forum.
Re: [App] libSoftPowerOff D/E/F/H
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.
Code: Select all
touch /tmp/softoffCode: Select all
rm /tmp/softoffI 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 do NOT receive any PM. Please use forum.
-
smart_lover
- SamyGO Project Donor
- Posts: 161
- Joined: Sun May 03, 2015 6:11 am
Re: [App] libSoftPowerOff D/E/F/H
I think its my solution.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.:
Code: Select all
touch /tmp/softoffThen check if file exists to know state.Code: Select all
rm /tmp/softoff
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.
yes! but I am far far away from my TVs and I want to controll them all remotely!
-
smart_lover
- SamyGO Project Donor
- Posts: 161
- Joined: Sun May 03, 2015 6:11 am
Re: [App] libSoftPowerOff D/E/F/H
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.
Thanks in advance for your great helps as always.
Re: [App] libSoftPowerOff D/E/F/H
Set offtimer from TV menu. Done.
I do NOT receive any PM. Please use forum.
-
smart_lover
- SamyGO Project Donor
- Posts: 161
- Joined: Sun May 03, 2015 6:11 am
Re: [App] libSoftPowerOff D/E/F/H
Simplest way!zoelechat wrote:Set offtimer from TV menu. Done.
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
No idea what you're talking about 
I do NOT receive any PM. Please use forum.
- 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
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:
Oscam is not being killed or started.
Here my scripts:
cmd_on.sh
cmd_off.sh
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
Here also the log from libRCremap
Do you have any idea where could be the problem
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: 0Here 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
Code: Select all
#!/bin/sh
echo "kill $(/mnt/bin/pgrep oscam-)" | /dtv/bin/nc localhost 3023Here 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##*/}Code: Select all
[RCremap] mapping key: 'KEY_RED' to command: '/mnt/opt/privateer/usr/bin/CMD_libAirToSat'
[RCremap] 1 _ZN9KeyCommon17SendKeyPressInputEiis [0x9f2884].
[RCremap] init done...
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
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
Re: [App] libSoftPowerOff D/E/F/H
chmod +x ? 
First check from Telnet if your cmd scripts are running, at least manually.
First check from Telnet if your cmd scripts are running, at least manually.
I do NOT receive any PM. Please use forum.
- 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
Have check them. chmod +x is done. I,ve executed
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_off.sh
/mnt #
Here a log from http://myIP:1080/cgi-bin/test.cgi
Code: Select all
http://ctrlv.it/id/3006/6645460Code: 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 #
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
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