NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Other Clients Old Stuff (legacy) MVP & NMT v
« Previous 1 … 74 75 76 77 78 … 115 Next »
Reload/reset GBPVR after pressing power button remote control.

 
  • 0 Vote(s) - 0 Average
Reload/reset GBPVR after pressing power button remote control.
Raingod
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Aug 2005
#1
2006-02-06, 12:17 PM (This post was last modified: 2006-02-06, 02:04 PM by Raingod.)
Dear GBPVR users,

I had sometimes a problem with the GBPVR software in MVP mode and the only solution then was to restart GBPVR. For that i needed access to a PC and that was not always close me. So i made a quick .cmd script to reload GBPVR after pressing the power button on the remote. It is nothing fancy but it works for me:

Note:

Tested only on MS Windows XP

- Assumes default installation path(s) GBPVR.

- Commands used: Del, Copy, START, Netstat, Find (default availible with MS XP)

1: you need to download the freeware process.exe util from: http://www.beyondlogic.org/solutions/pro...ssutil.htm
(also any other tool that displays and kill processes will do fine i think).

2: Create a directory and put this the tool there.

3: Create in this directory also a file called: WASON.CHK

4: Create in this dir. also a file called: ResetMVP.CMD

5: Copy and Paste the next stuff into ResetMVP.CMD

--- Start Reset.CMD, copy beyond this line ---------

@echo off

netstat -n | find ":5906" > nul
If errorlevel 1 goto mvpnotrun

:mvprun
echo MVP connected.
if exist .\wason.txt goto loadmvp
echo New connection detected.
copy /Y .\wason.chk .\wason.txt
echo FirstTime marker set!
echo New connection detected @ %date% %time% >> .\log.txt
goto einde

:mvpnotrun
echo MVP NOT connected.
if not exist .\wason.txt goto loadmvp

echo FirstTime marker detected.
del /F .\wason.txt > nul
process -k GBPVR.exe > nul
START "PVR" "C:\Program Files\devnz\gbpvr\gbpvr.exe" -mvpmode
echo Restart GBPVR @ %date% %time% >> .\log.txt
echo Restart GBPVR.
goto einde

:loadMVP
echo Check for running MVP Application...
process | find "GBPVR.exe" >nul
If errorlevel 1 goto runmvp
echo MVP Application is running.
goto einde

:runmvp
echo Application NOT running, initiating clean Start!
del /F .\wason.txt > nul
START "PVR" "C:\Program Files\devnz\gbpvr\gbpvr.exe" -mvpmode
echo Clean GBPVR start @ %date% %time% >> .\log.txt

:einde
echo Done.

---- Stop ResetMVP.CMD Copy before this line ----------

Note: the line containing "netstat -n | find ":5906" > nul" is a default setting/port for the MVP to connect to GBPVR.EXE test it by running this line without the "> nul" statement to see if this port is connected when the MVP is ON.

Testing:

- Start GBPVR in MVP Mode.
- Turn on MVP
- Open a Commandwindow (CMD) and go to the directory where ResetMVP is located.
- Run ResetMVP.CMD

It now detects MVP is connected.

- Switch the MVP off and run ResetMVP again. It now will detect a lost connection and initiate a reload of GBPVR.EXE.

the last thin you must do now is:

6: Now create a scheduled task witch calls the ResetMVP.CMD every one minute. Make sure you let it run in the directory where ResetMVP is placed.

-- End Installation ---

Dear folks, it works for me i hope it works for you, it is not to dificult to understand the script so if things dont seem to work please dont ask me.

GBPVR Rules!

BTW: If there was already another solution then please let use know.
fhmanas
Offline

Senior Member

Posts: 430
Threads: 108
Joined: Jul 2005
#2
2006-02-06, 02:51 PM
will this solution reset the MVP portion only or will it restart the whole GBPVR recording service. I ask this since sub confirmed in an earlier post that I asked that GBPVR.exe is really terminated and restarted.

See http://forums.nextpvr.com/showthread.php...estart+mvp
Win XP Pro SP 2
ASUS P5k-PRO Dual Core 3.0 GHZ with 4GB RAM
1 Seagate 150 GB SATA HD
1 Seagate 1TB SATA HD
1 Seagate 750 GB SATA HD
1 Hauppauge PVR500MCE
2 MVP (2 Wired / 1 Wireless via 2 Linksys WRT54G routers)
1 dead MVP (searching for replacement)
fhmanas
Offline

Senior Member

Posts: 430
Threads: 108
Joined: Jul 2005
#3
2006-02-06, 02:52 PM
BTW, did it disrupt your recordings as well?
Win XP Pro SP 2
ASUS P5k-PRO Dual Core 3.0 GHZ with 4GB RAM
1 Seagate 150 GB SATA HD
1 Seagate 1TB SATA HD
1 Seagate 750 GB SATA HD
1 Hauppauge PVR500MCE
2 MVP (2 Wired / 1 Wireless via 2 Linksys WRT54G routers)
1 dead MVP (searching for replacement)
Raingod
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Aug 2005
#4
2006-02-06, 03:20 PM
This solution will only stop/unload GBPVR.EXE and start it again. It doesnt do anything with the GBPVRRecordingService.

In response to: http://forums.nextpvr.com/showthread.php...estart+mvp

When i hit the green power button the windows process ID stays the same :confused: (using GBPVR v.95.14)


So it seems to me that there is no restart of the GBPVR process. Because i sometimes can have a problem for witch i have to reload the GB-PVR MediaMVP Server i created this batch.

sub tell me if i'am wrong.
sub
Online

Administrator

NextPVR HQ, New Zealand
Posts: 106,717
Threads: 767
Joined: Nov 2003
#5
2006-02-06, 04:25 PM
If you run it with the 'autostart servers' setting in the config app, then GBPVR.exe is automatically restarted each time you press the power button. It doesnt do this if you manually start the mvp server.
Raingod
Offline

Junior Member

Posts: 9
Threads: 3
Joined: Aug 2005
#6
2006-02-06, 04:58 PM
Sad stupid, stupid me.

I just set autostart to 1 and yes it works,

Sub, you thought of everything Cool

Well everyone, use the batchfile for something else, sorry.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Any one used OpenRemote to control GB/N-PVR? pz1 0 3,087 2012-10-10, 04:32 PM
Last Post: pz1
  Delete button does not work eurojojo 5 3,950 2012-10-04, 11:40 AM
Last Post: mvallevand
  MVP remote dongna 17 8,060 2011-09-22, 07:20 AM
Last Post: WKleeven
  Step-by-step instructions on how to get PCH A100 to wake the GBPVR PC? ww4397 30 11,601 2011-07-24, 02:52 PM
Last Post: mvallevand
  How do you reset a MVP? AKA factory reset systemshark 8 3,778 2011-02-28, 08:14 PM
Last Post: systemshark
  upgrading from pvrx2(gbpvr) to Npvr on popcorn hour stustunz 8 4,755 2011-01-19, 02:10 PM
Last Post: jksmurf
  MVP / GBPVR - just got a 1080p LCD tv.. Dave72 3 2,211 2010-12-14, 04:39 AM
Last Post: mvallevand
  Hauppauge Remote Control issues with MVP and nPVR TheShadow 3 2,623 2010-11-02, 11:30 PM
Last Post: mvallevand
  PCH with GBPVR running not able to access network shares on Windows Home Server (WHS) jeffers 3 2,484 2010-07-19, 12:40 PM
Last Post: mvallevand
  I'm VERY impressed with NMT and GBPVR, that you devs! Mysteryman 10 4,577 2010-06-19, 03:22 AM
Last Post: Ryansplace

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

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

Linear Mode
Threaded Mode