How to keep server alive?? (1 Viewer)

light

Portal Member
February 1, 2007
5
0
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? :D

Best regards Light
 

SciDoctor

Retired Team Member
  • Premium Supporter
  • February 2, 2005
    1,465
    139
    England
    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?
     

    light

    Portal Member
    February 1, 2007
    5
    0
    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
     

    Gixxer

    Retired Team Member
  • Premium Supporter
  • August 18, 2007
    1,383
    41
    40
    Spain
    Home Country
    Spain Spain
    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.
     

    light

    Portal Member
    February 1, 2007
    5
    0
    Can anyone help me how to get/make this fake alive signal to the server?

    Best regards Light
     

    mts

    Portal Pro
    September 2, 2007
    317
    25
    Home Country
    Germany Germany
    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.
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    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.
     

    keegan

    Portal Member
    August 23, 2007
    10
    0
    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.
     

    light

    Portal Member
    February 1, 2007
    5
    0
    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
     

    keegan

    Portal Member
    August 23, 2007
    10
    0
    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?
     

    Users who are viewing this thread

    Top Bottom