Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-03-04 Thread Udo Richter
Hi list, In the 'final' 1.0 version of the shutdown patch, and in VDR 1.5.1, a small bug slipped through that prevented automatic shutdown after VDR started for a recording only. I've uploaded a new 1.1 version of the patches for VDR 1.4.5, VDR 1.5.0 and VDR 1.5.1 to my web page: http://ww

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, final

2007-03-03 Thread Marko Mäkelä
On Sat, Mar 03, 2007 at 04:36:03PM +0100, Klaus Schmidinger wrote: > > Sorry, I forgot one feature request. In a private discussion with Klaus > > a long time ago (around vdr 1.3.30), Klaus mentioned the idea of VDR > > remembering the name of the last replayed recording across shutdowns. > > That

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, final

2007-03-03 Thread VDR User
On 2/27/07, Marko Mäkelä <[EMAIL PROTECTED]> wrote: This would be similar to analog VCRs, which obviously remember the position even after being unplugged. VCR's don't remember anything related to position, it's the tape itself that moves (from one reel to the other), not the head in the VCR.

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, final

2007-03-03 Thread Klaus Schmidinger
Marko Mäkelä wrote: > On Mon, Feb 26, 2007 at 09:29:58PM +0100, Udo Richter wrote: >> Hi list, >> >> Now that VDR 1.5.1 was published, I've also published the final 1.0 >> version of the shutdown rewrite. The changes since 0.4 are mainly by Klaus. >> >> http://www.udo-richter.de/vdr/patches.html#s

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, final

2007-02-27 Thread Marko Mäkelä
On Mon, Feb 26, 2007 at 09:29:58PM +0100, Udo Richter wrote: > Hi list, > > Now that VDR 1.5.1 was published, I've also published the final 1.0 > version of the shutdown rewrite. The changes since 0.4 are mainly by Klaus. > > http://www.udo-richter.de/vdr/patches.html#shutdown > http://www.udo-r

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, final

