Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Power down problem



Rainer Zocholl wrote:
> 
> Hello
> 
> Have 1..2 probs with "power down":
> 
> 1.
> If VDR is recording, nicely the message
> "Recording, shut down anyway?" comes.
> "OK"
> "Press any key to cancel"
> "no key"
> 
> and:
> No shut down occurs.
> 
> Tried serveral times.
> 
> 01:03:41 msi vdr[498]: switching to channel 13
> 01:04:01 msi vdr[498]: Power button pressed
> 01:04:01 msi vdr[498]: confirm: Recording - shut down anyway?
> 01:04:05 msi vdr[498]: confirmed
> 01:04:05 msi vdr[498]: next timer event at Sat 00:59:00 2001
> 01:04:05 msi vdr[498]: confirm: Press any key to cancel shutdown
> 01:04:12 msi vdr[498]: confirmed
> 01:04:12 msi vdr[498]: executing '/video/pwroff 1004745540 -305 13 'Domian''
> 01:04:13 msi vdr[498]: max. latency time 13 seconds
> 01:12:17 msi vdr[500]: System Time = Sat 01:12:17 2001  (1004746337)
> 01:12:17 msi vdr[500]: Local Time  = Sat 01:12:20 2001  (1004746340)
> 01:14:42 msi vdr[498]: Power button pressed
> 01:14:42 msi vdr[498]: confirm: Recording - shut down anyway?
> 01:14:48 msi vdr[498]: not confirmed
> 01:14:48 msi vdr[498]: Power button pressed
> 01:14:48 msi vdr[498]: confirm: Recording - shut down anyway?
> 01:14:50 msi vdr[498]: confirmed
> 01:14:50 msi vdr[498]: next timer event at Sat 00:59:00 2001
> 01:14:50 msi vdr[498]: confirm: Press any key to cancel shutdown
> 01:14:56 msi vdr[498]: confirmed
> 01:14:56 msi vdr[498]: executing '/video/pwroff 1004745540 -950 13 'Domian''
> 01:39:17 msi vdr[500]: System Time = Sat 01:39:17 2001  (1004747957)
> 01:39:17 msi vdr[500]: Local Time  = Sat 01:39:20 2001  (1004747960)
> 02:00:00 msi vdr[736]: output thread ended (pid=736)
> 02:00:00 msi vdr[737]: input thread ended (pid=737)
> 02:00:00 msi vdr[498]: buffer stats: 131412 (12%) used
> 02:00:00 msi vdr[498]: timer 9 stop
> 02:04:17 msi vdr[498]: Power button pressed
> 02:04:17 msi vdr[498]: next timer event at Sat 11:29:00 2001
> 02:04:17 msi vdr[498]: confirm: Press any key to cancel shutdown
> 02:04:24 msi vdr[498]: confirmed
> 02:04:24 msi vdr[498]: executing '/video/pwroff 1004783340 33883 13 'Computerclub''
> 02:04:55 msi vdr[498]: max. latency time 37 seconds
> 02:19:35 msi logger[355]: starting /root/video/VDR/runvdr
> 
> Nice bug... :-)

No, it's not a bug - it's a feature!
>From INSTALL:

  If a timer is currently recording, the parameters will reflect the start
  time of that timer. This means that the first parameter will be a time in
  the past, and the second parameter will be a negative number. This only
  happens if the user presses the "Power" key while a timer is currently
  recording.

> The power-off programms realizes the wake-up time in the past and
> does nothing, of cause.

And why does it "of course" do nothing??
As you ever so often say, the USER said "Shutdown NOW, even though a recording
is going on!" - so why doesn't your shutdown program shut down?? It can well see
that there's something out of the ordinary, because the "next" time is in the past!

If the user turns off VDR willingly and against VDR's "advice" (remember: there's
a recording going on!), it would seem only fair that the USER turns it on again
when he/she thinks it's ok to do so.

> VDR should give the next event which is more than 10 minutes
> in the future. ("10 minutes" because nvram-wakeup
> refuses to shut down for less than 10 minutes. But the user
> said: "shut down now" and would be irrtaded that nothing happens)

As I said, it's your shutdown program that refuses to do what the user requested!

> (Is there a way that VDR may display the output of
> the power off script like in commands.conf?)
> 
> 2.
> After ending of an recording, the shutdown seens
> to occur immediately, with no grant.

I have changed this in version 0.98 (to be released tonight).
Then it will wait 5 seconds if the user explicitly has pressed
the Power key, 5 minutes in any other case.

> But I set 15 Min "event time out"
> 62 min "user time out".

This has nothing to do with the time VDR waits in the
"Press any key to cancel shutdown" prompt.

> Bug or feature?
> (Thought that vdr would wait  5 minutes
> shut down as like user timeout?)
> 
> It is "surprising" because sometimes i watch
> and do not realize that vdr is recording in the background.
> If im not watching every second, i had no chance to
> stop the power down...
> 
> But in the moment i see no way to solve that problem,
> except extremly increase the "user timeout".
> 
> A 3..5 minutes "grant" would help,
> maybe only if there were in the last 2h any RC commands,
> indicating that VDR is not running "alone".
> I think this problem occurs too when "manual" recording.
> I don't know what happens, if the user watsches a recording
> that's longer than "user timeout". Will VDR turn poer off
> immediately too?

The automatic shutdown does not kick in while a recording is
being replayed.

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________



Home | Main Index | Thread Index