I have finished my helper tool. It does the following:
- constantly copies WAVE volume setting to MASTER volume setting
- after resume (tested from suspend; hibernate should also work):
1. Sets mouse to far right corner
2. Sets default volume
3. kills Mediaportal (sending WM_CLOSE seems not to work - if someone can convert the project to C# then I could talk with MP instead and ask it to shut down)
4. kill TvService (not so nice but much faster)
5. restarts all available Skystar2
6. starts TvService
7. starts Mediaportal
This method is fast and seems to be reliable. You need the following MP settings
- MP should wait for TV server startup
- MP should control WAVE volume
- TvServer card initialization delay can be set to 0. If this does not work, increase 'slowly'
- TvServer card re-init after suspend is set here, have not tested what happens if I uncheck it. Should work well without this option.
- Powerscheduler server and client plugins enabled
The files OnPower.exe and devcon.exe must be copied into the Mediaportal installation folder. You may use a shortcut to autostart OnPower.exe in minimized mode at startup. Mp should also autostart in this case. It will show the devcon console output for debugging purposes, lateron I can start devcon in minimized mode as well so you will not see anything distracting on your screen.
The reason why I copy WAVE to MASTER volume is that it gives me more dynamic range for volume settings as I have a powerful amp and otherwise it is impossible to select a soft volume.
Please let me know how it works. The source code is also attached, feel free to modify / extend it (and send me the results
Regards
Frank
- constantly copies WAVE volume setting to MASTER volume setting
- after resume (tested from suspend; hibernate should also work):
1. Sets mouse to far right corner
2. Sets default volume
3. kills Mediaportal (sending WM_CLOSE seems not to work - if someone can convert the project to C# then I could talk with MP instead and ask it to shut down)
4. kill TvService (not so nice but much faster)
5. restarts all available Skystar2
6. starts TvService
7. starts Mediaportal
This method is fast and seems to be reliable. You need the following MP settings
- MP should wait for TV server startup
- MP should control WAVE volume
- TvServer card initialization delay can be set to 0. If this does not work, increase 'slowly'
- TvServer card re-init after suspend is set here, have not tested what happens if I uncheck it. Should work well without this option.
- Powerscheduler server and client plugins enabled
The files OnPower.exe and devcon.exe must be copied into the Mediaportal installation folder. You may use a shortcut to autostart OnPower.exe in minimized mode at startup. Mp should also autostart in this case. It will show the devcon console output for debugging purposes, lateron I can start devcon in minimized mode as well so you will not see anything distracting on your screen.
The reason why I copy WAVE to MASTER volume is that it gives me more dynamic range for volume settings as I have a powerful amp and otherwise it is impossible to select a soft volume.
Please let me know how it works. The source code is also attached, feel free to modify / extend it (and send me the results
Regards
Frank