NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 883 884 885 886 887 1231 Next »
Hauppauge pvr350 tv-out and hibernate

 
  • 0 Vote(s) - 0 Average
Hauppauge pvr350 tv-out and hibernate
MaBo
Offline

Senior Member

Posts: 346
Threads: 58
Joined: Dec 2003
#1
2004-09-03, 10:11 AM
Hi,
Well, I've already read and posted several messages on this subject, but it appears that waiting for hauppauge to solve the problem of black-screen-on-tv-out-after-hibernate will last longer than the economic life-time of the pvr350...

But, I also found out that the pvr350 can be restarted fairly easily with a batchfile calling the microsoft tool "devcon" (see another post on this subject). The only thing that has to be solved now is: how can this batchfile be executed directly after waking from hibernation before gbpvr starts recording.

Restarting takes only a few seconds with devcon, but the card has to be free, otherwise a reboot is necessary for restarting.
Thus ir.exe has to be stopped (it has a commandline switch for that)
When gbpvr recordingservice is recording or has just stopped recording it has to be stopped as well. This, off course, ruins the running recording, but just after hibernation I expect this to be no problem.

Is there anyone with programming experience that can develop a tool that:
1/ listens to the windows messages on going into hibernation and resume.
2/ execute a batchfile after resume from hibernation (and preferably another batchfile when going into hibernation)

I like to look into this and start programming something like that, but since my programming experience is small and rather old (Pascal/Modula) I expect others can hack something like this faster and better.

Greetz,
MaBo
ASUS pundit, pvr 350, celeron 2600, 512 MB, 160GB HD, winXP Pro, 12" touchscreen
colin
Offline

Senior Member

Posts: 683
Threads: 39
Joined: Nov 2003
#2
2004-09-03, 01:23 PM
hey Mabo,

if I need how to detect this scenario I would certainly write something, though I'm a *nix programmer so don't know the ins and outs of how Windows works.

This is probably not a great solution but would it be possible to extend the recording service to reinitialise the 350? Assuming the recorging service can detect if its using a 350 onwaking up before it is about to record it could maybe do whats needed to the card?

Its not an elegant solution but it would solve the problem for a lot of people without realising it? And of course it requires Sub to make the change .....

Colin.
MaBo
Offline

Senior Member

Posts: 346
Threads: 58
Joined: Dec 2003
#3
2004-09-03, 01:38 PM
Colin,

Maybe the recordingservice solution is the easiest solution. It is also a "unique selling point" when implemented: the only pvr-application that properly handles hibernation of the pvr350!!!

But, I really don't know whether sub would like to incorporate this hauppauge-bug fix...

Anyway, there is quite some information available on the subject of windooz power management. See for instance the msdn library under: msdn power management.

What I've read so far, is that the code should listen to the PBT_APMRESUMEAUTOMATIC event. When this occurs and hibernation has taken place before, the batchfile should be executed.

BUT, I don't know how to handle these things. If you do, it would be great if you could make something.

Greetz,
MaBo
ASUS pundit, pvr 350, celeron 2600, 512 MB, 160GB HD, winXP Pro, 12" touchscreen
colin
Offline

Senior Member

Posts: 683
Threads: 39
Joined: Nov 2003
#4
2004-09-03, 02:05 PM
[b Wrote:Quote[/b] ]But, I really don't know whether sub would like to incorporate this hauppauge-bug fix...

Yeah, its nasty but a possible work around if Hauppauge will not fix their drivers.

I'm working on a power management plugin for GBPVR (its a joy porting structures to C#) so I can take a look at doing something for this.

Colin.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#5
2004-09-03, 06:05 PM
I have changed the GB-PVR client to detect the system waking from hibernation. If it finds a wake.cmd file, then it will execute it. You can put you restart command in this file.
MaBo
Offline

Senior Member

Posts: 346
Threads: 58
Joined: Dec 2003
#6
2004-09-04, 09:57 AM
Sub,
This is GREAT news!

One question, though. Does this mean gbpvr has to be running, or only the recording service? I've noticed that if gbpvr is running with the osd on the tv-out, restart doesnot work without a restart. If I can add something like gbpvr.exe -exit on the first line fo wake.cmd to exit gbpvr first, then gbpvr.exe on the last line to restart gbpvr it is allright as well.

If only the recording service has to be running, all is well, as I can stop and start it from the command line (and thus via a cmd file).

