PowerScheduler issues with Vista (Mantis 1092 and 1183) (1 Viewer)

MPUserFromGER

MP Donator
  • Premium Supporter
  • July 31, 2006
    403
    3
    Germany
    Home Country
    Germany Germany
    TV-Server Version: SVN 18584 (08.04.2008)
    MediaPortal Version: 0.2.3 final with SVN 18584 (08.04.2008)
    MediaPortal Skin: Xface 1.4
    Windows Version: Windows Vista Ultimate 32bit with SP1
    CPU Type: AMD Athlon X2 BE-2350 (AM2)
    HDD: Samsung 750GB + HAMA SSD 4GB (timeshifting)
    Memory: 2GB DDR
    Motherboard: MSI K9N SLI Platinum
    Motherboard Chipset: nForce 570
    Motherboard Bios: Award
    Video Card: Gigabyte Radeon 2600XT
    Video Card Driver: Catalyst V8.3
    Sound Card: Realtek (On-Board)
    Sound Card AC3: AC3 / optical SPDIF out
    Sound Card Driver:
    1. TV Card: Technotrend S2-3200
    1. TV Card Type: DVB-S and DVB-S2
    1. TV Card Driver: 5.0.0.12
    2. TV Card:
    2. TV Card Type:
    2. TV Card Driver:
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: Cyberlink PowerDVD 7.3 codecs
    MPEG2 Audio Codec: Dscaler Audio codec
    Satelite/CableTV Provider: Astra 19.2 E
    HTPC Case: Ahanix MCE 601
    Cooling: power supply fan, CPU boxed cooler, 2 housing fans (all controlled by SpeedFan)
    Power Supply: Ahanix
    Remote: Logitech Harmony 555
    TV: Samsung LCD 32"
    TV - HTPC Connection: DVI to HDMI

    The power management in Vista differs a lot from the power management in XP.
    This has not really been considered yet in PowerScheduler. As a result, several issue are occuring, e.g.
    - Mantis 0001092: VISTA: Power-Off button on remote hibernates even when recording is active
    - Mantis 0001183: TV Server kick comp to hib after long time "editing" in TV Setup

    I can reproduce both of them and find them quite annyoing. In my optining they should be fixed before RC1 of TVE3.
    devs: Please advise, what exactly you need from me in order to fix these issues. I am more than happy to assist you.

    Regarding the Vista power management:
    User MoPhat has already explained the differences very well here:
    http://www.pvr-scheduler.de/Forums/viewtopic/t=860.html

    However it seems that nobody has taken this challenge yet, neither for PVR Scheduler nor for PowerScheduler.
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    Hi MPUserFromGER, thats the last issue thats boring my mediaportal setup:mad:

    I dont know the scheduler classes from mp and so i canat make any patch for this...

    i hope any dev from tvserver can check the docs from microsoft to implement this :D

    In the meantime we go back to the home screen bevore we put the system to standby...

    MoPhat
     

    markuspop

    Portal Member
    March 26, 2008
    24
    0
    Home Country
    Germany Germany
    Hello,
    I have installed MP 1.0 RC1 (single seat) and I am also experiencing a wake up problem under Vista Ultmate.
    The Power Scheduler is configured in the TVServer setup. No Power scheduling is configured in the MP client, since I thought activating power scheduling in both parts does not make sense.
    So the server should wake up the machine, do its recordings and go back to sleep, but it does NOT wake up.

    So my question is how do I configure the power scheduling with MP 1.0, RC1 in the correct way ??

    If it still does not work after I know this, I will go for collecting error logs.

    Thanks,
    Markus
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    If you start your remote client, does Mediaportal wake up your TVServer then, just trying to see if there is anything inheritantly wrong with your standby setup.

    No rocket science in setting up powerscheduler, pretty much explanatory in the config which you cannot even see\configure without it being enabled.

    If the recording is showing under the scheduled (does it) it should work, has you set the pre awake times, mines 120 secs, which is more than enough to make sure system awake prior to the 2 min pre record time.

    Chances are if it don't work, logs will be needed.
     

    djbutnot

    Portal Member
    January 20, 2008
    7
    0
    I'm using MP RC1 and using PowerScheduler with TVE3 and MP(Client plugin). I had it set up under XP where it would shut down after 10 minutes of inactivity completely as my MP machine doubles as my main computer

    I'm trying the same thing under Vista and it seems to completely ignore if I'm using the computer, it just suspends! And I've also experienced the problem with me accidentally hitting the power button on my way out during a recording only for the machine to shut down.

    Surprised this hasn't been fixed sooner as all your videos involved Vista! How could this have slipped through?
     

    Paranoid Delusion

    Moderation Manager
  • Premium Supporter
  • June 13, 2005
    13,062
    2,978
    Cheshire
    Home Country
    United Kingdom United Kingdom
    it would shut down after 10 minutes of inactivity completely

    works xp does not work vista, as in vista mouse\keyboard use is not recognised and the devs that do this plugin, do not have vista to test with :(
     

    MoPhat

    Retired Team Member
  • Premium Supporter
  • June 17, 2007
    816
    226
    Berg
    Home Country
    Switzerland Switzerland
    Hi, i have now tryed some combinations and found one working solution, i send this Bavarian too:

    Code:
    using System;
    using System.Windows.Forms;
    using System.Runtime.InteropServices;
    
    namespace PowerApp
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
            }
    
            [DllImport("Kernel32.dll", EntryPoint = "SetThreadExecutionState", CharSet = CharSet.Auto, SetLastError = true)]
            private extern static EXECUTION_STATE SetThreadExecutionState(EXECUTION_STATE state);
    
            [Flags]
            public enum EXECUTION_STATE : uint
            {
                ES_AWAYMODE_REQUIRED = 0x00000040,
                ES_CONTINUOUS = 0x80000000,
                ES_DISPLAY_REQUIRED = 0x00000002,
                ES_SYSTEM_REQUIRED = 0x00000001,
                ES_USER_PRESENT = 0x00000004
             }
    
            private void Form1_Load(object sender, EventArgs e)
            {
    
                try
                {
                    SetThreadExecutionState(EXECUTION_STATE.ES_CONTINUOUS | EXECUTION_STATE.ES_SYSTEM_REQUIRED | EXECUTION_STATE.ES_AWAYMODE_REQUIRED);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
                
            }
        }
    }

    The only thing is that in the windows power settings should disabled that a password is needed for recovery...

    :D
     

    Users who are viewing this thread

    Top Bottom