Ongoing Remote is dead after stand by/hibernate (1 Viewer)

skoov

Portal Member
September 15, 2006
23
0
Derbyshire
Home Country
United Kingdom United Kingdom
Hi

I've got a problem with my setup and I can't find anything with the search. I've got 2 Hauppauge cards, a HVR1300 and a Nova-T.

I've got power scheduler enabled and when it resumes from standby/hibernate my remote doesn't work. I have to quit Media Portal and restart my IR software and then MP again.

I've just bought a Silverstone LaScala LC16m which comes with the Imon remote thing. That also has the same problem.

Do I need to set my USB so it doesn't power down or is there something I'm missing?
I can power my PC on with the Imon remote but then it's dead when it comes back into windows.

Cheers
 

skoov

Portal Member
September 15, 2006
23
0
Derbyshire
Home Country
United Kingdom United Kingdom
Well I managed to develop a workaround solution for this problem using a VB script. :D

Let me know if you run into this problem too and I can share the solution.
 

skoov

Portal Member
September 15, 2006
23
0
Derbyshire
Home Country
United Kingdom United Kingdom
Alright then, when I get home I'll post up the script :)

It basically runs in the background and kills the IMON.exe process (but you could change this to whatever you need 'killing') when it detects a standby/hibernate call and then when it wakes up it fires it up again. It works great for me!
I got the idea from a script used in my carPC that does the same kind of thing with winamp.

Cheers
 

Marcusb

Retired Team Member
  • Premium Supporter
  • February 16, 2005
    1,995
    29
    Melbourne
    the initial problem was probably due to windows shutting down the remote. Most people find the best option is to leave these devices turned on (the remote, not the PC).
    In hardware settings, uncheck the option to "Allow Windows to shut this hardware down to save energy". Also, look for a jumper on your motherboard to set the USB power to either 5v or 5vSB. Make sure it is set to SB.
    The other bernefit is that these devices will be able to wake up your PC as well (as long as they have a power button).
     

    skoov

    Portal Member
    September 15, 2006
    23
    0
    Derbyshire
    Home Country
    United Kingdom United Kingdom
    I don't think it's the problem in my case because I can still power the PC on via the remote. It just doesn't seem to work again in windows.
    I tried setting them not to power down in device manager, but that didn't help either :(

    I'm happy with this solution though, as it seems to work and it's not intrusive.
     

    skoov

    Portal Member
    September 15, 2006
    23
    0
    Derbyshire
    Home Country
    United Kingdom United Kingdom
    Here's the script then

    Save this into a file with '.vbs' extension and then run. You can create a shortcut in your 'start up' folder to run each time windows runs.

    Enter any commands you want to run when the computer is suspending/hibernating in the 'case 4' section. The command taskkill is available as standard in XP Pro, but not in XP Home.

    Any commands when resuming go into the 'case 7' and 'case 18' sections. Depending on how the system is 'told to resume' depends which of these two cases occur, see http://www.microsoft.com/technet/scriptcenter/guide/sas_cpm_ksrm.mspx?mfr=true for more details.

    Code:
    Set colMonitoredEvents = GetObject("winmgmts:").ExecNotificationQuery("Select * from Win32_PowerManagementEvent") 
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Do
    	Set strLatestEvent = colMonitoredEvents.NextEvent
    	Select Case strLatestEvent.EventType
    	
    		case 4
    		' Entering Suspend. uses the XP command taskkill to end a process.
    
    		WshShell.Run "d:\tools\taskkill /F /IM imon.exe", 0
    		
    		case 7
    		' Resume from Suspend. Indicates that a ResumeSuspend message has been sent, enabling the computer to return to its regular power state.
    		WshShell.Run "C:\Progra~1\SOUNDG~1\iMON\iMON.exe", 0
    	
    		case 18
    		'Resume Automatic. Indicates that the computer has awakened in response to an event. 
    		WshShell.Run "C:\Progra~1\SOUNDG~1\iMON\iMON.exe", 0
    		
    	End Select
    Loop

    Cheers
    Skoov
     

    sbp

    Portal Pro
    August 10, 2006
    192
    1
    Auning
    Home Country
    Denmark Denmark
    Hi Skoov

    Thank you for the script. I have a similar problem as you have, often the remote does not work after resuming. I'm using the reomte that came with my PVR150 Hauppauge card, which is natively supported by MP, therefore there is no IR driver to kill and restart.
    My problem is solved if I kill MP and restart it, therefore I wanted to change your script to do that. But I have a little problem - I can get it to kill MP after resuming, but I get an error when trying to start MP (I think it has something to do with the path to the mediaportal.exe)

    Could you please advice me - how to set this up?

    Thank you
    Steen

    restartMP.vbs=
    MY script:
    Set colMonitoredEvents = GetObject("winmgmts:").ExecNotificationQuery("Select * from Win32_PowerManagementEvent")
    Set WshShell = WScript.CreateObject("WScript.Shell")
    Do
    Set strLatestEvent = colMonitoredEvents.NextEvent
    Select Case strLatestEvent.EventType

    case 4
    ' Entering Suspend. uses the XP command taskkill to end a process.


    case 7
    ' Resume from Suspend. Indicates that a ResumeSuspend message has been sent, enabling the computer to return to its regular power state.
    WshShell.Run "c:\windows\system32\taskkill /F /IM Mediaportal.exe", 0
    WshShell.Run "C:\Progra~1\Team~1\MediaP~1\MediaPortal.exe", 0

    case 18
    'Resume Automatic. Indicates that the computer has awakened in response to an event.
    WshShell.Run "c:\windows\system32\taskkill /F /IM MediaPortal.exe", 0
    WshShell.Run "C:\Progra~1\Team~1\MediaP~1\MediaPortal.exe", 0

    End Select
    Loop



    My translation from Danish to english of the error:
    Script: C\documents and settings\steen\menuen start\programmer\start\restartMP.vbs
    Line: 19
    Char: 3
    Error: The chosen (indicated?) file was not found
    Code: 80070002
    Source: (Null)
     

    skoov

    Portal Member
    September 15, 2006
    23
    0
    Derbyshire
    Home Country
    United Kingdom United Kingdom
    Hi sbp,

    I think you need to add 'me' in your path so it should read:
    WshShell.Run "C:\Progra~1\Teamme~1\MediaP~1\MediaPortal.exe", 0

    See if that helps.
     

    sbp

    Portal Pro
    August 10, 2006
    192
    1
    Auning
    Home Country
    Denmark Denmark
    Thank you I will try that. I didn't include it because there actually is an empty space in the dir name "Team Mediaportal"

    But I'll give it a try.
    Steen
     

    Users who are viewing this thread


    Write your reply...
    Top Bottom