Seite 1 von 2
Standby script
Verfasst: So 12. Jan 2014, 21:28
von mackowiakp
Which one scrip or command line is expressible to set satbox in "ordinary" standby mode? I want to run such script from cron and after time set in "Timer" section of menu, turn it to "deep standby".
Re: Standby script
Verfasst: So 12. Jan 2014, 22:03
von BPanther
DeepStandby is executed by fp_control -e and reads also the timer.
Re: Standby script
Verfasst: So 12. Jan 2014, 22:26
von mackowiakp
Yes, but I mean about "ordinary" standby...
EDIT
OK THX. It is answer to my question!

Re: EPG recording problem
Verfasst: Mo 13. Jan 2014, 22:57
von mackowiakp
One more question. Does fp_control -e does not interrupt my recording? For example I set to record TV show from 1 am to 3 am. And I rum (from cron) fp_control -e al 1:30 am. Does recording will be interrupt or will wait until recording ends?
If interrupt, I can write small script waiting to end of recording. But which process (by name) runs during recording? Simply I have to check for existence of such process.
Upss. It should be moved to my EPG related topic...

Re: Standby script
Verfasst: Mo 13. Jan 2014, 23:16
von BPanther
Should be here right.
"fp_control -e" makes a shutdown like "halt" but fp_control reads the timers. If there are running any programs, recording or whatever -> shutdown. It's nearly the same as "reboot -f". No filesystems are unmountet (data may lost) etc. That's the cause you should not use the commands if not really, really needed.
Re: Standby script
Verfasst: Mo 13. Jan 2014, 23:31
von mackowiakp
OK, so hat to set satbox in "ordinary" standby mode, running command from cron?
I set in Neutrino menu, to turn to "deep standby" from "ordinary standby" after 15 min of inactivity. As I understand, recording in "ordinary standby" state of satbox means - "satbox is active".
So everything I need is to turn box in "ordinary" standby mode from cron. Is any dedicated script to do it or command line?
And Why Media Mart wants over 10 Euro for RS232->USB converter, while the same unit, small computer shop wants 3,5 Euro?
Re: Standby script
Verfasst: Mo 13. Jan 2014, 23:43
von BPanther
The setting with "soft" to "deep" is an internal timer in neutrino. Neutrino ends then normal with Errorlevel 0 and then has the control again the rcS and makes the shutdown with fp_control -e after unmounting the filesystems. You can see this in the one log in the other thread (fp_control says "...good bye..." -> box off). If a recording already running, neutrino does wait if recording ends. If only planned in future, the shutdown runs normally, the reboot for recording must make the frontpanel, fp_control sets the timer (see also the log).
From the log:
Neutrino exit:
[neutrino] This is the end. exiting with code 0
fp_control called the first time:
fp_control: SW Version 1.04
Model: hdbox
vBoxType: 8
Selected Model: Fortis HDBOX frontpanel control utility
checkConfig
configs: DISPLAY = 1, DISPLAYCUSTOM = 1, CUSTOM = %H:%M:%S
, WAKEUPDECREMENT 300
Unmount filesys etc.:
Stopping automounter.
umount /dev/sda1
umount /dev/sda1
umount: can't umount /dev/sda1: Invalid argument
umount /dev/sdb1
umount /dev/sdb2
umount /dev/sdb3
Terminated
sh: can't kill pid 1294: No such process
Terminated
fp_control -e:
fp_control: SW Version 1.04
Model: hdbox
vBoxType: 8
Selected Model: Fortis HDBOX frontpanel control utility
checkConfig
configs: DISPLAY = 1, DISPLAYCUSTOM = 1, CUSTOM = %H:%M:%S
, WAKEUPDECREMENT 300
Current Time: 18:42:42 13-01-2014
Getting enigma2 wakeup time - Reading... /proc/stb/fp/wakeup_time - Done
Getting neutrino wakeup time - Reading... /var/tuxbox/config/timerd.conf - Done
wakeup Time: 04:14:07 19-01-2038
current Time: 18:42:42 13-01-2014
no timer found ... good bye ...
Set Time (UTC): 03:14:07 19-01-2038
Re: Standby script
Verfasst: Di 14. Jan 2014, 00:03
von mackowiakp
So how can I turn satbox to "soft" down at desired time? Us I understand, all other things Neutrino will do via internal timer "soft"->"deep". This timer is programmable from Menu - so thats no problem.
Re: Standby script
Verfasst: Di 14. Jan 2014, 00:09
von BPanther
Why a soft after a time? Or do you mean a sleep timer, then set it (main menu).
Re: Standby script
Verfasst: Di 14. Jan 2014, 00:22
von mackowiakp
I mean about such situation I want to have:
- cron at 1:30 turns satbox to "soft" standby
- (as I understand) internal Neutrino timers (set to or example to 10 min) starts to count to switch to "deep" standby
- if no recordings running, satbox turns to "deep" sleep
Re: Standby script
Verfasst: Di 14. Jan 2014, 00:48
von BPanther
Thats right, but why do you use cron? I don't understand this...
Re: Standby script
Verfasst: Di 14. Jan 2014, 08:53
von mackowiakp
Why cron? Because I want my satbox to be totally off, everyday at desired time - 1:30 am in my case. But if recording is running, satbox will wait with "deep" off until recording ends. If there is any other possibility than cron - be so kind to tell me.
Of course there is inactivity timer. But it turn off satbox not at preconfigured time but after a period of inactivity. So "off" time is unpredictable (depends on time of last usage of remote controller).
Re: Standby script
Verfasst: Di 14. Jan 2014, 09:27
von BPanther
That the wrog way. As I sayd, datas may lost if you make the shutdown with fp_control or other, cron does not wait. Just create a permanent timer for a soft standby.
Re: Standby script
Verfasst: Di 14. Jan 2014, 09:50
von mackowiakp
OK. Cron and fp_control is wrong way. So how can I set permanent timer (not inactivity timer).
Maybe info about it is included in Wiki. But I dont know German language

so it is difficult for me to find out necessary info.
But - as Cisco stands - "Always use RTFM technology". RTFM stand for "Read The Fu****n Manual". Nice. If You can read one

Re: Standby script
Verfasst: Di 14. Jan 2014, 10:07
von BPanther
Just see the timer list menu. You can add your own and set the timer action (see screenshot).