View Full Version : Launching application after USB-UIRT wake-up from S3

April 27th, 2006, 09:30 AM
I configured my USBUIRT to wake up my PC from S3. However, I would like to be able to automatically launch Media Portal when I wake my PC using the USBUIRT.

Currently I do not run Media Portal all the time but I do have Girder always running and I also keep my PC in S3 when not in use. When my Harmony remote turns on my "Watch Media Portal" activity it sends an IR signal to my PC which is interpreted as follows depending on the state of the PC:
- If the PC is on, Girder changes out put to TV and turns on Media Portal
- If the PC is sleeping (S3), USBUIRT wakes the PC using a wake up code. Then I manually have to launch Media Portal with the same IR code.

I would like to take this further by making sure that when I wake the PC using the USBUIRT Media Portal also gets launched. On MCE PCs the Start button on the remote not only wakes up the PC but also turns on the MCE application, and I'd like to emulate that functionality. How does MCE do it? Does the remote send another code to launch MCE after giving the PC enough time to wake up? I could do that but I'd prefer to just do everything with one code, since adding a delay ties up the remote and I have to keep it pointed the whole time, can't lower volume etc.

Note: I also use this PC for regular PC stuff, so if possible I don't want to always launch Media Portal whenever I wake up from S3. Therefore it would be great if I could find a way to only launch this application if the PC was woken up using the USBUIRT, not if it was woken up using the power button. Again, I wonder how MCE does this.

April 27th, 2006, 10:04 AM
There is no way (I know of) to determine what event woke up the PC.

April 27th, 2006, 12:15 PM
Is there any way to launch a program on wake up?

April 27th, 2006, 12:31 PM
yes, there are the onresume events