Sleep/Standy issue for single seat setup (1 Viewer)

mycrow

Portal Member
July 17, 2006
43
0
Berlin
TV-Server Version: latest SVN
MediaPortal Version: latest SVN
MediaPortal Skin: Replicant
Windows Version: XP SP2 + updates
CPU Type: Athlon64 3700+
HDD: Samsung 250GB
Memory: 1 GB DDR400
Motherboard: AsRock dual VSTA
Motherboard Chipset: ALI M1563
Motherboard Bios:
Video Card: Asus EN7600GS silent
Video Card Driver: latest Nvidia
Sound Card: onboard
Sound Card AC3:
Sound Card Driver:
1. TV Card: DNTV Live! Tiny USB2
1. TV Card Type: DVB-T
1. TV Card Driver: 1.6.1
MPEG2 Video Codec: Nvidia Purevideo
MPEG2 Audio Codec: ffdshow
HTPC Case: Arctic Cooling T1
Cooling: Coolermaster HyperTX
Power Supply: Arctic Cooling 340W
Remote: Logitech Harmony 555


Using the new TVEngine since yesterday and i love it !! :D
Unfortunately i am not able to put the computer to standby while TV is running.

I'm aware it's probably not a bug but a feature. Standy is prevented by the server
when streams are active.
But can I switch this feature off or even better:
Have the option of allowing standby while watching tv but not while recording ?
I had a look at the settings in the TVE setup and the powerscheduler but no luck.

I think in a single seat environment, it should be possible to put the computer to standby while tv is running.
At the moment, I have to quit Mediaportal, wait for the server to go idle and then put the machine to standby.

Any solution that i've missed ?
 

bobbyd87

Portal Pro
January 28, 2007
61
5
Home Country
United States of America United States of America
bump... i'm having this issue too, it was extremely nice when TV .2 would go into standby when the TV is running.
 

styriaman

Portal Pro
September 13, 2004
74
2
Austria/Styria
Hi,

I had this problem in the TV engine 3.0 too. I personally have changed the following routine in TVController to ...

public bool CanSuspend
{
get
{
//Log.Debug("TVController.CanSuspend: checking cards");

User user = new User();
Dictionary<int, ITvCardHandler>.Enumerator enumer = _cards.GetEnumerator();
while (enumer.MoveNext())
{
int cardId = enumer.Current.Key;
User[] users = _cards[cardId].Users.GetUsers();
if (users != null)
{
for (int i = 0; i < users.Length; ++i)
{
if (_cards[cardId].Recorder.IsRecording(ref users))
{
Log.Debug("TVController.CanSuspend: Recording of user {0} is running -> cannot suspend", users.Name);
return false;
}
if ( _cards[cardId].TimeShifter.IsTimeShifting(ref users) && users.Name != user.Name)
{
Log.Debug("TVController.CanSuspend: User {0} has timeshift running -> cannot suspend", users.Name);
return false;
}
}
}
}

.
.
.


this allows for me in a single seat setup to go standby if TV is running. Maybe there are some drawbacks - maybe a developer can check the code.


Regards

Joe
 

joystick

MP Donator
  • Premium Supporter
  • January 26, 2006
    892
    39
    Home Country
    Germany Germany
    hm, I don't get the point, where is the advantage of going to standby (automatically) with TV running?

    I mean, if you tell MP to go to sleep after 10 min. when your watching TV doesn't seem to make sense to me. Except you actually need a "sleeptimer", which is something different.
    MP goes to standby in Homescreen (!) after the time set in Powerscheduler.

    cheers

    joystick
     

    bobbyd87

    Portal Pro
    January 28, 2007
    61
    5
    Home Country
    United States of America United States of America
    The issue here is that TVServer 3 prevents you from hitting the Sleep/Suspend button on both your keyboard and remote while it is streaming. This is particularly an issue for single seat setups when you are pretty much done watching tv and want to hit the sleep button to turn off the computer like you were able to do with myTV .2. Instead you have to quit to the home screen, then manually stop the TVstream, then after a few seconds you can power down. Quite a few more steps on a process that was as easy as hitting the power button on your remote before.
    hm, I don't get the point, where is the advantage of going to standby (automatically) with TV running?

    I mean, if you tell MP to go to sleep after 10 min. when your watching TV doesn't seem to make sense to me. Except you actually need a "sleeptimer", which is something different.
    MP goes to standby in Homescreen (!) after the time set in Powerscheduler.

    cheers

    joystick
     

    tatus

    Portal Pro
    March 12, 2007
    98
    2
    Home Country
    Germany Germany
    Hi there!

    I am having the same problem (cannot turn off resp. suspend my HTPC via my remote's sleep button using TvServer single-seat). As an intermediate solution, I have written a small app that on "suspend" 1) terminates client 2) stops TvService 3) kills TvService. After resume, it does everything reverse.

    I am still waiting for this issue fixed in TvServer, since this way I cannot let the machine wake up for pending recordings... Please help!
     

    wimpies

    Portal Member
    October 2, 2006
    19
    0
    Home Country
    Belgium Belgium
    Hi, This is what I did: Configure the Power-button of your remote to switch to the homescreen, and then use the <normal> powerscheduler.
     

    Users who are viewing this thread

    Top Bottom