Re: [vdr] auto shutdown (-s) question

2009-02-07 Thread Ville Skyttä
On Saturday 07 February 2009, Udo Richter wrote:
 On 06.02.2009 13:49, Alex Betis wrote:
  I'm playing now with autoshutdown script (the one that is specified with
  -s switch) and have a question.
  When power button is pressed, VDR calls the script, but lets say the
  script decided not to
  shutdown the PC (other background work is done). I see that VDR shows a
  countdown of
  5 minutes saying that it will shutdown soon.

 VDR does not know whether the shutdown script initiated the shutdown or
 decided to ignore it,

I suppose it would be quite easy to implement that and maybe some other 
scenarios as well using shutdown script exit statuses.  For example exit 
status 0 = shutdown successfully initiated (already in current VDR), 10 = 
shutdown ignored, 11 = something else, 12 = something else, anything else = 
an unexpected error occurred.

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] auto shutdown (-s) question

2009-02-07 Thread Ville Skyttä
On Saturday 07 February 2009, Ville Skyttä wrote:
 On Saturday 07 February 2009, Udo Richter wrote:
  On 06.02.2009 13:49, Alex Betis wrote:
   I'm playing now with autoshutdown script (the one that is specified
   with -s switch) and have a question.
   When power button is pressed, VDR calls the script, but lets say the
   script decided not to
   shutdown the PC (other background work is done). I see that VDR shows a
   countdown of
   5 minutes saying that it will shutdown soon.
 
  VDR does not know whether the shutdown script initiated the shutdown or
  decided to ignore it,

 I suppose it would be quite easy to implement that and maybe some other
 scenarios as well using shutdown script exit statuses.  For example exit
 status 0 = shutdown successfully initiated (already in current VDR), 10 =
 shutdown ignored, 11 = something else, 12 = something else, anything else =
 an unexpected error occurred.

...and based on some criteria, stdout and/or stderr from the script could be 
displayed on the OSD.


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] auto shutdown (-s) question

2009-02-07 Thread Udo Richter
On 07.02.2009 11:26, Ville Skyttä wrote:
 VDR does not know whether the shutdown script initiated the shutdown or
 decided to ignore it,

 I suppose it would be quite easy to implement that and maybe some other
 scenarios as well using shutdown script exit statuses.  For example exit
 status 0 = shutdown successfully initiated (already in current VDR), 10 =
 shutdown ignored, 11 = something else, 12 = something else, anything else =
 an unexpected error occurred.

Unfortunately it's not that easy. Currently, VDR backgrounds the call to 
the shutdown script, and detaches the shutdown script from the VDR 
process. Only because of that, the script can 'survive' the kill of VDR, 
and only because of that the script can display messages via SVDRP.

However, this means that the error level return of the script is unknown 
to VDR, and is (and was) always ignored. Some shutdown scripts do set 
error levels, but there's no common definition about the meaning of 
error levels. Defining error levels for the shutdown script would 
thereby be potentially incompatible to existing scripts.

Another solution to this would be an external activity handler that is 
controlled via SVDRP commands, and that provides activity control 
comparable to plugins for one external instance - the shutdown script. 
This could either be done by a plugin or a VDR patch.


Cheers,

Udo

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] auto shutdown (-s) question

2009-02-07 Thread Alex Betis
On Sat, Feb 7, 2009 at 12:44 AM, Udo Richter udo_rich...@gmx.de wrote:

 On 06.02.2009 13:49, Alex Betis wrote:
  I'm playing now with autoshutdown script (the one that is specified with
  -s switch) and have a question.
  When power button is pressed, VDR calls the script, but lets say the
  script decided not to
  shutdown the PC (other background work is done). I see that VDR shows a
  countdown of
  5 minutes saying that it will shutdown soon.

 VDR does not know whether the shutdown script initiated the shutdown or
 decided to ignore it, so it simply sets the SHUTDOWNRETRY time (6
 minutes) until next shutdown attempt. The 5-minute countdown will
 automatically start after the first minute.

  What are the common ways to cancel that?
  I thought about sending a back button using SVDRP. Is there any other
  methods?

 There is no official way to announce background activity from outside of
 VDR. Sending a keystroke would work, but probably shifts shutdown
 several hours into the future. Sending a poweroff when done is also a
 bad idea, as an user might be using VDR by now.

 The easiest way is to just assume that no one sees the countdowns, and
 keep trying shutdown until it succeeds. Any user activity will make the
 countdown disappear anyway.

Ok, got the idea. I thought VDR will shutdown itself after that counter,
something that is not really wanted.
After trying it, I see that it just counts down and call the script again. I
saw somewhere in the manual also that it leaves
the control to the script (to kill it) and do not exit by itself.

Thanks.



 Plugins have more control over shutdown, they can report their activity
 and can even announce future activity, leaving VDR the decision to shut
 down until then or not.


 Cheers,

 Udo

 ___
 vdr mailing list
 vdr@linuxtv.org
 http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] xine for vdr-0.7.4 doesn't patch

2009-02-07 Thread Reinhard Nissl
Hi,

Simon Baxter schrieb:

 My point exactly -
 from INSTALL:
 snip
 keybindings to xine-ui for supporting my plugin's remote functionality. I 
 use
 the following commands for patching:
 
   patch -d. -p0  /soft/src/VDR/PLUGINS/src/xine/patches/xine-lib.patch
 snip 

I'm sorry Simon, this one slipped through. I had created the
patch differently (and much easier) this time and it therefore
contains a different toplevel directory.

I've changed INSTALL meanwhile to:

  patch -dxine-lib -p1 
/soft/src/VDR/PLUGINS/src/xine/patches/xine-lib.patch

Hope this works, too.

Bye.
-- 
Dipl.-Inform. (FH) Reinhard Nissl
mailto:rni...@gmx.de

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] Use FF Card only as output device

2009-02-07 Thread Patrick Maier
Hi,

my DVB-S FF card broke down those days. I think it's the tuner of the card, 
because it can't lock to a frequency:
- Output of femon -
using '/dev/dvb/adapter0/frontend0'
FE: Philips TDA8083 DVB-S (SAT)
status 01 | signal 6363 | snr 1919 | ber 080484c0 | unc bfc2d9f8 |
- End of output -

Additional I've a DVB-S budget card in the system.
So is it possible to use the Tuner of the buget card and use the broken FF 
card only as display device and tell the system not to use the broken tuner?

Thanks and greets
Patrick 


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr