MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server 1 » General Talk


General Talk Talk about the MediaPortal TV-Server

Reply
 
Thread Tools Display Modes
Old 2008-03-18, 08:14   #1 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts


Lightbulb How to keep server alive??

I run the TVserver and a client setup. The server is also used for other stuff like backup and ftp. I would like to have a small tool to keep the server alive, sort of like faking I have started the client. This would make the server pc much more versatile.

So the basic idea is to have a small stand alone script running on the client PC that fake the alive signal from the MP client, but without the MP client have to be running.

Can anyone do that, or can I do it myself?

Best regards Light
light is offline   Reply With Quote
Old 2008-03-18, 08:34   #2 (permalink)
Portal Tester
 
Join Date: Feb 2005
Location: England
Posts: 1,035
Thanks: 5
Thanked 8 Times in 8 Posts

My System

Default

What do you mean by 'always alive' as unless you setup the TVSERVER otherwise it will always be running?

Run the powerschedular plugin in SETUPTV then from the config tab choose an 'exe' that is always running,

The TVSERVER will never stop unless it has an odd bug.


Or run the excellent MP TV Client - MediaPortal Forum


OR Are you wanting timeshifting without a client attached?

Can you expand on your request?
SciDoctor is offline   Reply With Quote
Old 2008-03-21, 12:18   #3 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts


Default

pc1. is running the TV server. TV server is setup to hibernate after 5 min. FTP/HTTP/UPNP server also running here.
pc2. is running the MP client.
pc3. is just another pc.

pc1 is hibernated most of the time in order to save power. When I want to watch TV I wake it up using WOL. Which works ok. I have other stuff on pc1 like ftp, upnp server http server and stuff like that. I would like to be able to keep pc1 alive from pc2 or pc3 simply by using a fake alive signal like the one the client is sending to the server. And I would like pc1 to hibernate when I stop sending the fake signal from pc2 or pc3.

P.S. I didn't write "always alive".

Best regards Light
light is offline   Reply With Quote
Old 2008-03-22, 22:37   #4 (permalink)
Portal Member
 
Gixxer's Avatar
 
Join Date: Aug 2007
Age: 24
Posts: 437
Thanks: 18
Thanked 4 Times in 4 Posts

Country:

My System

Default

u can use any wake on lan program or website and use that to wake up the server pc. then after 5 min of inactivity it will enter suspend mode again.
Gixxer is offline   Reply With Quote
Old 2008-04-01, 14:58   #5 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Can anyone help me how to get/make this fake alive signal to the server?

Best regards Light
light is offline   Reply With Quote
Old 2008-04-17, 09:17   #6 (permalink)
mts
Portal Member
 
Join Date: Sep 2007
Posts: 149
Thanks: 0
Thanked 0 Times in 0 Posts

Country:


Default

Ok, if I understand correct, you don't want an allive-signal, you want to prevent you server from hibernating when you are watching TV!

I have no idea how it can resolved easyly.

I would recommend the following:
make a little program that sends a message via LAN to you server in a short intervall. On the server you will need a tool that receives this message and sends an alive signal to windows.
mts is offline   Reply With Quote
Old 2008-04-17, 11:26   #7 (permalink)
Super Moderator
 
Paranoid Delusion's Avatar
 
Join Date: Jun 2005
Location: Cheshire UK
Posts: 5,883
Thanks: 103
Thanked 178 Times in 160 Posts

Country:

My System

Default

Set the powerscheduler client plugin to only work in home screen, and go to anywhere but this, then minimise MP, will keep server alive.

Why have something else that may screw up your setup involved.
Paranoid Delusion is online now   Reply With Quote
Old 2008-04-17, 13:53   #8 (permalink)
Portal Member
 
Join Date: Aug 2007
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts


Default

you would need to create a little application that listens for the WM_POWERBROADCAST events and if one is received from the system to prevent this occuring;

WM_POWERBROADCAST Message (Windows)

I would suggest a simple app that listens for a connection on a certain port and if present then acts as above. This would indicate a client is connected and that the machine should not sleep. If no machine is connected it can sleep as normal.

Still, I would say this is all overkill. As recommended just change your power settings to prevent hibernation.
keegan is offline   Reply With Quote
Old 2008-04-22, 13:24   #9 (permalink)
Portal Member
 
Join Date: Feb 2007
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts


Default

The whole idea is to let the server be self contained. Hence I would like it to go into hibernate except when I start one of the client machines. I would like it to be possible to keep the server alive without having to remotely log into the MP server PC, or having to disable the hibernate on the server PC. And I would like it to work without having to startup the MP client.

It must be possible to start a small app on the client pc (without running the MP client) which will keep the server PC alive and prevent it from hibernating.

I would like to be able to use this PC (MP server PC) for other usage than MP server.

I would like:
1. Server PC should wake on lan. (This is allready working.)
2. Server PC should stay out of hibernating as long as my client PC is running. This should be achieved without MP client running either. (This is not working yet)

What signal is sent from MP client to keep MP server alive? What is the mechanism to prevent the server from hibernating when a MP client is using the TV service? I want to do the same thing but from a small app. running on my client PC.

Best regards Light
light is offline   Reply With Quote
Old 2008-04-22, 14:54   #10 (permalink)
Portal Member
 
Join Date: Aug 2007
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts


Default

There is no easy answer however you have been presented with a number of choices. I would suggest you review them and decide for yourself. It is possible to start a simple app to keep the server running however you may need to write it yourself and this will require comminucations between the two machines. I would suggest you research creating a simple windows service and a tray application for each client. If the service running on the tv server detects a connection from one of the clients then it will prevent hibernation. If no connections are detected it can hibernate as normal.

I would suggest you are over complicating this a little, why is disabling hibernation not an option for you?
keegan is offline   Reply With Quote
Reply

Bookmarks

Tags
alive, server

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't enter Mediaportal TV Server Configuration after adding Slave Server Arn01805 pre 1.0 RC1 62 2008-03-25 09:31
TV-Server 3 Client verbindet sich nicht mit dem Server Netzdiver Media Portal - Support 13 2007-01-05 12:27
Keep-Alive between client and server. joboehl Improvement Suggestions 8 2006-11-17 04:25
It's Alive... chili OffTopic 4 2006-08-25 09:34


All times are GMT +1. The time now is 14:57.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress