NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 11 12 13 14 15 … 56 Next »
How I connect client PCs to my "sleepy" GB-PVR server

 
  • 0 Vote(s) - 0 Average
How I connect client PCs to my "sleepy" GB-PVR server
Mucaro
Offline

Junior Member

Posts: 23
Threads: 2
Joined: Oct 2006
#1
2008-01-12, 06:48 AM (This post was last modified: 2008-01-12, 06:51 AM by Mucaro.)
Last December, I was able to resolve the hibernation (s4) and stand-by (s3) issues my GB-PVR HTPC/server had. Currently, my server wakes up every day to update the EPG and/or record TV and then puts itself back into stand-by mode after done. I can also turn the HTPC on with my MS MCE remote when I want to watch TV in the living room.

I was living a dream Smile. But the dream became a nightmare when my GBPVR client-addicted teenage daughters realized they could not watch live TV or their recordings from their PCs if the server went into stand-by mode.

I was not willing to let go the stand-by mode. So I did a little research (thanks God for Google Big Grin). To make a long story short, I replaced the GB-PVR shortcuts on their clients' Desktops with a shortcut to a custom batch file that does the following:
  1. It checks if the server is awake.
  2. If the server is awake, it starts the GB-PVR application right away.
  3. If the server is sleeping, it sends a Wake-on-LAN (WoL) magic packet to the server to wake it up.
  4. It gives the server 5 seconds to wake up. (The server wakes up in less than 3 seconds).
  5. Starts the GB-PVR application.

The batch file relies on the Depicus' "WolCmd.exe" utility to send WoL magic packets. "WolCmd.exe" is a clean freeware command-line utility and can be downloaded from here.

The attached HTTP.txt is the batch file that the clients should call instead of GB-PVR. (Rename it to HTTP.bat after downloading it) You must edit the file (with notepad) and add the IP and MAC numbers of your server. The MAC number can be obtained by running Windows' command prompt (Windows-R keys, type in "cmd", then press enter) and entering "ipconfig /all". The MAC number is listed as "Physical Address". Don't include the dashes (-) in the batch file.

If your GB-PVR is not installed in the folder "C:\Program Files\devnz\gbpvr", then you must also update that path in the HTPC.bat batch file.

Once you get HTPC.bat and WolCmd.exe, store them in the same folder. I stored mine in "C:\Program Files\WoL". You could put the files in different folders; just remember to change the batch file accordingly.

Then, create a Desktop shortcut to the HTPC.bat file. Optionally, you could assign the GB-PVR icon (red TV set) to the HTPC shortcut.

Note that for WoL to work, you must make sure that WoL is allowed in your server's BIOS and the server's Ethernet adapter driver is configured to accept magic packets. I decided not to discuss how to do this because I know it has been discussed ad nauseam in this forum.

Enjoy it.
[SIZE="1"](Mitsubishi WD-65732 HDTV) (AMD Athlon 64 3200+ & 768MB DDR) (nVidia GeForce 6150) (250GB 7200RPM HD) (2 x Hauppauge PVR-150MCE) (XGene Imperial RF Keyboard) (MS MCE Remote+IR transceiver and Logitech Harmony 676 RC) (GB-PVR v1.1.5 (PVRX2) running on Windows XP Pro SP2) (5 GB-PVR Clients via FastEthernet/100Mbit LAN)
[/SIZE]
haripj
Offline

Member

Posts: 134
Threads: 17
Joined: Mar 2005
#2
2008-01-12, 01:36 PM
Thanks for the batch file.
Did you have to do anything special like this to be able to wake up the HTPC with the remote, or does it just work upon sending any signal to the HTPC with the remote? Does it also work the same way with the RF keyboard?
"Nothing succeeds as planned" - Joseph Heller
Mucaro
Offline

Junior Member

Posts: 23
Threads: 2
Joined: Oct 2006
#3
2008-01-12, 03:43 PM
Once the computer could enter stand-by and wake up by itself, I had to change the BIOS to allow USB devices to wake up the computer. Also, I think I had to configure the IR receiver device to wake up the PC. (I use the "replacement" MCE IR receiver driver included with HIP)

The computer turns on only if the "PC power" button on the MS MCE remote or the Harmony remote is pressed. That allows me to do other activities without waking up the HTPC. For example, I can use the Harmony remote to control my miniHT system and browse through radio stations, play back a DVD movie, or play Wii, and the HTPC does not wake up.

Yes, the HTPC wakes up if I press any key on the RF keyboard. For that to work, I had to change the BIOS accordingly.

Please, note that BIOS functions change from mobo to mobo. I cannot wake up the HTPC from hibernation using the remotes. But I've read that some people can.
[SIZE="1"](Mitsubishi WD-65732 HDTV) (AMD Athlon 64 3200+ & 768MB DDR) (nVidia GeForce 6150) (250GB 7200RPM HD) (2 x Hauppauge PVR-150MCE) (XGene Imperial RF Keyboard) (MS MCE Remote+IR transceiver and Logitech Harmony 676 RC) (GB-PVR v1.1.5 (PVRX2) running on Windows XP Pro SP2) (5 GB-PVR Clients via FastEthernet/100Mbit LAN)
[/SIZE]
DaRacerz
Offline

Junior Member

Posts: 19
Threads: 4
Joined: Jun 2007
#4
2008-01-28, 03:26 AM
Mucaro, I would like to say thanks for the post. It was usefull.

On a side note. Waking up from the Remote depends on your setup. The iMon remotes by Soundgraph support wakeup from Standby (I presume this includes Hibernate as well). Most remotes do not. There may be others.
--Mark

PVR Spec:
Win Vista Business
AMD Athlon 64 X2 5200+ @ 2.60 Ghz
2-GB Memory
Tuners:
ATI Theatre 550
Happauge HVR-1600 (QAM Enabled)
Dave_M
Offline

Member

Posts: 66
Threads: 15
Joined: Nov 2007
#5
2009-03-24, 04:33 PM
I'd like to try this as well. Could some one copy-paste their batch file in this forum? The attachment seems to have been deleted from the first post.
fuzzweed
Offline

Posting Freak

Posts: 1,210
Threads: 200
Joined: May 2006
#6
2009-03-24, 05:39 PM
this is my version. Programatically (if that's a word) there are some flaws with it (mainly 'error' handling doesn't work right - feel free to improve and repost Wink) but it works fine otherwise. This uses wol.exe from here http://www.depicus.com/wake-on-lan/ , not wolcmd.exe used by the OP but same thing.
macaddress will need to be changed to suit, as will servername

Code:
echo off
echo Waking Server
set start=0
set end=3
wol macaddress

:ping
echo Looking For Server
ping servername | find "Reply" > NULL
if errorlevel=1 goto loop else
echo Server Found
echo Starting GBPVR
C:\Progra~1\devnz\GBPVR\PVRX2.exe
exit

:loop
if %start%==%end% goto stop
set /a start=%start%+1
goto ping

echo ok

:stop
echo Server Not Found
pause
[SIZE="1"]Server: Win7 N | AMD Phenom II X4 3.2GHz | 4Gig RAM | Gigabyte GA-MA770-DS3 Mobo | 5TB+ HDDs | 2x BlackGold Twin HD DVB-T| ATI HD 5450 | Cambridge Audio DAC Magic
Client 1: OpenElec / XBMC | Dell GX280 P4 3.4GHz |2Gig RAM | ATI HD 5450 | SPDIF pass through
Client 2: OpenElec / XBMC | Dell GX280 P4 3.4GHz |2Gig RAM | ATI HD 5450 | C-MEDIA USB DAC
Android: Samsung Galaxy S2 GT-I9100 4.4.2 Cyanogenmod 11[/SIZE]
fuzzweed
Offline

Posting Freak

Posts: 1,210
Threads: 200
Joined: May 2006
#7
2009-03-24, 05:43 PM
PS I also kill pvrx2 on the client when it goes into sleep and call this batch on resume .If the client sleeps with pvrx2 running, but resumes when the server is asleep you'll run into problems again.
[SIZE="1"]Server: Win7 N | AMD Phenom II X4 3.2GHz | 4Gig RAM | Gigabyte GA-MA770-DS3 Mobo | 5TB+ HDDs | 2x BlackGold Twin HD DVB-T| ATI HD 5450 | Cambridge Audio DAC Magic
Client 1: OpenElec / XBMC | Dell GX280 P4 3.4GHz |2Gig RAM | ATI HD 5450 | SPDIF pass through
Client 2: OpenElec / XBMC | Dell GX280 P4 3.4GHz |2Gig RAM | ATI HD 5450 | C-MEDIA USB DAC
Android: Samsung Galaxy S2 GT-I9100 4.4.2 Cyanogenmod 11[/SIZE]
pBS
Offline

Posting Freak

Posts: 4,829
Threads: 182
Joined: Aug 2005
#8
2009-03-25, 04:13 AM
if you run HIP on the client it also has 'scheduler' that can fire events on suspend and resume...[eliminating extra running processes]
and i think you could even run it just for that function...[without remote] tho that may be overkill..Smile
Hardware: HDHR Prime, HDPVR 1212, Raspberry pi2, VFD display w/LCDSmartie
jonnybignote
Offline

Junior Member

Posts: 5
Threads: 1
Joined: Apr 2009
#9
2009-04-04, 04:27 AM
fuzzweed - can you explain how you kill pvrx2 when going into standby? Thanks
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Universal Media Server puck64 4 5,560 2022-09-10, 09:23 AM
Last Post: phunkygeezer
  New NextPVR client for Raspberry Pi 2 and 3. fred250 40 24,929 2019-11-05, 10:28 PM
Last Post: bobphoenix
  Need beta testers for "NextPVR for Samsung" (client for samsung smart tvs/blurays) reven 61 27,270 2013-12-03, 10:21 AM
Last Post: martint123
  xnpvrcli - linux/unix client for NPVR tmrt 43 21,295 2013-06-08, 01:18 PM
Last Post: Reddwarf
  nDroid - A simple Android client for N-PVR bgowland 11 9,461 2011-02-23, 04:21 AM
Last Post: bgowland
  ExportToGbpvr: a small MP TV server plugin Sheik Yerbouti 0 1,443 2009-03-12, 06:40 PM
Last Post: Sheik Yerbouti
  BitTorrent client added to the 'Ten Foot' products Andy Henderson 2 2,114 2007-10-16, 05:43 PM
Last Post: Andy Henderson
  MultiDec Plugins and Card Server howto MixMan 0 2,020 2007-01-19, 07:15 PM
Last Post: MixMan
  New Tool:Help turn GB-PVR into client / server Hayden 13 8,497 2006-08-03, 11:59 AM
Last Post: HtV
  Mirror Server seewolf 1 1,666 2005-12-27, 02:53 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode