PDA

View Full Version : Wake On Lan



DeepBlueC
2007-02-25, 03:48 PM
I see a lot of promise for this program. I am specifically interested in the WakeOnLan capability. Unfortunately, I have not been able to get it to work 100% yet. This is what happens..

- My PC is off
- I select emulation mode on the mvpmc screen.
- It tries to connect to the server 30 times and fails (b/c my PC is booting)
- I wait a moment and click emulation mode again
- This time it connects to the server and the GBPVR screen comes back.
- Thats all I get. GBPVR is completely unresponsive after that. I can see the light on the media mvp blinking indicating that it is receiving IR signals but nothing happens.

Have other people gotten this working? Is it a known issue. If you require me to do any further testing please let me know.

I would love to see this feature work..

mvallevand
2007-02-25, 04:09 PM
I see a lot of promise for this program. I am specifically interested in the WakeOnLan capability. Unfortunately, I have not been able to get it to work 100% yet. This is what happens..

- My PC is off
- I select emulation mode on the mvpmc screen.
- It tries to connect to the server 30 times and fails (b/c my PC is booting)
- I wait a moment and click emulation mode again
- This time it connects to the server and the GBPVR screen comes back.
- Thats all I get. GBPVR is completely unresponsive after that. I can see the light on the media mvp blinking indicating that it is receiving IR signals but nothing happens.

Have other people gotten this working? Is it a known issue. If you require me to do any further testing please let me know.

I would love to see this feature work..

The good news is that WOL works. Let's try and diagnose the bad news..

- don't hit any keys when gbpvr first shows up there is a glitch if you hit too fast.
- make sure you have the latest version of gbpvr
- use the gbpvr config program to configure 2 or more servers to autostart
- when it becomes unresponsive what does go back key combination do?
- try powering off during the 30 seconds and then going back to emulation mode.

Also I'd like to see the gbpvr logs.

Note that I'm throwing out lots of things to get some info since I think I will be able to get you into emulation mode easily once I can find the prblem. My gbpvr system doesn't wol properly so I can't test it.

Also I'm going to make the timeout value configurable, it really was a guess based on a couple of email tests here when emulation mode wasn't usable.

Martin

DeepBlueC
2007-02-26, 10:52 PM
Sorry about the slow response...


- don't hit any keys when gbpvr first shows up there is a glitch if you hit too fast.
I waited 5 minutes before pressing any other remote buttons. Same problem.

- make sure you have the latest version of gbpvr
I do

- use the gbpvr config program to configure 2 or more servers to autostart
I have 2 MediaMVPs and 2 servers started.

- when it becomes unresponsive what does go back key combination do?
nothing- I need to restart the MVP.

- try powering off during the 30 seconds and then going back to emulation mode.
Power off during the connect attempts?


Also I'd like to see the gbpvr logs.
I attached them

mvallevand
2007-02-26, 11:38 PM
Sorry about the slow response...


I waited 5 minutes before pressing any other remote buttons. Same problem.

I do

I have 2 MediaMVPs and 2 servers started.

nothing- I need to restart the MVP.

Power off during the connect attempts?


I attached them

What I'm really trying to determine if you are trying to connect to gbpvr before it is ready to receive connections. Assuming gbpvr is in your startup you will have to determine what the real time is

One of the test is power off the mvp (via remote) just after the thirty second timer starts. This would issue the WOL but completely remove emulation mode. Once you are sure your PC is up it should be like starting from a dongle boot.

For the logs I guess I need verbose logging turned on, I'm not seeing the connection attempt, or it is connecting before gbpvr is really ready.

Thanks for the feedback, that reply was plenty fast enough.

Martin

DeepBlueC
2007-02-28, 11:04 PM
I tried shutting off the MVP after I entered emulation mode. I checked my PC and it was rebooting. I waited until it had rebooted then restarted the MVP and entered emulation mode.

It worked! GBPVR was responsive.

I am working on getting some logs for you..

cgsample
2007-03-05, 02:07 PM
Please explain "emulation mode". I just purchased a MediaMVP and was wondering how to wake up my hibernating GBPVR server?

mvallevand
2007-03-05, 05:55 PM
Please explain "emulation mode". I just purchased a MediaMVP and was wondering how to wake up my hibernating GBPVR server?

Emulation mode is a part of an alterative MediaMVP client to the standard Hauppauge client (dongle) that is recommended for use with GBPVR. There is an earlier thread in this forum on Introducing mvpmc that provides a little bit more information.

My recommendation to you as a new user it to get comfortable with the standard configuration of GBPBVR and then look at mvpmc and emulation mode should you need any of its features. mvpmc will wake up your GBPVR provided you have the proper network card and motherboard, but it still not as stable as the Hauppauge client and I wouldn't want you to get the wrong impression about GBPVR.

With the feedback I've been receiving on this forum I am increasingly optimistic that one day mvpmc will be the better alternative, but there are growing pains right now.

Martin

OscarL
2007-03-12, 04:32 PM
Hello,
Has anyone got wake-on-lan to work stable. For me, I can get the GBPVR server to wake up from the MVP alright but it will not always start the client on the MVP. Sometimes a reboot of the MVP (from the mvpmc gui) will help but not always.
But the good thing is that the wake-on-lan seems to work properly all the time.:)
Is there anything I can do to help in debugging this? In that case I will be happy to try to support.

Regards
Oscar

mvallevand
2007-03-12, 07:46 PM
Is there anything I can do to help in debugging this? In that case I will be happy to try to support.

My comments in message 2 would apply here is well. My instinct tells me you are partially connecting to gbpvr while it initializes, and I'm guessing that the mvp locating service in gbpvr is starting a little bit before gbpvr can really accept connections.

In my next alpha dongle I will lower the connect time to 10 seconds. This way you can manually determine the correct time to attempt a restart after a reboot. In theory this should not require a reboot, I'm surprised that the power off doesn't work. I'll look and see I might have a retry that is spinning too fast.

Thanks for the feedback.

Martin

OscarL
2007-03-15, 08:00 AM
Hi,
Still trying to get wake on lan to work stable. What is the sequence when starting Emulation mode?
Is the WOL command sent first, followed by 10 repeteated trials to contact the server.
Is the WOL command sent every time i enter emulation mode?.
I am just trying to understand this as it seems as if some times I can not wake the server up.

mvallevand
2007-03-15, 11:56 AM
Hi,
Still trying to get wake on lan to work stable. What is the sequence when starting Emulation mode?
Is the WOL command sent first, followed by 10 repeteated trials to contact the server.
Is the WOL command sent every time i enter emulation mode?.
I am just trying to understand this as it seems as if some times I can not wake the server up.

Hi OscarL. Here is the logic

When the dongle is first loaded it doesn't know anything about your LAN, but the first time emulation mode is started your computer's MAC address is stored. If you are testing don't forget this step.

After you exit emulation mode each time you try to restart emulation, the WOL magic packet is broadcast on your LAN to the MAC address. Then mvpmc sends a general Hauppauge protocol UDP broadcast message to your LAN (or IP if you have configured this) designed to find any servers. It tries this for (now) 10 seconds. Only after your server responds to this message will mvpmc try and actually connect.

Tonight I will add a bit more logic to also ping the IP after the WOL, so mvpmc knows that the machines is there, but you will need to have either a dongle.bin.config file or change the IP address from the ? in the browser.

Martin

OscarL
2007-03-15, 12:51 PM
Hi Martin,
Thanks for the information. I will test some more tonight.
regards
Oscar

OscarL
2007-03-16, 06:26 PM
It seems as if my problem is when the mvpmc sends command to quick after the magic-packet has been sent. I have tried to manually send the WOL from another computer, then wait 10-15 seconds before entering emulation mode. This works alright. However if I enter emualtion directly with a sleeping server It seems as it sometimes hangs the server so that it does not respond to lan activities.
Would it be possible to have a programmable delay after WOL until it starts sending the UDP message.
Note that I have it configured so that it knows my IP, could that be the difference?

mvallevand
2007-03-16, 07:29 PM
It seems as if my problem is when the mvpmc sends command to quick after the magic-packet has been sent. I have tried to manually send the WOL from another computer, then wait 10-15 seconds before entering emulation mode. This works alright. However if I enter emualtion directly with a sleeping server It seems as it sometimes hangs the server so that it does not respond to lan activities.
Would it be possible to have a programmable delay after WOL until it starts sending the UDP message.
Note that I have it configured so that it knows my IP, could that be the difference?

I've got the changes made for this, are you configure the via the browser or a confile? I'm not updating the browser interface because it is supposed to get a redesign but I can add two command line wait options "wait for machine" and "wait for server"

Martin

OscarL
2007-03-17, 10:10 AM
Hi,
Thanks for your continous support.
I configure through a config file, so there is no problem. Just give me some details and I be happy to test when it's done.
Thanks again
Oscar

mvallevand
2007-03-17, 02:46 PM
Hi,
Thanks for your continous support.
I configure through a config file, so there is no problem. Just give me some details and I be happy to test when it's done.
Thanks again
Oscar

I have to redo my logic here because I found that my machine that is turned off still responds to pings which I used to test if the machine was on. Now I will have to somehow use the Hauppauge protocol too.

Martin

mvallevand
2007-03-19, 03:39 AM
Hi,
Thanks for your continous support.
I configure through a config file, so there is no problem. Just give me some details and I be happy to test when it's done.
Thanks again
Oscar

Oscar, I've uploaded a new alpha dongle with two WOL time options. The way I decided to implement it is simply to try for two seconds with the Hauppauge protocol and then allow a delayed wait. Hopefully this won't get in the way of entering emulation mode from the main menu.

The command line option for these are

--em-wolwt # where # is the time in seconds

There is a second option to allow for gbpvr to set up completely after a connection

--em-conwt # where # is the time in seconds

Their defaults are 0 no wait.

Let me know how this works for you.


Martin

OscarL
2007-03-19, 03:47 PM
Thanks,
Will try to test it tonight (if system is available) ;)
Can you explain a little bit more about the differences of the two methods.
Also, I guess I but the commands at the top of the config file.

mvallevand
2007-03-19, 04:06 PM
Thanks,
Will try to test it tonight (if system is available) ;)
Can you explain a little bit more about the differences of the two methods.
Also, I guess I but the commands at the top of the config file.

The major difference is that em-wolwt is designed to handle the real WOL timing situation. em-conwt might deal with delays resulting from drive sleeping probably only requiring a second or two. It might not do anything if the drivers don't spin up on the intial connect.

These new options are not new command so they get added to the command line not to the config file (which is actually a script similar to a batch file or Window shell script) An example config file for you would be (since 30 seconds wasn't good enough).

mvpmc --startup emulate --emulate 192.16.1.1 --em-wolwt 40 &

I add the & for completeness, it has nothing to do with the -em-wolwt

Note that there will be a delay at Attempt 2/10 will this timeout is in effect If this works for you I will improve the user interface to show another countdown while the wait occurs.

Martin

OscarL
2007-03-19, 08:49 PM
Havde done some testing tonight and it works great.
Tested both methods and both seems to work for me.
Noted a couple of things however.

--em-conwt method
Started MVP with server up to load new dongle.

Server to standby
Exit MVP-Emulation with Go-Back
Enter Emulation mode
Ping - No respons
WOL
Waiting for Server
Starts!!
This was repeated a number of times with success all times.Noted that if server was awake it was still the same sequence, only difference is that there was no "No respons" message after the Ping (as the server was alive and answered the ping). But it still sended the WOL etc.

Then I tested to instead of entering emulation with Go-Back to power off the MVP with the remote.
This time the messages are as follows
Sending Ping
No response
Attempt 1
Attempt 2
....

No success in booting. This was also repeteated a number of times.

The I tried --em-wolwt with almost the same result. That is WOL works if I enter emulation mode after quitting Emulation mode with Go-Back and it is not working after power off/on with remote.

It seems as whenever I get the Attempt (x) message the WOL fails. The computer does not wake up from standby and it becomes unresponsive for any new WOL commands sent. Even tried to send WOL from another computer after this has happenend but it always fails to wake up then. For me it seems as the NIC hangs if it gets some other communication to quick after a WOL. Only way is to manually wake it up by power button and then let it go to standby again.

Anyway this was a great improvement! Would it be possible to get the same behaviour after using the power on/off with the remote?

Best regards
Oscar

mvallevand
2007-03-19, 10:03 PM
Anyway this was a great improvement! Would it be possible to get the same behaviour after using the power on/off with the remote?

Oscar to confirm what I think is wrong, could you try the following after successfully starting emulation mode but before trying a power off/on test.

1. enter you mvpmc's ip into your browser
2. click save to save the configuration (you don't have to actually change anything).

Thanks.

Martin

OscarL
2007-03-20, 06:54 AM
Sorry,
Same behaviour. That is; ok after exit emulation mode with Go-Back. Fails when power on/off.
Oscar

OscarL
2007-03-20, 07:10 AM
I think I was to quick, made some more tests, only with conwt (need to go to work, will test more tonight).
Anyway If server is on the behaviour is now

Ping
WOL
Waiting for server
Starts OKWIth server standby it is:


Ping
No respons
WOL
Attempt 1(10)
Attempt 2(10)
..
Fails (most of the time, sometimes Waiting for server and then OK)
So it seems as if the Save in the web interface did some change.

/Oscar

mvallevand
2007-03-20, 12:19 PM
I think I was to quick, made some more tests, only with conwt (need to go to work, will test more tonight).
Anyway If server is on the behaviour is now

Ping
WOL
Waiting for server
Starts OKWIth server standby it is:

[LIST=1]
Ping
No respons


Thanks again Oscar. A couple of points

- you only have to save from the browser once after a dongle load if that helps.

- I also noticed that your box may not respond to pings while in shutdown mode. If you confirm this that will make things even easier.

Martin

OscarL
2007-03-20, 01:00 PM
Martin,
Yes, my server does not seem to respond to pings when in standby.
So for me an ideal situation would be.

Ping
If respons
normal startup of emulation
If no respons
WOL
Wait xx seconds for startup
normal startup of emulation.

Thanks again
Oscar

mvallevand
2007-03-20, 07:01 PM
Martin,
Yes, my server does not seem to respond to pings when in standby.
So for me an ideal situation would be.

I've updated the alpha to use the ping and any remote key will stop the loops.

Martin

OscarL
2007-03-20, 09:25 PM
I only had time to do some limited testing but I am sorry to say that it seems to be some kind of sequence error when the server is in standby.
I get the following messages when entering emulation mode
Pinging
Sending WOL
No reply (or similar)
and then it exits back to main menu.

Is that correct?

/Oscar

mvallevand
2007-03-20, 09:44 PM
I only had time to do some limited testing but I am sorry to say that it seems to be some kind of sequence error when the server is in standby.
I get the following messages when entering emulation mode
Pinging
Sending WOL
No reply (or similar)
and then it exits back to main menu.

Is that correct?

It was correct the message was likely Not Found because I was timing out out of a second ping check too early. This has been updated for the next time you look. Sorry about that.

Martin

OscarL
2007-03-21, 08:07 PM
Sorry!
Now if the server is in standby I get
Pinging
Sending WOL

It then sits there with that message (sending WOL) forever (at least more than 1 min)
If I restart the MVP it will then start OK. I guess because the WOL woke it up and then it responds to the ping etc.
/Oscar

mvallevand
2007-03-21, 08:15 PM
Sorry!
Now if the server is in standby I get
Pinging
Sending WOL

It then sits there with that message (sending WOL) forever (at least more than 1 min)
If I restart the MVP it will then start OK. I guess because the WOL woke it up and then it responds to the ping etc.
/Oscar
I think the logic is supposed to try to ping every 5 seconds for a couple of minutes but I will check. You should also be able to hit any remote key to break the loop at any time, if you feel it has gone on too long.

Also I'm not sure if I told you there should be no need to save in the browser, the WOL information will survive power off (but not reboot).

Edit: OK, I had a look and there was a problem with pressing the remote with the --startup option because of general mvpmc issues, but I have created a workaround. Also the latest alpha has better visual display for the ping and the wait timers so you should be able to tell exactly where you are in the process.

Martin

Martin

OscarL
2007-03-22, 07:06 PM
Sorry to keep bothering you about this. But it would be a great feature to have WOL working properly as I have the server upstairs in the living room and 2 MVP downstairs for the kids.
Anyway I tested last alpha and I still do not get any delay after the WOL is sent if the server is off.
mvpmc sends ping
then WOL
and then immediately it says "no reply". There is no delay after the WOL until he checks for ping or any other connection. He just quits back to the mvpmc main screen.

Hope I am able to make this clear otherwise please ask and I try to get you a more detailed answer.

mvallevand
2007-03-22, 07:42 PM
Sorry to keep bothering you about this. But it would be a great feature to have WOL working properly as I have the server upstairs in the living room and 2 MVP downstairs for the kids.
Anyway I tested last alpha and I still do not get any delay after the WOL is sent if the server is off.
mvpmc sends ping
then WOL
and then immediately it says "no reply". There is no delay after the WOL until he checks for ping or any other connection. He just quits back to the mvpmc main screen.

Hope I am able to make this clear otherwise please ask and I try to get you a more detailed answer.

Could you confirm that you are running the March 22 mvpmc dongle. It is in the About screen on the main menu.

Also have you confirmed that the dongle.bin.config file is actually loading? You can do tell this if you see Connecting to first server or
Connecting to xx.xx.xx.xx ?

Martin

OscarL
2007-03-22, 07:55 PM
Yes, it is the March 22 dongle.
Also I am pretty sure that the dongle.bin.config is loading. I can see the ip number (192.168.0.8) when starting up. Also I am able to see different behaviour if I choose wolwt or conwt when the server is up. If I use conwt it will pause before starting the application if the server is up.

Thanks
Oscar

mvallevand
2007-03-22, 09:36 PM
Yes, it is the March 22 dongle.
Also I am pretty sure that the dongle.bin.config is loading. I can see the ip number (192.168.0.8) when starting up. Also I am able to see different behaviour if I choose wolwt or conwt when the server is up. If I use conwt it will pause before starting the application if the server is up.

Yes it was my embarrassingly stupid mistake. A new version is now available.

Martin

OscarL
2007-03-23, 08:45 PM
Have done some limited tests and it looks alright. I still have some problem when my box don't react to WOL but when that happends I can not wake it up from any other computer so I guess that is something else.
Anyway I think the MVP side of it works now. Thanks!!

/Oscar

OscarL
2007-03-25, 07:30 PM
This is realy strange. I thought that WOL was working with dongle from March 22 but now it does not work. The strange things is that the WOL sequence from within the emulation startup seems to hang the server in standby. This is how I tested it.
Turn server on
enter emulation mode
Starts nice and well.

Turn server to standby
Exit emulation mode Go-Back
Enter emulation mode (Pinging, Sending WOL, Ping test 1,2,3....)
No reply and back to mvpmc menu.

If I now telnet into the MVP and executes the /usr/bin/ether-wake command with my servers MAC adress it does not wake up the server.

If I instead manually wake up the server.
Enter emulation mode
Turn server into standby
Telnet into MVP and exexutes /usrbin/ether-wake xx:xx:xx:xx:xx
Now it turns on the server.

I have duplicated this many times and it is always like this. Entering emulation mode does not start server but seems to make server deaf for WOL.
On the other hand if I telnet into the MVP without trying to go into emulation mode before, then it is possible to wake the server with WOL.


I do not know how to trouble shoot this any further. Did give ethereal a try but can not see the WOL messages with that, maybe I am doing something stupid, don't know!

Sorry to bothering you about this again ;)

/Oscar

mvallevand
2007-03-25, 09:14 PM
I do not know how to trouble shoot this any further. Did give ethereal a try but can not see the WOL messages with that, maybe I am doing something stupid, don't know!

Sorry to bothering you about this again ;)

First of all it's not a bother.

The only way for me to tell is to see more of what is going on. I have uploaded a new file that should output everything necessary to your telnet window.

http://www.mvpmc.org/~mvallevand/mvpmc.zip



To use it,

- save the file in your mvpmc folder you made for loading the config file
- telnet to mvpmc
- issue the command
killall mvpmc
- issue the command
/etc/mvpmc/mvpmc "all your other startup option"

- try and start emulation.

(ctrl-c will kill this mvpmc).

Send me a screen capture. If you have trouble, I suggest using Putty as your telnet client.

Martin

OscarL
2007-03-26, 08:07 PM
I run your new binary. Enclosed is a session log from putty.
The log showes first a successful connection when the server is on.
Then it shows a failure when the server is awake. After that I quit mvpmc (ctrl-c) and executes ether-wake manually (no success).
The I start and stop the server and executes ether-wake again - works.

According to the log it looks as if mvpmc does the same as I do manually (do you use ether-wake by the way?)

So either something strange happends when the WOL is executed from inside mvpmc (to close in time to the ping or something) or something happens when the server goes to sleep.

/Oscar

OscarL
2007-03-26, 08:25 PM
Some more interesting tests.
Like this

Server is on
Start mvpmc from telnet window
Server off
Open second telnet window execute ether-wake - Does not wake
Turn server on and to standby again
Run ether-wake from second telnet client - works
Repeats 5-6 serveral times, works all the times.
Start server
Kill mvpmc and restart
Let server go to sleep
Try to wake it from second telnet client - does not work.
Turn server on and to standby
No I can wake it with ether-wake againConclusion After mvpmc has started and the server has gone to sleep with mvpmc in emulation mode I can not wake it up.

This gives you even more head ache or?

mvallevand
2007-03-26, 10:24 PM
1 Turn server on and to standby - Now I can wake it with ether-wake again
or
2After mvpmc has started and the server has gone to sleep with mvpmc in emulation mode I can not wake it up.

This gives you even more head ache or?

Actually no. Maybe the problem isn't really related to the mvpmc, it sounds more related to the fact the when gbpvr is running your pc isn't really going into proper sleep mode. This thread will provide some information.

http://forums.nextpvr.com/showthread.php?t=25609

Note on my machine WOL won't wake my machine from hibernate but it will from standby. Make sure what you do manually matches what is happening on the inactivity timeout in Windows.

Martin

OscarL
2007-03-27, 05:48 AM
In both cases I let the server go to sleep manually (me pressing the power switch). The difference is whether mvpmc is running in emulation mode on the mvp.
But I agree, the problem probably lies in my server. Something causes it to "sleep deeper" if it is communicating with mvpmc before it goes to sleep.

mvallevand
2007-03-27, 11:35 AM
In both cases I let the server go to sleep manually (me pressing the power switch). The difference is whether mvpmc is running in emulation mode on the mvp.
But I agree, the problem probably lies in my server. Something causes it to "sleep deeper" if it is communicating with mvpmc before it goes to sleep.

Sorry I can't think of too much more, I'm assuming you applied the patch in the thread I linked too earlier, I thought that would be it. The only other option (and I have not tested it) is to use something like this to do a remote shutdown.

http://gbpvr.com/pmwiki/pmwiki.php/Plugin/Shutdown

If you or anyone else has some suggestions let me know.

Martin

OscarL
2007-03-27, 12:24 PM
I will do some testing tonight. As you said the last problem I have seen must be connected to my server or maybe network. I have an idea that it can be connected to baudrate or duplex settings of NIC or switch. I am not sure how it is set since my last reinstall. Will check tonigh.
Anyway your last alpha seems great as regard to the general WOL function. I just have to figure out my specific problem.
Thansk for all the help.
Oscar

OscarL
2007-03-28, 06:56 PM
Some progress!!
After setting my NIC to 100 mb/s Full Duplex instead of auto negotiate the problem with the deaf server seems to be solved.

It works well now to wake up the server by just entering emulation mode again. However when powering on/off the mvp the server won't wake up on WOL. If I then telnet into the mvp I can wake the server by manually issuing the ether-wake command.
As far as I can see the browser.config contains the MAC adress of the server (00:13:d3:ad:47:3d) so I am not sure where the problem is.

I have enclosed the browser.config file if you wan't to take a look.

Thanks
Oscar

mvallevand
2007-03-28, 09:09 PM
I have enclosed the browser.config file if you wan't to take a look.


That file looks fine, what I really need now is the output from /etc/mvpmc/mvpmc The debug code that was in the oscar.zip file is now in the debug baseline code mvpmc.zip

Martin

OscarL
2007-03-29, 10:33 AM
Can you elaborate a little more about this test. Where can I find the mvpmc.zip.
I did try to run the mvpmc from oscar.zip, problem is that the I want to see what's happening when I power on/off the MVP. When I do that after starting mvpmc from telnet window, the mvpmc does not load again. Is that due to the telnet connection breaking up or?

EDIT, Found the location of the mvpmc.zip on your homepage. Question remains though how to log what's happening after I switch mvp on/off with the remote

Oscar

mvallevand
2007-03-29, 11:40 AM
Can you elaborate a little more about this test. Where can I find the mvpmc.zip.
I did try to run the mvpmc from oscar.zip, problem is that the I want to see what's happening when I power on/off the MVP. When I do that after starting mvpmc from telnet window, the mvpmc does not load again. Is that due to the telnet connection breaking up or?

EDIT, Found the location of the mvpmc.zip on your homepage. Question remains though how to log what's happening after I switch mvp on/off with the remote
Sorry I forget that I load mvpmc from my NAS. You would have to mount another machine and run this mvpmc from it so that mvpmc and telnet continue to run during the power off.

Martin

OscarL
2007-03-29, 12:53 PM
Ah, of course. Didn't think of that. What about what happends when I turn the MVP on/off will that work anyway?

mvallevand
2007-03-29, 01:58 PM
Ah, of course. Didn't think of that. What about what happends when I turn the MVP on/off will that work anyway? Yes, when you power off the MVP you still will be able to run mvpmc from a share.

It is best to think of mvpmc as a very robust shell to many other programs including emulation mode. When you hit the power off button, all these running programs are killed, but the mvpmc task continues to run. When you telnet to your mvp you can see all the processes that are running and when it is in power off state you see just the one.

Note that if you are starting mvpmc from telnet if you kill the machine that telnet is actually running on you could stop the mvpmc process depending on the client. This happens with putty but not with the windows telnet client.

Martin

OscarL
2007-03-29, 08:18 PM
Mounted /etc/mvpmc on another server (i.e not the gbpvr server but a server that is on 24/7). Started you debug mvpmc binary from that share and piped the output to a logfile there.

Now everything works well. I can power on/off the mvp and wake up the gbpvr server by that. Wake on lan seems to work everytime.

Why does it work now. What is the difference compared to run the latest alpha dongle from the gbpvr server?

/Oscar

mvallevand
2007-03-29, 09:43 PM
Mounted /etc/mvpmc on another server (i.e not the gbpvr server but a server that is on 24/7). Started you debug mvpmc binary from that share and piped the output to a logfile there.

Now everything works well. I can power on/off the mvp and wake up the gbpvr server by that. Wake on lan seems to work everytime.

Why does it work now. What is the difference compared to run the latest alpha dongle from the gbpvr server?
Don't you hate it when you go through all kinds of trouble and things works like they're supposed to? In any case there were two changes that could be related. One I do initialize the mac address from the browser.config so it will load before you ever go into emulation mode. If this fixed it then you might actually want to copy browser.config from your share by placing it in the mvpmc folder and adding this line to the beginning of dongle.bin.config

cp /etc/mvpmc/browser.config /etc

The other change related to specifying the network card (eth0 or eth1) for ping and ether-wake. The only way this would be a problem if you have the wireless mvp running in wired mode and there was a bug in the mvpmc startup.

I'm glad that it's working now.

Martin

anneb
2007-04-02, 06:46 PM
Hi,
I'd like to get the WOL working on my GBPVR server. I have the mvpmc dongle in the gbpvr server dongle folder and on switch on I get the Mvpmc menu's and can go into emulation mode. If my server is hibernating the mvp doesn't wake it at all.
I see mentions of dongle and browser config files but I can't find where they are supposed to be

I know its probably a dumb question but its got me stumped!

OscarL
2007-04-02, 07:04 PM
Hi,
When I was struggling to get wake on lan to work with GBPVR and mvpmc I found that it is quite useful to first determine whether I could wake up the server from any computer on the network.
There is a little utility called mc-wol that you can find here http://www.matcode.com/wol.htm where you send a wol command (magic packet) to your server.
You can also telnet into the mvp (loog in as root) and execute the command /usr/bin/ether-wake xx:xx:xx:xx:xx where xx... is the mac adress of your server.
By doing that you can determine whetherthe problem is with the mvp or your server.

Hope this helps
Oscar

mvallevand
2007-04-02, 07:23 PM
Hi,
I'd like to get the WOL working on my GBPVR server. I have the mvpmc dongle in the gbpvr server dongle folder and on switch on I get the Mvpmc menu's and can go into emulation mode. If my server is hibernating the mvp doesn't wake it at all.
I see mentions of dongle and browser config files but I can't find where they are supposed to be

I know its probably a dumb question but its got me stumped!

It's not a dumb question at all. This thread did get a bit complicated to follow.

I agree with OscarL's suggestion to make sure that you can wake the server up without using mvpmc, since this can be a big issue. Sometimes this is as simple as changing your pc's sleep mode ie from hibernate to standby, and sometimes it get into bios setting, so there is no simple answer. If you only have one pc one your network you might have to google for your motherboard, your NIC card with WOL to see if anyone else has done this already.

Once you have the proper WOL setting for your hardware, you don't need any special files to take advantage of WOL. mvpmc will still send the WOL packet to your NIC. You won't have the advantage of the ping test to see if the server has booted before trying to connect or the command line options to tweak it so the process is definitely more manual, you may have to try a couple of logins to figure out how your system reacts.

There are also two things I've never tried. WOL over a direct connect and over wireless.

Martin

anneb
2007-04-02, 07:55 PM
Hi

Thanks for the prompt reply. I can start the server from another pc using mc-wol and also by telnetting into the MVP but not from powering up the MVP normally

I have to put the MVP into emulate mode manually it just runs through the 30 attempts and drops back to the MVPMC menu

anneb
2007-04-02, 07:58 PM
I have 3 pc's in my network here at home, all upstairs remote from the MVP which is hard wired. I can wake the server from any pc and from the Mediapvr via telnet. but not from a normal switch on via remote

mvallevand
2007-04-02, 08:05 PM
I have 3 pc's in my network here at home, all upstairs remote from the MVP which is hard wired. I can wake the server from any pc and from the Mediapvr via telnet. but not from a normal switch on via remote
Rather then powering off, could you try to exit emulation with the Go Back key combination, power off the server and then go back to emulation mode. If that works, then could you confirm you are using the alpha version? The nightly and the 0.3.3 won't save the mac address during a power off.

Martin

anneb
2007-04-02, 08:13 PM
Hi,
I'm using Alpha dongle bin 2007-04-02

Did you mean you wanted me to power off the gbpvr server from the media player?

anneb
2007-04-02, 08:19 PM
sorry I realised what you wanted me to do after I replied to you.

Doing what you suggested worked, I didn't think it was going to as it was at 28 tries out of 30 when it connected.

Is there somewhere I can physically put the mac address in the MVP?

mvallevand
2007-04-02, 08:30 PM
sorry I realised what you wanted me to do after I replied to you.

Doing what you suggested worked, I didn't think it was going to as it was at 28 tries out of 30 when it connected.

Is there somewhere I can physically put the mac address in the MVP?

It is stored but obviously not properly. To save it until you next dongle.bin load, enter your mvp's IP address into browser Change the field contents for "MVP Server IP:" to the GBPVR IP (this will add the ping too), "Startup Item:" to Emulation if you want, and click Update Config. Powering off the remote should now do what you want.

Martin

anneb
2007-04-02, 09:54 PM
Hi Martin,

Can you give me step by step instructions for that, I haven't been able to find any config files for the dongle or browser

mvallevand
2007-04-02, 11:22 PM
Hi Martin,

Can you give me step by step instructions for that, I haven't been able to find any config files for the dongle or browser

I figured the easiest thing to do was fix the problem of not storing the mac address. The dongle has been updated.

The actual instructions for creating the share and saving the dongle.bin.config are on

http://mvpmc.wikispaces.com/Loadconfig

If you have questions on that please open a new thread.

Martin

anneb
2007-04-03, 01:58 PM
Hi,
is your updated dongle still dated 2007-04-02 thats the only one I can find on the mvpmc page. I still can't get the server to resume from the pvr though it works perfectly when using the instructions you gave me last night (come out of emulation mode and power down server then go back to emulation mode)
I have set up a share called mvpmc and copied the example dongle.bin.config file to it. All lines are commented out apart from one I added which you suggested to someone in an earlier post

mvpmc --startup emulate --emulate 192.16.1.1 --em-wolwt 40 &

Unfortunatley that doesn't work either

Sorry to be a pain!!!

mvallevand
2007-04-03, 02:22 PM
Hi,
is your updated dongle still dated 2007-04-02 thats the only one I can find on the mvpmc page.
I still can't get the server to resume from the pvr though it works perfectly when using the instructions you gave me last night (come out of emulation mode and power down server then go back to emulation mode)

Yes same date but if you check the About screen it should be Mon Apr 2 19:10:57 EDT 2007


I have set up a share called mvpmc and copied the example dongle.bin.config file to it. All lines are commented out apart from one I added which you suggested to someone in an earlier post

mvpmc --startup emulate --emulate 192.16.1.1 --em-wolwt 40 &

Unfortunatley that doesn't work either

Sorry to be a pain!!!

The most important thing about setting up the share is following Step 2 on the wiki. You can confirm you have done this by telnetting to your mvp and issuing the following command

cat /etc/tftp.config

If you don't see your server IP the share won't load.

Also based on what you said yesterday that em-wolwt of forty seconds seems high, that is the time from when your machine can be pinged to the time gbpvr is ready.

Martin

anneb
2007-04-03, 02:55 PM
Hi Martin

Ok when telnetting and sending command cat /etc/tftp.config
I'm getting
tftp=192.168.10.19 which is the ip address of the server.

i'll reduce the em-wolwt to 20 seconds and try that

mvallevand
2007-04-03, 03:08 PM
Hi Martin

Ok when telnetting and sending command cat /etc/tftp.config
I'm getting
tftp=192.168.10.19 which is the ip address of the server.



Ok that's a good sign, the next test is to see if the share mounted and here is the telnet command to test that

ls /etc/mvpmc

You should see dongle.bin.config, if not your share didn't work. To continue testing from telnet try this

mount.cifs //192.168.10.18/mvpmc /etc/mvpmc -o username=guess,password=guest,ro

If that gives an error you need to work on the pc end of your share until that command works.

Note that some people complain about opening the guest account on there PC but that will not be necessary. This is guest file share which is completely different.


i'll reduce the em-wolwt to 20 seconds and try that

Reducing the time won't help the wol problem it just will be less of a forced wait.

Martin

anneb
2007-04-03, 04:11 PM
Hi Martin,

I'm getting permission denied when I try etc/mvpmc

and mount.cifs //192.168.10.18/mvpmc /etc/mvpmc -o username=guess,password=guest,ro
not found

The mvpmc folder is shared though .. admin has write facilities others have read

I'll go through it again later and see where I have gone wrong

Regards

mvallevand
2007-04-03, 04:30 PM
Hi Martin,

I'm getting permission denied when I try etc/mvpmc

The command is actually ls /etc/mvpmc you probably forgot the ls (which is the linux dir command).



and mount.cifs //192.168.10.18/mvpmc /etc/mvpmc -o username=guess,password=guest,ro
not found

That's probably a typo somewhere on mount.cifs I made a typo too since your ip is .19 not 18. Also when I checked for this, your dongle.bin.config needs to have --emulate 192.16.10.19 to match too.

Martin

anneb
2007-04-04, 02:51 PM
Hi Martin,

Ok when I do a telnet into the MVP and cat /etc/tftp.config I get
tftp=192.168.10.17 (which is correct)

Then when I do ls /etc/mvpmc it pauses for a second and gives me the prompt again #
same happens when I do the mount cifs command

I only have one line in the dongle.bin.config file which is

mvpmc --startup emulate --emulate 192.16.10.17 --em-wolwt 30 &

Do I need anything else in there? when I power up the pvr it doesn't startup in emulate mode I have to drop down the menu list to get there

mvallevand
2007-04-04, 03:00 PM
Hi Martin,

Ok when I do a telnet into the MVP and cat /etc/tftp.config I get
tftp=192.168.10.17 (which is correct)

Good.



Then when I do ls /etc/mvpmc it pauses for a second and gives me the prompt again #
same happens when I do the mount cifs command


That sounds like your share is working, you should try the ls command again, your dongle.bin.config file should be there




I only have one line in the dongle.bin.config file which is

mvpmc --startup emulate --emulate 192.16.10.17 --em-wolwt 30 &


That looks fine too as long as you are running the alpha.



Do I need anything else in there? when I power up the pvr it doesn't startup in emulate mode I have to drop down the menu list to get there

Loading a new dongle.bin.config isn't via the power button, you would need to unplug it and load the dongle.bin file again too.

Martin.

anneb
2007-04-04, 05:56 PM
Hi Martin,

When I do the Ls command its showing the mvpmc folder as empty, the config file is in the etc dir. I did a reboot and it brings up the mvpmc screen but going into emulation mode just runs through the trying to connect to server and then drops me back to the menu

The shared directory "mvpmc" is in the c directory and according to windows is shared. I set it up using the shrpubw command and set shares to admin write and others read as per intstructions, in that folder is the dongle.bin.config file with one line
mvpmc --startup emulate --emulate 192.16.10.17 --em-wolwt 30 &

but it still wont kick the server into life

mvallevand
2007-04-04, 06:52 PM
Hi Martin,

When I do the Ls command its showing the mvpmc folder as empty, the config file is in the etc dir. I did a reboot and it brings up the mvpmc screen but going into emulation mode just runs through the trying to connect to server and then drops me back to the menu

This sounds like you shutdown your gbpvr machine after loading the dongle but before running emulation mode.




The shared directory "mvpmc" is in the c directory and according to windows is shared. I set it up using the shrpubw command and set shares to admin write and others read as per intstructions, in that folder is the dongle.bin.config file with one line
mvpmc --startup emulate --emulate 192.16.10.17 --em-wolwt 30 &

but it still wont kick the server into life

1) I'm a bit confused what the ip address of your gbpvr server is, you are now showing a forth different address. If it changes because you use dhcp you have to use the option --emulate ?

2) If you telnet to your mvp issue this command (I will assume you are on a 192.168.10 subnet).

nbtscan -r 192.168.10.0/24

It should show the pc's with windows shares available to you. If your gbpvr machine doesn't show up it is possible you haven't enable netbios over tcpip in your advanced tcp/ip settings or you have some firewall preventing access.

3) From the Command prompt on your gbpvr machine type this

net share

Do you see output with something like this?

Share name Resource Remark
------------------------------------------------
movies C:\movies
mvpmc c:\mvpmc

The command completed successfully.

Martin

anneb
2007-04-04, 07:22 PM
Change of ip address is due to a change of pc, I was going to change to this machine anyway and it seemed a bit silly to get this all set up and have to change it again. so the ip address is 192.168.10.17
I ran net share and c:\mvpmc is showing

I ran nbtscan and this pc shows on that too

I'll reboot the mvp again when I get a chance but there will be a mutiny if I interupt tv again tonight

Are you saying that I need to reboot the mvp and go through all the set up screens and go into emulation mode before I let the gbpvr hibernate?

mvallevand
2007-04-04, 11:15 PM
Change of ip address is due to a change of pc, I was going to change to this machine anyway and it seemed a bit silly to get this all set up and have to change it again. so the ip address is 192.168.10.17
I ran net share and c:\mvpmc is showing

I ran nbtscan and this pc shows on that too

I'll reboot the mvp again when I get a chance but there will be a mutiny if I interupt tv again tonight

Are you saying that I need to reboot the mvp and go through all the set up screens and go into emulation mode before I let the gbpvr hibernate?

Yes you must go into gbpvr once to get the mac address. That should be fairly automatic with a --startup emulate anyway.

As for your guest account there's also the cacls command, check yours, it should how output something like

C:\mvpmc\dongle.bin.config Guest:R
BUILTIN\Administrators:F
NT AUTHORITY\SYSTEM:F
XPHOME\Martin:F
BUILTIN\Users:R

If is isn't then you might need to modify the ACL using this as an example
cacls dongle.bin.config /E /G Guest:R

I recommend reading about the calcls command before using it.

Also a good Microsoft KB article might help

http://support.microsoft.com/default.aspx?scid=kb;en-us;304040

Sorry I can't help much more than this. If this all fails maybe someone else can add something.

Martin

anneb
2007-04-05, 07:22 AM
Ok Martin,

I'll give that a try later. Thanks for your help and patience