2007-02-26 Thread Udo Richter
Hi list, Now that VDR 1.5.1 was published, I've also published the final 1.0 version of the shutdown rewrite. The changes since 0.4 are mainly by Klaus. http://www.udo-richter.de/vdr/patches.html#shutdown http://www.udo-richter.de/vdr/patches.en.html#shutdown The patch is identical to the cha

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-25 Thread Marko Mäkelä
On Sun, Feb 25, 2007 at 09:11:36PM +0200, Marko Mäkelä wrote: > On Sun, Jan 28, 2007 at 05:50:46PM +0100, Udo Richter wrote: > > - Added #define PATCH_SHUTDOWN_REWRITE to detect the patch > > Use #if VDRVERSNUM >= 105xx || defined(PATCH_SHUTDOWN_REWRITE) after > > final integration into VDR. >

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-25 Thread Marko Mäkelä
On Sun, Jan 28, 2007 at 05:50:46PM +0100, Udo Richter wrote: > - Added #define PATCH_SHUTDOWN_REWRITE to detect the patch > Use #if VDRVERSNUM >= 105xx || defined(PATCH_SHUTDOWN_REWRITE) after > final integration into VDR. Now that VDR 1.5.1 includes the patch, I wonder if you are going to mai

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-25 Thread Klaus Schmidinger
Udo Richter wrote: > Matthias Schwarzott wrote: >> In gentoo vdr package we added a small hack (attached), which >> implements a svdrp call "down" to tell vdr it is inactive and will >> shutdown in X minutes. >> >> We call this from shutdown-scripts to let vdr retry shutdown in 5 min >> (or other v

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4

2007-02-24 Thread Udo Richter
Udo Richter wrote: I've finished a fourth version of the shutdown rewrite. Again there are two patches available, one for VDR 1.5.0, and one with slight changes for 1.4.x. Changes: - Handle setup menu restart questions in cShutdown::ConfirmRestart() - Act differently on SIGHUP: Restart VDR l

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4 - Finnish i18n

2007-02-20 Thread Marko Mäkelä
On Tue, Feb 20, 2007 at 08:36:49AM -0800, VDR User wrote: > On 2/20/07, Marko Mäkelä <[EMAIL PROTECTED]> wrote: > > > >Would it be enough to say "%s wakes up"? > > > That's fine if you don't mind using poor grammar. For example, "femon wakes > up?" makes absolutely no sense. All languages I kno

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4 - Finnish i18n

2007-02-20 Thread VDR User
On 2/20/07, Marko Mäkelä <[EMAIL PROTECTED]> wrote: Would it be enough to say "%s wakes up"? That's fine if you don't mind using poor grammar. For example, "femon wakes up?" makes absolutely no sense. ___ vdr mailing list vdr@linuxtv.org http://www

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4 - Finnish i18n

2007-02-20 Thread Pasi Juppo
Marko Mäkelä wrote: > On Tue, Feb 20, 2007 at 08:52:20AM +0200, Rolf Ahrenberg wrote: >> On Mon, 19 Feb 2007, Udo Richter wrote: >> >>> Rolf Ahrenberg wrote: I've one question about this sentence: "Plugin %s wakes up in %ld min, continue?" If I'm pressing 'OK' here, does it cont

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4 - Finnish i18n

2007-02-20 Thread Marko Mäkelä
On Tue, Feb 20, 2007 at 08:52:20AM +0200, Rolf Ahrenberg wrote: > On Mon, 19 Feb 2007, Udo Richter wrote: > > >Rolf Ahrenberg wrote: > >> I've one question about this sentence: > >> "Plugin %s wakes up in %ld min, continue?" > >> > >> If I'm pressing 'OK' here, does it continue the shutdown or run

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4 - Finnish i18n

2007-02-19 Thread Rolf Ahrenberg
On Mon, 19 Feb 2007, Udo Richter wrote: Rolf Ahrenberg wrote: I've one question about this sentence: "Plugin %s wakes up in %ld min, continue?" If I'm pressing 'OK' here, does it continue the shutdown or running the VDR? I don't like it either, but didn't come up with a good other idea f

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4 - Finnish i18n

2007-02-19 Thread Udo Richter
Rolf Ahrenberg wrote: I've one question about this sentence: "Plugin %s wakes up in %ld min, continue?" If I'm pressing 'OK' here, does it continue the shutdown or running the VDR? I don't like it either, but didn't come up with a good other idea for this. For consistency it should be "Plugi

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4 - Finnish i18n

2007-02-19 Thread Rolf Ahrenberg
On Sun, 18 Feb 2007, Marko Mäkelä wrote: On Sun, Feb 18, 2007 at 10:09:54PM +0100, Udo Richter wrote: "Editing - shut down anyway?" ( no longer cutting ;) ) "Schneide - trotzdem ausschalten?" "Leikkaus kesken - sammutetaanko?" Hmm, this is inconsistent with most Finnish translations of

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4 - Finnish i18n

2007-02-18 Thread Marko Mäkelä
On Sun, Feb 18, 2007 at 10:09:54PM +0100, Udo Richter wrote: > "Editing - shut down anyway?" ( no longer cutting ;) ) > "Schneide - trotzdem ausschalten?" > "Leikkaus kesken - sammutetaanko?" Hmm, this is inconsistent with most Finnish translations of "editing" ("muokkaus") in i18n.c. I'd r

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x, version 0.4

2007-02-18 Thread Udo Richter
Hi list, I've finished a fourth version of the shutdown rewrite. Again there are two patches available, one for VDR 1.5.0, and one with slight changes for 1.4.x. http://www.udo-richter.de/vdr/patches.html#shutdown http://www.udo-richter.de/vdr/patches.en.html#shutdown Changes: - Renamed som

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-17 Thread Udo Richter
Darren Salt wrote: We re-define SIGHUP, so that it doesn't terminate VDR instantly, but instead checks for activity. If user and vdr is inactive, act just like sigterm, if there's some activity, ignore the signal. An external script could then repeat sending the SIGHUP periodically until termi

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-16 Thread Darren Salt
I demand that Udo Richter may or may not have written... > Darren Salt wrote: >>> I guess the only situation that may cause a problem is if the VDR never >>> shuts down, eg. has no shutdown script at all. It must have some "Min >>> User Inactivity" setting, or else live viewing could be interrupte

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-16 Thread Udo Richter
Darren Salt wrote: I guess the only situation that may cause a problem is if the VDR never shuts down, eg. has no shutdown script at all. It must have some "Min User Inactivity" setting, or else live viewing could be interrupted by the automatic update. The user inactivity setting isn't relevan

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-16 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Patrick Mackin wrote: > >Is that HD-capable? HDTV seems quite common in NA, but currently in the > >UK there are very few HD channels, only available through overpriced > >subscriptions. It looks unlikely that there'll be any FTA/FTV HD until > >at least after the analogue

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-14 Thread Marko Mäkelä
On Sun, Feb 11, 2007 at 08:11:03PM +, Darren Salt wrote: > I demand that VDR User may or may not have written... > > > On 2/8/07, Marko Mäkelä <[EMAIL PROTECTED]> wrote: > > (August already?) Hey, I wrote that on 2007-02-08 (ISO date) or 8.2.2007 (German or Finnish style date). I think ther

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-11 Thread Darren Salt
I demand that Udo Richter may or may not have written... > Darren Salt wrote: >> Then there's the upgrade restart, which should be available via a signal. >> The actual restart should be deferred if VDR is currently busy. (It is >> *possible* to implement this via runvdr, but it's a lot easier to

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-11 Thread Udo Richter
Darren Salt wrote: Then there's the upgrade restart, which should be available via a signal. The actual restart should be deferred if VDR is currently busy. (It is *possible* to implement this via runvdr, but it's a lot easier to handle if VDR can re-exec itself.) H. Some kind of i-am-idle-

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-11 Thread Darren Salt
I demand that VDR User may or may not have written... > On 2/8/07, Marko Mäkelä <[EMAIL PROTECTED]> wrote: (August already?) >> On Thu, Feb 08, 2007 at 01:08:33PM +0200, Rolf Ahrenberg wrote: >>> BTW, I'm very used to VDR's current behaviour to shutdown itself after >>> the recording is made and

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-09 Thread VDR User
On 2/9/07, Marko Mäkelä <[EMAIL PROTECTED]> wrote: On Fri, Feb 09, 2007 at 05:55:54PM +, Darren Salt wrote: > I demand that VDR User may or may not have written... > > [snip] > > Also, a coffee-maker is not a device used for entertainment purposes. > > Nobody turns their coffee-maker on and

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-09 Thread Marko Mäkelä
On Fri, Feb 09, 2007 at 05:55:54PM +, Darren Salt wrote: > I demand that VDR User may or may not have written... > > [snip] > > Also, a coffee-maker is not a device used for entertainment purposes. > > Nobody turns their coffee-maker on and then sits there watching it. I hope > > not anyways.

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-09 Thread Darren Salt
I demand that VDR User may or may not have written... [snip] > Also, a coffee-maker is not a device used for entertainment purposes. > Nobody turns their coffee-maker on and then sits there watching it. I hope > not anyways. They might point a camera (probably a webcam) at it, though... [snip]

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread VDR User
On 2/8/07, Udo Richter <[EMAIL PROTECTED]> wrote: H. Can a coffee maker run VDR? :) If it's possible, somebody will find a way! ;) Any other existing options you want to know of? I hadn't pay much attention to this thread until recently and the way some things were worded made it seem

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread Udo Richter
VDR User wrote: There is no reason to behave otherwise unless it's done thru some kind of "auto-shutoff? [y/n]" setting. As said above, its called "Min User Inactivity" and can be set to 0. Also, a coffee-maker is not a device used for entertainment purposes. Nobody turns their coffee-maker

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread Rolf Ahrenberg
On Thu, 8 Feb 2007, VDR User wrote: There is no reason to behave otherwise unless it's done thru some kind of "auto-shutoff? [y/n]" setting. With a setting like that I suppose you could specify to shut off at a certain time of the day or user-defined timeout period. But force a shutdown becaus

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread Udo Richter
VDR User wrote: Also, the user "inactivity" stuff is again, a bad idea. Vdr should not assume anything or take action just because the user hasn't interacted with it in a while. This type of behavior is simply not consistent with other devices and not a behavior the user would expect. My tv

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread VDR User
On 2/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] >Also, the user "inactivity" stuff is again, a bad idea. Vdr should not >assume anything or take action just because the user hasn't interacted >with it in a while. This type of behavior is simply not consistent with >oth

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread VDR User
On 2/8/07, Klaus Schmidinger <[EMAIL PROTECTED]> wrote: A plugin is considered "active" if its Active() function returns a string. So it's entirely up to the plugin whether or not it wants to prevent a shutdown. However, just having a plugin's menu screen open shouldn't mean the plugin is active

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread joscej
[EMAIL PROTECTED] Also, the user "inactivity" stuff is again, a bad idea. Vdr should not assume anything or take action just because the user hasn't interacted with it in a while. This type of behavior is simply not consistent with other devices and not a behavior the user would expect. My tv will

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread Klaus Schmidinger
VDR User wrote: > On 2/7/07, *Klaus Schmidinger* <[EMAIL PROTECTED] > > wrote: > > I'd also say that the Power button should shutdown without confirmation > unless there is a recording going on or a plugin is Active(). > > To avoid accidental shutdowns it mig

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread VDR User
On 2/7/07, Klaus Schmidinger <[EMAIL PROTECTED]> wrote: I'd also say that the Power button should shutdown without confirmation unless there is a recording going on or a plugin is Active(). To avoid accidental shutdowns it might still prompt the user with "Shutdown - press any key to stay up" o

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread VDR User
On 2/8/07, Marko Mäkelä <[EMAIL PROTECTED]> wrote: On Thu, Feb 08, 2007 at 01:08:33PM +0200, Rolf Ahrenberg wrote: > BTW, I'm very used to VDR's current behaviour to shutdown itself > after the recording is made and don't want to get rid of that one > either. As far as I understand, nobody has

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread Marko Mäkelä
On Thu, Feb 08, 2007 at 01:08:33PM +0200, Rolf Ahrenberg wrote: > BTW, I'm very used to VDR's current behaviour to shutdown itself > after the recording is made and don't want to get rid of that one > either. As far as I understand, nobody has suggested that we should get rid of that feature. Y

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-08 Thread Rolf Ahrenberg
On Wed, 7 Feb 2007, VDR User wrote: The idea was bad from the start (sorry Rolf Ahrenberg). Well, without my modification the power key did blank the screen while asking about canceling the shutdown and after that the video came back (no matter if cancelled it or not). This was a really nast

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-07 Thread Klaus Schmidinger
Udo Richter wrote: > Marko Mäkelä wrote: >> Well, that would still break this scenario: You're watching a recording >> while it is being recorded. Then you get interrupted and push the Power >> button. Before the timed recording finishes and VDR gets a chance to >> shut down, you get back and pus

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-07 Thread VDR User
On 2/7/07, Udo Richter <[EMAIL PROTECTED]> wrote: I don't want to add yet another config option, either we let the power button work directly while playback, or we ask for confirmation on playback. Whatever the majority wants. Recording is one thing but I've never seen a VCR, DVD player, DVR,

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-07 Thread Udo Richter
Marko Mäkelä wrote: Well, that would still break this scenario: You're watching a recording while it is being recorded. Then you get interrupted and push the Power button. Before the timed recording finishes and VDR gets a chance to shut down, you get back and push a button to switch to interac

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-07 Thread Marko Mäkelä
On Wed, Feb 07, 2007 at 10:40:44PM +0100, Udo Richter wrote: > Marko Mäkelä wrote: > >>You can shut down while playback, you just have to confirm it. And if > >>you don't confirm it, VDR will shut down 5 minutes after the playback > >>ends. > > > >Sure, if the playback ends. It won't end with my

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-07 Thread Udo Richter
Marko Mäkelä wrote: You can shut down while playback, you just have to confirm it. And if you don't confirm it, VDR will shut down 5 minutes after the playback ends. Sure, if the playback ends. It won't end with my patched softdevice that stops the playback of recordings when Shutdown.IsUserIn

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-07 Thread VDR User
It's a safe assumption that when a user presses a power button, they intend that the device be immediately turned off or shut down. I can't think of any device that performs any differently. If a user wants to shut down vdr after he's done watching a playback, he would obviously still be sitting

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-07 Thread Marko Mäkelä
On Wed, Feb 07, 2007 at 12:06:20AM +0100, Udo Richter wrote: > >Could you please introduce a configuration option that would > >allow the Power key to initiate shutdown even while playing a recording > >(provided that nothing else prevents a shutdown, of course)? > > You can shut down while play

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-06 Thread Udo Richter
Marko Mäkelä wrote: However, you're right about breaking that feature: if PlayVideo() and PlayAudio() start refusing data when Shutdown.IsUserInactive() holds, the playback will never end, and VDR would probably wait MinUserInactivity (3 hours by default) until shutdown. While playback, the cur

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-06 Thread Marko Mäkelä
On Wed, Jan 31, 2007 at 10:55:11PM +0100, Udo Richter wrote: > Marko Mäkelä wrote: > >First, and more important: Can you please suspend the playback of > >recordings when Shutdown.IsUserInactive() holds? > > This would break the other interesting feature, shut down VDR as soon as > the playback e

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-05 Thread Udo Richter
Peter Dittmann wrote: How about a new two level inactivity timeout ? After VDR starts the inactivity timeout uses a first short timeout (e.g. 5min) assuming that VDR has automaticly being started. Actually, even in worst case you'll see the 5-minute-countdown, so you already have enough time

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-05 Thread Peter Dittmann
Udo Richter wrote: Marko Mäkelä wrote: One more thing: are the timeouts for interactive->inactive->shutdown configureable? Is there a way to force VDR to enter inactive mode without immediate shutdown? Inactive mode is triggered by the Min User Inactivity timeout config option, by default 3

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-03 Thread Reinhard Walter Buchner
Hi, But you surely would power the display off, to avoid burning the still image on the CRT or plasma screen or to save the precious hours on the lamp of your video beamer? Or maybe you have a TFT screen and do not care about wasting electricity? Surely this shouldn't be too difficult to impl

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-03 Thread Marko Mäkelä
On Sat, Feb 03, 2007 at 10:48:42AM +0100, Udo Richter wrote: > Marko Mäkelä wrote: > >>Actually I would press the pause button, as I usually don't want to miss > >>anything. And then the playback should be halted anyway, no matter if > >>display is on or off. > > > >But you surely would power the

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-03 Thread Udo Richter
Marko Mäkelä wrote: Actually I would press the pause button, as I usually don't want to miss anything. And then the playback should be halted anyway, no matter if display is on or off. But you surely would power the display off, to avoid burning the still image on the CRT or plasma screen or t

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-02 Thread Marko Mäkelä
On Fri, Feb 02, 2007 at 12:22:12AM +0100, Udo Richter wrote: > Marko Mäkelä wrote: > >It does. The typical use case is that you pause live video or start > >a recording with a timer, then start watching it while it is still > >recording, so that you can skip commercial breaks. Then you get > >int

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-01 Thread Udo Richter
Marko Mäkelä wrote: It does. The typical use case is that you pause live video or start a recording with a timer, then start watching it while it is still recording, so that you can skip commercial breaks. Then you get interrupted while watching it. It would be very handy to push the power but

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-01 Thread Patrick Mackin
Is that HD-capable? HDTV seems quite common in NA, but currently in the UK there are very few HD channels, only available through overpriced subscriptions. It looks unlikely that there'll be any FTA/FTV HD until at least after the analogue terrestrial switch-off in 2012. HDTV is not as common

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-01 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Patrick Mackin wrote: > >Also generic video cards are increasingly coming with video decoding > >features, and HDTVs can be connected straight to a PC without the need > >for a horrible scaler or special screen mode. Although not all the > >decoding features are available t

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-01 Thread Patrick Mackin
I wouldn't be so sure about the majority of VDRs using FF cards. I haven't seen any ad for an FF card, but I have seen many ads for cheap USB DVB-T tuners. The trend is likely to change, given that decoding MPEG-2 is no challenge to current PC hardware. Also generic video cards are increasingl

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-01 Thread Tony Houghton
In <[EMAIL PROTECTED]>, you wrote: > I wouldn't be so sure about the majority of VDRs using FF cards. I > haven't seen any ad for an FF card, but I have seen many ads for cheap > USB DVB-T tuners. The trend is likely to change, given that decoding > MPEG-2 is no challenge to current PC hardware.

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-01 Thread Marko Mäkelä
On Thu, Feb 01, 2007 at 08:27:14PM +0200, Marko Mäkelä wrote: > > Maybe not switching off display while doing playback? It doesn't make > > much sense anyway to run playback invisible. > > It does. The typical use case is that you pause live video or start > a recording with a timer, then start

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-02-01 Thread Marko Mäkelä
On Wed, Jan 31, 2007 at 10:55:11PM +0100, Udo Richter wrote: > Marko Mäkelä wrote: > >First, and more important: Can you please suspend the playback of > >recordings when Shutdown.IsUserInactive() holds? Here is the relevant > >hunk from my vdr-suspend patch: > > This would break the other intere

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-31 Thread Udo Richter
Marko Mäkelä wrote: First, and more important: Can you please suspend the playback of recordings when Shutdown.IsUserInactive() holds? Here is the relevant hunk from my vdr-suspend patch: This would break the other interesting feature, shut down VDR as soon as the playback ends. Also, this wo

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x - Finnish translations

