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 MVPMCX2 and other NMT stuff v
« Previous 1 … 18 19 20 21 22 … 37 Next »
NMT and WOL

 
  • 0 Vote(s) - 0 Average
NMT and WOL
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#21
2008-12-04, 11:15 PM (This post was last modified: 2008-12-05, 05:16 AM by jksmurf.)
martint123 Wrote:My thanks to t'other Martin for making ether-wake available.
I've added it into the startmeup file and my server now wakes up when running the gbpvr interface on the PCH. Note - of course you need the scripts on a hard drive or USB stick, not on the share that is asleep Big Grin

Martin

Could you pls point me to this WOL part of the script? I have a USB stick running GBPVR but can't find the final piece of the puzzle, WOL, on the WIKI.

ta,
k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,194
Threads: 958
Joined: May 2006
#22
2008-12-05, 12:00 AM
I linked to the program here http://www.networkedmediatank.com/showth...5#pid41845

You will have to copy it to your usb drive and run it from your cgi script as

ether-wake MAC-address of server


Martin
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#23
2008-12-05, 03:23 AM
Thanks Martin,

Of the two at http://gbpvr.com/pmwiki/pmwiki.php/Hardware/NMT#toc16 (i.e. script.cgi and gbpvr.cgi) could I ask

  1. Which cgi script I need to add that line to and
  2. Where in (that) script do I need to add that line to?
I attach the scripts for ease of reference, presumably it goes quite early on the script, but after which line?

gbpvr.cgi
Code:
#!/bin/sh

echo "Content-Length: 80";
echo "Content-type: text/html";
echo "";

cd ~
mkdir /etc/mvpmc >/dev/NULL
echo "";

if [ -f /etc/mvpmc/mvpmcx2 ]
  then
  echo "Already Connected!";
else  
   mount --bind  /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/mvpmc /etc/mvpmc
   #mount -t cifs //x.x.x.x/MVPMC /etc/mvpmc/ -o username=guest,ro;
   cp /etc/mvpmc/utelnetd /usr/bin;
   chmod 777 /etc/mvpmc/*;
   utelnetd -l /bin/sh -p 23 &
   ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
   ln -s /lib/librmzlib.so /lib/libz.so
   ln -s /lib/librmzlib.so /lib/libz.so.1
   ln -s /lib/librmzlib.so /lib/libz.so.123
   echo "Telnetd started on port 23............";
fi

killall gaya
sh -c /etc/mvpmc/startmeup 2>/dev/null >/dev/null &

script.cgi
Code:
#!/bin/sh

echo "Content-Length: 29";
echo "Content-type: text/html";
echo "";

cd ~
mkdir /etc/mvpmc >/dev/NULL
mount --bind /opt/sybhttpd/localhost.drives/USB_DRIVE_A-1/mvpmc /etc/mvpmc
#mount -t cifs //xx.xx.xx.xx/mvpmc /etc/mvpmc/ -o username=guest,ro;
cp /etc/mvpmc/utelnetd /usr/bin;
utelnetd -l /bin/sh -p 23 &
ln -s /lib/librmjpeg.so /lib/libjpeg.so.62
ln -s /lib/librmzlib.so /lib/libz.so
ln -s /lib/librmzlib.so /lib/libz.so.1
ln -s /lib/librmzlib.so /lib/libz.so.123
echo "Telnetd started on port 23............";
exit 0;

btw any news on when/if Sybas will compile it into their own code as mentioned in that NMT thread?

Cheers

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#24
2008-12-05, 11:51 AM
I put mine in startmeup (untouched from a very early version....) Substitute your MAC address Wink

90% of the time the server wakes from hibernate before mvpmcx2 times out.
the other 10% of the time it drops back to the html menu and I have to do it again. From standby it is quick enough to start without problem (other than my USB tuner doesn't like standby).


Code:
#echo "Shell to mvpmcx2 "

/etc/mvpmc/ether-wake 00:0d:87:d2:66:0a

#remove the # from most appropriate line

# Analog TV settings

#/etc/mvpmc/mvpmcx2 -m ntsc &
#/etc/mvpmc/mvpmcx2 -m pal &

# HDMI/DVI settings

#/etc/mvpmc/mvpmcx2 -m 720 &
/etc/mvpmc/mvpmcx2  -o hdmi --emulate 192.168.1.5 &
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#25
2008-12-05, 08:25 PM (This post was last modified: 2008-12-05, 09:21 PM by jksmurf.)
Cheers Martint123, will give it a whirl.

btw1 wasn't aware of the hdmi option in startup!

Quote:/etc/mvpmc/mvpmcx2 -o hdmi --emulate 192.168.1.5 &

btw2 - you might want to remove your MAC addy above or change to 00:00:00...

btw3 - is it just my PCH, but has anyone else had an issue where the name of the USB drive CHANGES from USB_DRIVE_A-1 to USB_DRIVE_B-1 if you remove the USB stick and put it back in again? most annoying as the path in the mount line of the above script goes out of whack ...

It is almost there but seems to still be 1 step removed from "fully" automatic (WAF). When I switch on the PCH the "Home" media source is my mvpmc share (that I used before the USB Stick). I can choose the USB stick and get instant GBPVR, but one less step would be to switch the PCH on and have GBPVR there. Is there some way of having the USB stick set as the default "Home"? It always reverts to my share, presuambly as that is the last thing I ran? (I admit I I haven't tried disabling the META tags in the html to see if running the index.html manually will make it remember the USB stick as the last run media source)
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,194
Threads: 958
Joined: May 2006
#26
2008-12-05, 09:30 PM
-o hdmi is redundant the default for 720p and 1080i/p. The HD alternative -o component is only necessary if you want to override your flash settings.

Your MAC address is in almost every MVP log you upload. Other than your router (which needs to present a MAC address), it is not of much use outside your private subnet.

I see you you are still using script.cgi and telnet.cgi these have been merged. Hopefully one day the wiki will be updated too.

Martin
martint123
Offline

Posting Freak

UK, East Yorkshire
Posts: 4,658
Threads: 208
Joined: Nov 2005
#27
2008-12-05, 10:17 PM
mvallevand Wrote:-o hdmi is redundant
The HD alternative -o component is only necessary if you want to override your flash settings.
I see you you are still using script.cgi and telnet.cgi these have been merged.


Oh dear - I guess it boils down to my "if it ain't broke, don't fix it"

I'm not sure if the redundancy came from firmware upgrades, but ISTR it was needed when I first got the PCH, even when settings were correct in flash, otherwise the pch and TV would spend forever trying to HDMI handshake. (Can't remember if it came from --help or from one of the example scripts).

I'll try to find the combined script and have a fiddle over the weekend - I have changed mine a bit to enable possible attaching to three different gbpvr servers with different tuner hardware in them for experimental purposes.

I've never worried about MAC addresses or private IP addresses as they never pass through routers anyway.
jksmurf
Offline

Posting Freak

HK (DMBTH)
Posts: 3,590
Threads: 410
Joined: Jul 2005
#28
2008-12-05, 10:45 PM
martint123 Wrote:I've never worried about MAC addresses or private IP addresses as they never pass through routers anyway.
Oh...good to know!

k.
ASUS STRIX X470-F AMD 2700x 4GHz | Win10Prox64 | 32GB | NVIDIA GEforce GT1030 Fanless | WinTV DMB-TH | WinTV HVR-1280 | Hauppauge Colossus | AC86U/AC68U | USB-UIRT | RPi4 Libreelec | Sony Bravia LCD X9000F Android TV |
Jaggy
Online

Posting Freak

Carterton, NZ
Posts: 3,641
Threads: 148
Joined: Mar 2006
#29
2009-07-01, 12:44 AM
As lots of users say "I have done a search & etc. etc." but I don't want to go back to old old posts because I know scripts & versions have changed very rapidly with this project & have NO idea what is still relevant & what isn't.

The other user who went in with me to share freight costs when we recently purchased our new nmt's runs s3 sleep on his server as it lives on the other side of the wall to their bedroom & to keep the WAF up sleep for the server is almost essential.

From reading this (& a few other) thread(s) it looks like this is possible but I really need a "dummies guide" on how to get this working for him. From what I have read so far doing it from a usb stick seems to be the way to go to keep things quiet. Any help with setting this up for him would be greatly appreciated by me (who has to do it for him).
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,194
Threads: 958
Joined: May 2006
#30
2009-07-01, 01:11 AM
This forum and the wiki really needs to be purged and redone. There's too much baggage. Here's and untested solution from a share http://forums.gbpvr.com/showpost.php?p=3...ostcount=2

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): « Previous 1 2 3 4 Next »


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

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

Linear Mode
Threaded Mode