[linux-dvb] Re: Integration of Powersave in VDR

2001-08-29 Thread Sergei Haller
On Wed, 29 Aug 2001, Reiner Rosin wrote: > I agree with you that vdr should call an external program, script or > whatever with two parameters (next timer relative and next timer > absolute), this could be introduced to vdr via a commandline option. > So if this is present to vdr, there could be

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-29 Thread Reiner Rosin
Hi, i followed the whole thread regarding the powersafe-function of vdr and thought about it ... I agree with you that vdr should call an external program, script or whatever with two parameters (next timer relative and next timer absolute), this could be introduced to vdr via a commandline opti

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-29 Thread Sergei Haller
On Wed, 29 Aug 2001, Klaus Schmidinger wrote: > > > > What I had in mind is a way to tell vdr the same as by calling the > > `intentionally shutdown NOW' menu item (i.e. letting the vdr the choice to > > call the actual shutdown script or not to call it) > > Ah, I see. Well, this could be impleme

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-29 Thread Klaus Schmidinger
Sergei Haller wrote: > > On Wed, 29 Aug 2001, Klaus Schmidinger wrote: > > > > Sergei Haller wrote: > > > > > > On Tue, 28 Aug 2001, Klaus Schmidinger wrote: > > > > > > > Since this is a user activity, > > > > a new MinUserInactivity timeout will then be started. > > > > > > > > If this is what

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-29 Thread Sergei Haller
On Wed, 29 Aug 2001, Klaus Schmidinger wrote: > > Sergei Haller wrote: > > > > On Tue, 28 Aug 2001, Klaus Schmidinger wrote: > > > > > Since this is a user activity, > > > a new MinUserInactivity timeout will then be started. > > > > > > If this is what everybody can agree on, I can implement this

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-29 Thread Klaus Schmidinger
Sergei Haller wrote: > > On Tue, 28 Aug 2001, Klaus Schmidinger wrote: > > > Therefore I suggest that everybody who wants to power off their VDR machine > > provides a program (binary, shell script, Perl script or whatever), which can > > be called by VDR with exactly one paramter, namely the ti

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Sergei Haller
On Tue, 28 Aug 2001, Klaus Schmidinger wrote: > Therefore I suggest that everybody who wants to power off their VDR machine > provides a program (binary, shell script, Perl script or whatever), which can > be called by VDR with exactly one paramter, namely the time (in UTC) when the > next timer

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Klaus Schmidinger
Matthias Weingart wrote: > > On Wed, Aug 29, 2001 at 07:08:54AM +0200, Peter Seyringer wrote: > > Hello! > > > > Klaus, how can you difference if it is a normal timer while the vdr is > > running or a powersave startet timer after the timer vdr calls die shutdown > > commando? > > I think you sho

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Matthias Weingart
On Wed, Aug 29, 2001 at 07:08:54AM +0200, Peter Seyringer wrote: > Hello! > > Klaus, how can you difference if it is a normal timer while the vdr is > running or a powersave startet timer after the timer vdr calls die shutdown > commando? > I think you should call the shutdown command with an add

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Klaus Schmidinger
Peter Seyringer wrote: > > Hello! > > Klaus, how can you difference if it is a normal timer while the vdr is > running or a powersave startet timer after the timer vdr calls die shutdown > commando? > I think you should call the shutdown command with an additional parameter > after starting vdr.

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Peter Seyringer
Hello! Klaus, how can you difference if it is a normal timer while the vdr is running or a powersave startet timer after the timer vdr calls die shutdown commando? I think you should call the shutdown command with an additional parameter after starting vdr. If the return value is 0 vdr runs like

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Klaus Schmidinger
Peter Seyringer wrote: > > Hi ML, Hi Klaus! > > > I see two possible ways to do this: either through an external program > that > > new option "--shutdown=CMD", where CMD is the name of your program. > I think thats ok! > > > Of course, how the machine is restarted again when the user wants to

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Klaus Schmidinger
Matthias Weingart wrote: > > On Tue, Aug 28, 2001 at 06:46:50PM +0200, Klaus Schmidinger wrote: > > > > Therefore I suggest that everybody who wants to power off their VDR machine > > provides a program (binary, shell script, Perl script or whatever), which can > > be called by VDR with exactly o

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Peter Seyringer
Hi ML, Hi Klaus! > I see two possible ways to do this: either through an external program that > new option "--shutdown=CMD", where CMD is the name of your program. I think thats ok! > Of course, how the machine is restarted again when the user wants to watch tv, > but there is currently no time

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Matthias Weingart
On Tue, Aug 28, 2001 at 06:46:50PM +0200, Klaus Schmidinger wrote: > > Therefore I suggest that everybody who wants to power off their VDR machine > provides a program (binary, shell script, Perl script or whatever), which can > be called by VDR with exactly one paramter, namely the time (in UTC)

[linux-dvb] Re: Integration of Powersave in VDR

2001-08-28 Thread Klaus Schmidinger
Peter Seyringer wrote: > > Hello! > > This afternoon i had a discussion with Klaus about implementation of powersave in >vdr. > My idee is: > > 1) Powersave starts the computer about 5 minutes before the recording starts > 2) after the record, vdr calculates the time to the next timer start. I