2007-01-31 Thread Marko Mäkelä
I believe that we have reached consensus on the Finnish translation. On Sun, Jan 28, 2007 at 05:50:46PM +0100, Udo Richter wrote: > - i18n strings: > "VDR will shut down later. Press power to force." "VDR sammuu myöhemmin - pakota virtakytkimellä" > "VDR will shut down in %s minutes" "VDR s

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-31 Thread Rolf Ahrenberg
On Wed, 31 Jan 2007, Marko Mäkelä wrote: I didn't think of that. If the verb is already used in some translation string, it might be good to avoid using the verb in another context. What about "Laajennos herää" (Plugin wakes up)? That sounds ok. When VDR invokes the external shutdown script

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-31 Thread Marko Mäkelä
On Wed, Jan 31, 2007 at 09:02:58AM +0200, Rolf Ahrenberg wrote: > >I would rather write "käynnistyy" instead of the foreign "aktivoituu". > > But VDR starts ("käynnistää") all plugins already at the beginning and > depending on the plugins behaviour it's activated on main menu action, > external

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-30 Thread Rolf Ahrenberg
On Tue, 30 Jan 2007, Marko Mäkelä wrote: I was in a bit hurry when writing those translations, so don't take them as written into stone - they do need some polishing. I agree with you that it is good to maintain a consistent style. However, "The passive voice should be avoided." I quickly br

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-30 Thread Marko Mäkelä
On Tue, Jan 30, 2007 at 09:56:36PM +0200, Rolf Ahrenberg wrote: > I'd use passive sentencies and no comma at the ends and try to use the > current style. I agree with you that it is good to maintain a consistent style. However, "The passive voice should be avoided." I quickly browsed some toolt

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-30 Thread Ville Skyttä
On Tuesday 30 January 2007 21:56, Rolf Ahrenberg wrote: > "Laajennos aktivoituu %ld kuluttua - sammutetaanko?" Should be "...%ld minuutin kuluttua..." ___ vdr mailing list vdr@linuxtv.org http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-30 Thread Marko Mäkelä
On Tue, Jan 30, 2007 at 08:08:27PM +0200, Ville Skyttä wrote: > On Tuesday 30 January 2007 19:28, Marko Mäkelä wrote: > > On Sun, Jan 28, 2007 at 05:50:46PM +0100, Udo Richter wrote: > > > > > "Plugin activity in %ld minutes, shut down anyway?" > > > > "Liitännäinen toimii %ld minuutin päästä, sa

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-30 Thread Rolf Ahrenberg
On Tue, 30 Jan 2007, Marko Mäkelä wrote: Here are my suggested Finnish translations, and some comments and questions. I'd use passive sentencies and no comma at the ends and try to use the current style. "VDR will shut down later. Press power to force." "VDR sammuu myöhemmin. Pakota pai

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-30 Thread Ville Skyttä
On Tuesday 30 January 2007 19:28, Marko Mäkelä wrote: > On Sun, Jan 28, 2007 at 05:50:46PM +0100, Udo Richter wrote: > > > "Plugin activity in %ld minutes, shut down anyway?" > > "Liitännäinen toimii %ld minuutin päästä, sammutetaanko?" IIRC "plugin" has been translated to "laajennos" elsewhere

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-30 Thread Marko Mäkelä
On Sun, Jan 28, 2007 at 05:50:46PM +0100, Udo Richter wrote: > Hi list, > > I've finished a third version of the shutdown rewrite. Again there are > two patches available, one for VDR 1.5.0, and one with slight changes > for 1.4.x. > > http://www.udo-richter.de/vdr/patches.html#shutdown > http:

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-28 Thread Klaus Schmidinger
Udo Richter wrote: > Klaus Schmidinger wrote: >> I would suggest to rename NextWakeupEvent() to WakeupTime(), because >> there isn't really an "event" involved, and the word "event is generally >> used in a different context (for EPG events). Plus, the individual >> plugin only has a single wake-up

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-28 Thread Udo Richter
Klaus Schmidinger wrote: I would suggest to rename NextWakeupEvent() to WakeupTime(), because there isn't really an "event" involved, and the word "event is generally used in a different context (for EPG events). Plus, the individual plugin only has a single wake-up time, so there's no need for "

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-28 Thread Klaus Schmidinger
Udo Richter wrote: > Hi list, > > I've finished a third version of the shutdown rewrite. Again there are > two patches available, one for VDR 1.5.0, and one with slight changes > for 1.4.x. > ... I would suggest to rename NextWakeupEvent() to WakeupTime(), because there isn't really an "event" in

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-28 Thread Udo Richter
Hi list, I've finished a third version of the shutdown rewrite. Again there are two patches available, one for VDR 1.5.0, and one with slight changes for 1.4.x. http://www.udo-richter.de/vdr/patches.html#shutdown http://www.udo-richter.de/vdr/patches.en.html#shutdown - Shutdown command call

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-24 Thread Marko Mäkelä
On Wed, Jan 24, 2007 at 06:49:10PM +0100, Udo Richter wrote: > Well, strange things happen. I've had such a side effect on my runvdr > extreme with a closed stdout, see here: (German) > http://www.vdr-portal.de/board/thread.php?postid=542948#post542948 > > In this case, printf on kanotix complain

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-24 Thread Udo Richter
Marko Mäkelä wrote: On Tue, Jan 23, 2007 at 10:19:57PM +0100, Udo Richter wrote: Since the shutdown script runs in the background, the stdin could probably be closed. After all, VDR should continue to 'own' stdin, and running in the background would probably cause a conflict. However, running

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-24 Thread Marko Mäkelä
On Tue, Jan 23, 2007 at 10:19:57PM +0100, Udo Richter wrote: > Since the shutdown script runs in the background, the stdin could > probably be closed. After all, VDR should continue to 'own' stdin, and > running in the background would probably cause a conflict. However, > running the script wit

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-23 Thread Udo Richter
Marko Mäkelä wrote: The problem seems to lie in shutdown.c, in SystemExecSession(). It won't close file descriptor 0, but it will close anything above STDERR_FILENO (which is normally 2). This function appears to show up in strace output as "clone()". Adding close(0) to the function fixes the p

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-22 Thread Marko Mäkelä
On Sat, Jan 13, 2007 at 09:48:47PM +0100, Udo Richter wrote: > >A more important suggestion: Could you please add a notification method > >to status.h for notifying plugins whether VDR is currently in > >interactive mode? > > You can poll this state on your own by calling > Shutdown.IsUserInact

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-16 Thread Udo Richter
Marko Mäkelä wrote: Right, becoming inactive is not that time-critical. I will give your suggestion a try: in the MainThreadHook of each plugin, poll Shutdown.IsUserInactive(). It should work, though the first key press may trigger some longer work, and the MainThreadHook will be called at th

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-16 Thread Marko Mäkelä
On Tue, Jan 16, 2007 at 12:15:32AM +0100, Udo Richter wrote: > Marko Mäkelä wrote: > >While VDR is running, I would guess that the only way it can become > >interactive is by receiving button events from the remote control unit. > > Hmm, ok, I was mainly thinking of becoming inactive - since this

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-15 Thread Udo Richter
Marko Mäkelä wrote: While VDR is running, I would guess that the only way it can become interactive is by receiving button events from the remote control unit. Hmm, ok, I was mainly thinking of becoming inactive - since this is after a certain time has passed, it can only be polled. For lots o

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-15 Thread Marko Mäkelä
On Sat, Jan 13, 2007 at 09:48:47PM +0100, Udo Richter wrote: > >A more important suggestion: Could you please add a notification method > >to status.h for notifying plugins whether VDR is currently in > >interactive mode? > > You can poll this state on your own by calling > Shutdown.IsUserInact

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-13 Thread Udo Richter
Marko Mäkelä wrote: A minor cosmetic thing: the '#' of pre-processor directives should always be located at the first column of the line. The only indented directives are for the debug output I think, and this will probably be removed before the final integration anyway. A more important

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-13 Thread Marko Mäkelä
On Wed, Jan 10, 2007 at 02:28:24PM +0100, Udo Richter wrote: > Hi list, > > I've finished a second version of the shutdown rewrite. This time, there > are two patches available, one for VDR 1.5.0, and one with slight > changes for 1.4.x. > > http://www.udo-richter.de/vdr/patches.html#shutdown >

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-10 Thread Udo Richter
Klaus Schmidinger wrote: Udo Richter wrote: The downside of this would be that again several external tasks would fight for one resource: the time set in VDR. I don't see why "several external tasks would fight for" that time. This is something the user would set up the way he wants it. If he

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-10 Thread Klaus Schmidinger
Udo Richter wrote: > Klaus Schmidinger wrote: >> However, (don't know exactly if this has already been suggested as such) >> maybe a simple feature in the new shutdown code could be to allow the >> user to specify *one* time at which VDR shall be guaranteed to be "up", >> along with a time period f

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-10 Thread Udo Richter
Klaus Schmidinger wrote: However, (don't know exactly if this has already been suggested as such) maybe a simple feature in the new shutdown code could be to allow the user to specify *one* time at which VDR shall be guaranteed to be "up", along with a time period for which it shall stay up. That

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-10 Thread Udo Richter
Hi list, I've finished a second version of the shutdown rewrite. This time, there are two patches available, one for VDR 1.5.0, and one with slight changes for 1.4.x. http://www.udo-richter.de/vdr/patches.html#shutdown http://www.udo-richter.de/vdr/patches.en.html#shutdown - Fixed negative t

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-02 Thread Klaus Schmidinger
Udo Richter wrote: > [EMAIL PROTECTED] wrote: >>> The alternative would be to implement a generic task scheduler and >>> make timers one special type of schedule. This would get REALLY big. >> >> Yes, but it will be the much better design. >> >> It will open the option to do VDR related timed and m

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-02 Thread Udo Richter
[EMAIL PROTECTED] wrote: The alternative would be to implement a generic task scheduler and make timers one special type of schedule. This would get REALLY big. Yes, but it will be the much better design. It will open the option to do VDR related timed and maintainance tasks. There must be s

Re: Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-01 Thread VDR User
I'm kind of surprised people even bother to shutdown vdr at all. Didn't really how big of an issue this was until reading this thread. That's all I have to offer the discussion at this point. My apologies. :) ___ vdr mailing list vdr@linuxtv.org http:

Re: Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-01 Thread peter . dittmann
> Christian Wieninger wrote: > > perhaps this is too trivial, but why not create a daily or whatever > > timer as you suggested before with a special name like '@epgscan' and > > react on that? > > This would be a dirty ugly hack. There must be some pseudo-recording > running so VDR does not rest

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-01 Thread Udo Richter
Matthias Schwarzott wrote: In gentoo vdr package we added a small hack (attached), which implements a svdrp call "down" to tell vdr it is inactive and will shutdown in X minutes. We call this from shutdown-scripts to let vdr retry shutdown in 5 min (or other value if needed). Question is: Is

Re: [vdr] [RFC] Shutdown rewrite for 1.5.x

2007-01-01 Thread Udo Richter
Matthias Schwarzott wrote: I think a much easier solution (implementable in runvdr/vdr-initscript) is: Write down wakeup-time when shutting down and comparing that to time when system/vdr starts (with some margin). That would be the way I would do it. Reconstructing the reason for shutdown af

  1   2   >