2008-08-16, 04:12 PM
After considerable time spend I believe I have a workable use case for the standby button on the MCE remote.
The idea is simple.
When the PVR/TV/Amplifier are in standby you press once and voila, on go the PVR/TV/Receiver
When everything is on and you press again the standby button on the MCE remote the PVR/TV/Amplifier all go to standby unless the PVR is recording, then it waits with standby till the recording is finished.
All this without a universal programmable remote.
There may be many ways to get this working, I have chosen for the following approach.
Windows is set to go to standby after 5 minutes of inactivity. Playing music is enough to prevent going to standby, all user activities or watching recordings/video is also enough to prevent going to standby.
When a recording is ongoing and the PC is awake then, using HIP, the standby key has two functions.
When PVRX2.exe is not running, pressing the standby key wakes the TV, the Amplifier, resumes video wtih fullresume.exe and starts PVRX2.exe
When PVRX2.exe is running pressing the standby key puts the TV and amplifier to standby and kills PVRX2.exe (this is needed because sometimes after playing audio windows is not able to decide the PC should go to standby.)
When the PC is in standby the standby key on the MCE remote is not managed by HIP but will wake the PC.
Using a small autoit script I detect whether is PC is woken automatically or by a user action. If it is a user action I execute the same actions as when the standby key is pressed without PVRX2.exe running.
On the MCE remote I have an additional key to put the TV in standby or wake it up again for when listening to music (yes, music is very important to me and my whole collection is on the central server in lossless format)
What I still need to do is to add some code that will put the TV/Amplifier in standby and kill PVRX2.exe when the PC wants to go to standby in case I fall in sleep while watching video and the video has ended. This can be done using the WM_POWERBROADCAST message and the PBT_APMSUSPEND event but it must be finished within two seconds.
In case someone is interested I can post the autoit script and some other settings
The idea is simple.
When the PVR/TV/Amplifier are in standby you press once and voila, on go the PVR/TV/Receiver
When everything is on and you press again the standby button on the MCE remote the PVR/TV/Amplifier all go to standby unless the PVR is recording, then it waits with standby till the recording is finished.
All this without a universal programmable remote.
There may be many ways to get this working, I have chosen for the following approach.
Windows is set to go to standby after 5 minutes of inactivity. Playing music is enough to prevent going to standby, all user activities or watching recordings/video is also enough to prevent going to standby.
When a recording is ongoing and the PC is awake then, using HIP, the standby key has two functions.
When PVRX2.exe is not running, pressing the standby key wakes the TV, the Amplifier, resumes video wtih fullresume.exe and starts PVRX2.exe
When PVRX2.exe is running pressing the standby key puts the TV and amplifier to standby and kills PVRX2.exe (this is needed because sometimes after playing audio windows is not able to decide the PC should go to standby.)
When the PC is in standby the standby key on the MCE remote is not managed by HIP but will wake the PC.
Using a small autoit script I detect whether is PC is woken automatically or by a user action. If it is a user action I execute the same actions as when the standby key is pressed without PVRX2.exe running.
On the MCE remote I have an additional key to put the TV in standby or wake it up again for when listening to music (yes, music is very important to me and my whole collection is on the central server in lossless format)
What I still need to do is to add some code that will put the TV/Amplifier in standby and kill PVRX2.exe when the PC wants to go to standby in case I fall in sleep while watching video and the video has ended. This can be done using the WM_POWERBROADCAST message and the PBT_APMSUSPEND event but it must be finished within two seconds.
In case someone is interested I can post the autoit script and some other settings
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
Support Comskip, visit the forum and donate at http://www.comskip.org/