Anyway this is very cool stuff!

Greetz,
MaBo
ASUS pundit, pvr 350, celeron 2600, 512 MB, 160GB HD, winXP Pro, 12" touchscreen
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#7
2004-09-04, 05:47 PM
I've done it in GBPVR.exe, so it would need to be running. The process needs to have a window to receive this power event notification, and the recording service does not have one.

If you return exit code 99 from wake.cmd, GB-PVR will close.



Mikkel
Offline

Junior Member

Posts: 27
Threads: 9
Joined: Aug 2004
#8
2004-09-05, 04:23 PM
If you guys could solve this problem, could you please explain to us non programmers how we could fix this as well?
I would be so glad if this problem could be solved,

thanks,
Mikkel
Hauppage 350
MaBo
Offline

Senior Member

Posts: 346
Threads: 58
Joined: Dec 2003
#9
2004-09-06, 11:46 AM
Sub,
Thanks for the information. However, this solution poses a problem:
1) To have wake.cmd be executed after hibernation GBPVR has to be running
2) To restart the pvr350 GBPVR should not be running.

I can think of a solution: The computer wakes from hibernation with gbpvr running, so wake.cmd is invoked. wake.cmd does only one thing: it starts another batchfile dothisonwake.cmd and then imediately exits with exitcode 99, so gbpvr exits.
dothisonwake waits a few seconds, then restarts the pvr350. and restarts gbpvr.

However, I think this is not a very elegant solution. I would prefer another program running like hibernationcheck.exe (in the windows startup folder, minimized and only for the pvr350 users) . That does nothing exept call wake.cmd when the computer wakes from hibernation. wake.cmd can close gbpvr if it is running (via gbpvr.exe -exit or so), restart the pvr350 and restart gbpvr (if needed). This solves the hibernation problem more general applicable. For instance for people who might also use their computer for other purposes and only start gbpvr if needed (like I do...)

Sub, is this doable?

Mikkel, if sub releases the version where this is implemented, I will try to get the proper batchfile working and post the procedure here.

Greetz,
MaBo
ASUS pundit, pvr 350, celeron 2600, 512 MB, 160GB HD, winXP Pro, 12" touchscreen
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,759
Threads: 769
Joined: Nov 2003
#10
2004-09-06, 07:09 PM
You can download http://www.gbpvr.com/GBPVRWake.exe

This process runs without a window, but is visible in the task list. When it detects the machine waking from hibernation, it will ask any running GBPVR instances to close, then will execute c:\program files\devnz\gbpvr\wake.cmd. You can put whatever you want in this file, but its likely you'll put a command to restart you PVR350 drivers and a command to start GBPVR.exe

You'll probably want executable in your startup folder if you're a PVR350 user.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (6): 1 2 3 4 5 6 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  GBPVR support for Hauppauge WinTV-HVR-1900 or Hauppauge HD-PVR (PAL) lchiu7 23 18,457 2014-05-15, 12:59 AM
Last Post: lchiu7
  Hauppauge 2250 MCE remote Jeckler 22 20,775 2013-03-26, 04:26 PM
Last Post: DonBrutto
  Composite Source using Hauppauge PVR500 gives sound but no video DukeBrymin 1 3,052 2012-02-03, 02:41 AM
Last Post: slowtech
  Start PC for recording, Sleep/Hibernate when done Basher52 6 4,983 2011-12-17, 02:52 PM
Last Post: Sykor
  Will A Hauppauge Colossus work in 1.4.7? hondophred 5 3,775 2011-06-29, 09:12 PM
Last Post: sub
  Recording problem with Hauppauge Nova-S USB2 ... softfoot 4 3,422 2011-06-27, 02:06 AM
Last Post: sub
  Hauppauge 1600 analog stopped working stoenjes 2 1,981 2010-11-16, 11:09 PM
Last Post: ryanmc
  Can I record two channels with a Hauppauge HVR-3000 DVB-T (FreeView UK)? philcooling 1 1,758 2010-11-02, 06:15 PM
Last Post: sub
  Internal Hauppauge WinTV MOD7700 ATSC -- what BDA do I use? h103 7 5,332 2010-10-08, 08:29 PM
Last Post: juanrod160
  Comcast DCI105COM1 DTA and Hauppauge IR Blaster not working DonP 6 7,286 2010-09-26, 03:46 AM
Last Post: pBS

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode