MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » Community Skins and Plugins » MediaPortal Plugins



Reply
 
LinkBack Thread Tools Display Modes
Old 2008-08-26, 21:48   #1 (permalink)
MP Donator
 
josch.hh's Avatar
 
Join Date: Mar 2008
Location: Hamburg
Posts: 337
Thanks: 7
Thanked 50 Times in 15 Posts

Country:

My System

Default MPstandbyHandler

This application is not really a plugin but a utility to solve some of the Windows standby/hibernate problems with Mediaportal and/or TVService. It is based on lkuech's PowerEventHandler. The difference is that it is customized to work for MP and TVS special purposes.

What is does:
  • can stop MP and/or TVS on standby/hibernate
  • can start/restart MP and/or TVS on resume from standby/hibernate

All the stop and start conditions can be customized by the user from the config dialog as well as different timeouts. It is also possible to wait for a network connection (for example Wlan) before starting TVS.

I hope it is helpfull.
Plz report bugs.



"MPstandbyHandler 1"

Install Guide:
- Just put the exe-file anywhere you like and start it.


ChangeLog:

1.0.0.6
- Fixed bug that application wont run on Vista
1.0.0.7
- Added feature to start a custom command like .bat .cmd .vbs etc. at beginning of the resume process
1.0.0.8
- Added feature that the pc will be rebooted if MP can't be killed during resume
1.0.0.9
- MP stop function splitted into two parts: first try to stop MP the normal way, if that doesn't work kill MP
1.0.0.10
- Fix a bug with new feature from 1.0.09
- Did some refactoring


================================================== ==============================

"MPstandbyHandler 2"

Install Guide:
- Copy the files (the complete contents of the zip file) into ONE directory.
- Install MPstandbyHandlerService via the "install.cmd" script. The script HAS TO BE RUN AS ADMINISTRATOR !!!!!
- Reboot the Maschine or start the service via windows service controll window
- Start MPstandbyHandlerGui.exe and configure for your needs
- Start MPstandbyHandlerUser.exe if you do want it to run right now. Otherwise check the "Autostart Userspace Executable" checkbox in MPstandbyHandlerGui and restart the system (You don't need this exe if you don't plan to stop/start MP)
- You can test the resume and suspend functions from the "Gui Log" Tab.

Sourcecode via SVN on Sourceforge:
https://mp-plugins.svn.sourceforge.n...tandbyHandler2





ChangeLog:

Beta01:
- First Beta only Gui working
Beta02:
- Second Beta, should have nearly full functionality, service is running
Beta03:
- fixed some bugs
Beta04:
- fixed install scripts
Beta05:
- changed the location of the settings and job files
- changed settings handling
- all needed extra files or directories will be automatically created
- some bugfixes
Beta06:
- added a userspace extra executable which runs in systemtray and does things like stop or start MP
- application will take care now if MP was running during standby or not, to decide if MP should be started on resume
Beta07:
- switched to VS Express 2008
- little bugfix on TVS start job
Beta08:
- some bugfixes
Beta09:
- Added extra property to the MP and TVS stop jobs -> Kill immediately - i found out that there is no way to query extra time or temporarily stop susend on windows vista -> means not much time left before a suspend on vista -> killing for example speeds things up !!! MP and TVS stop job xml files have to be delete by hand !!!
Beta10:
- Added extra property for MP start to set MP to foregound and focus the MP window
- Added experimental Splashscreen (MPstandbyHandlerUser.exe needs to be running)
- some bugfixes
2.0.0.1
- First Release
2.0.0.2
- Added "AlwaysStart" property to MP start job - thx to PJ
- Modified some internal remote communication between Service and User app
2.0.0.3
- Fix a bug in logging system
2.0.0.4
- Added job sections for system startup and shutdown (see info above)
- Added a rotating log file system which will copy old log file to .log.1, .log.2 ... until .log.5
- Added an error log file which will only contain messages with the log level "warning" or "error"
- Did some cosmetic improvements
2.0.0.5
- Removed system startup and shutdown feature again, because especially startup never worked as it should.
This feature are better located in other applications (I still left the old version 2.0.0.4 in the attachment)
2.0.0.6
- MPstandbyHandlerUser rewritten, just to have a nicer code
2.0.0.7
- Updated MPstandbyHandlerUser/MPstandbyHandlerService network communication
- Fixed MP start job "AlwaysStart" function
- Fixed Flags reader, if no Flags file was found
- Reduced number of rotation log files
- Add setting LogLevel
- Reduced logging during job load
2.0.0.8
- Added "Check Suspend State during Resume" checkbox in config common tab.
Disable this checkbox if you have trouble with resume and get the message "OnResume called but not suspended"
Attached Files
File Type: zip MPstandbyHandler1.0.0.10.zip (50.2 KB, 809 views)
File Type: zip MPstandbyHandlerSource1.0.0.10.zip (509.5 KB, 164 views)
File Type: zip MPstandbyHandler2.0.0.4.zip (128.0 KB, 249 views)
File Type: zip MPstandbyHandler2.0.0.8.zip (125.9 KB, 76 views)

Last edited by josch.hh; 2009-06-19 at 19:31..
josch.hh is offline   Reply With Quote
Old 2008-08-26, 22:01   #2 (permalink)
Super Moderator
 
Paranoid Delusion's Avatar
 
Join Date: Jun 2005
Location: Cheshire UK
Posts: 8,639
Thanks: 226
Thanked 387 Times in 349 Posts

Country:

My System

Default

josch.hh

Thanks for this, as for myself standby has become a nightmare since going from RC2 (working) to svn 20010 (totally screwed) where only 2\3rd of my channels work after resume, and unable to record, but can watch live\recorded TV, but cannot delete any shows.

This seems to fix things for the last 48 hrs, had 1 failure, where TVServer refused to start, mssql problem show in logs, but again cannot reproduce consistantly.

Will try your new version.

Regards
__________________
Ray

Check your codecs are fine with Filmerit.
How to post your logs
Paranoid Delusion is offline   Reply With Quote
Old 2008-08-27, 14:12   #3 (permalink)
MP Donator
 
josch.hh's Avatar
 
Join Date: Mar 2008
Location: Hamburg
Posts: 337
Thanks: 7
Thanked 50 Times in 15 Posts

Country:

My System

Default

@Paranoid Delusion

plz check out the "waiting for network connection feature" maybe this will help you.
If you can find out some details of your problem, then maybe i can try to code something that checks the connection to mysql before tvservice will be started.
josch.hh is offline   Reply With Quote
Old 2008-08-27, 15:16   #4 (permalink)
MP Donator
 
chrisonline's Avatar
 
Join Date: Aug 2007
Location: Tirol/Wörgl
Age: 30
Posts: 300
Thanks: 2
Thanked 5 Times in 5 Posts

Country:

My System

Send a message via ICQ to chrisonline Send a message via MSN to chrisonline Send a message via Skype™ to chrisonline
Default

Great Tool i will try it, but does the function "reinitialize service on wakeup (also reinitialize tvtuner)" not the same in the power scheduler plugin?

Is it possible to kill the tvservice exe after wakeup?
__________________
cu chrisonline
www.chrisonline.at
MP: 1.0 TVE: 1.0 CPU: AMD Athlon 64 x2 Dual Grafik: Radeon X700
BS: WinXP SP3 TV-Karte 1: Terratec Cinergy 1200 DVB-C TV-Karte 2: KNC One DVB-C + Sound: Soundblaster Audigy Z2 Remote 1: Microsoft MCE Remote Remote 2: Harmony 525 Remote 3: Living Room Funk Keyboard
chrisonline is offline   Reply With Quote
Old 2008-08-27, 16:02   #5 (permalink)
MP Donator
 
josch.hh's Avatar
 
Join Date: Mar 2008
Location: Hamburg
Posts: 337
Thanks: 7
Thanked 50 Times in 15 Posts

Country:

My System

Default

Quote:
Originally Posted by chrisonline View Post
Great Tool i will try it, but does the function "reinitialize service on wakeup (also reinitialize tvtuner)" not the same in the power scheduler plugin?

Is it possible to kill the tvservice exe after wakeup?
No, it has nothing to do with the reinit function from power scheduler. The service is not reinitialzed - it is restarted!

You can restart the tvservice on resume, means the process/service will be stopped/killed and restarted.
josch.hh is offline   Reply With Quote
Old 2008-08-27, 21:43   #6 (permalink)
Super Moderator
 
Paranoid Delusion's Avatar
 
Join Date: Jun 2005
Location: Cheshire UK
Posts: 8,639
Thanks: 226
Thanked 387 Times in 349 Posts

Country:

My System

Default

josch.hh

Hi, the new version 1.0.0.5 crashes immediately on launch, this is running on Vista32, is there anything i can do to assist.
__________________
Ray

Check your codecs are fine with Filmerit.
How to post your logs
Paranoid Delusion is offline   Reply With Quote
Old 2008-08-28, 08:03   #7 (permalink)
MP Donator
 
josch.hh's Avatar
 
Join Date: Mar 2008
Location: Hamburg
Posts: 337
Thanks: 7
Thanked 50 Times in 15 Posts

Country:

My System

Default

You are right, sorry for that. I tested it only on XP. I will be away for 3 days, so that i can fix it round about sunday.
Plz be patient, it will also work on Vista.
josch.hh is offline   Reply With Quote
Old 2008-08-28, 08:42   #8 (permalink)
Portal Member
 
Join Date: Mar 2006
Posts: 175
Thanks: 2
Thanked 5 Times in 4 Posts

My System

Default

Sorry but how does it work? What his purpose? It is coupled with PowerScheduler plugin?
I ran it but nothing is going on.

Last edited by fabien44; 2008-08-28 at 08:49..
fabien44 is offline   Reply With Quote
Old 2008-08-28, 09:22   #9 (permalink)
MP Donator
 
chrisonline's Avatar
 
Join Date: Aug 2007
Location: Tirol/Wörgl
Age: 30
Posts: 300
Thanks: 2
Thanked 5 Times in 5 Posts

Country:

My System

Send a message via ICQ to chrisonline Send a message via MSN to chrisonline Send a message via Skype™ to chrisonline
Default

Quote:
Originally Posted by fabien44 View Post
Sorry but how does it work? What his purpose? It is coupled with PowerScheduler plugin?
I ran it but nothing is going on.
See at the taskbar on the right.
There is an new yellow symbol.
Right clik and you see the options.
__________________
cu chrisonline
www.chrisonline.at
MP: 1.0 TVE: 1.0 CPU: AMD Athlon 64 x2 Dual Grafik: Radeon X700
BS: WinXP SP3 TV-Karte 1: Terratec Cinergy 1200 DVB-C TV-Karte 2: KNC One DVB-C + Sound: Soundblaster Audigy Z2 Remote 1: Microsoft MCE Remote Remote 2: Harmony 525 Remote 3: Living Room Funk Keyboard
chrisonline is offline   Reply With Quote
Old 2008-08-28, 10:13   #10 (permalink)
Portal Member
 
Join Date: Jun 2007
Posts: 785
Thanks: 31
Thanked 31 Times in 25 Posts

Country:

My System

Default

Just a hint.
If you use this tool, in my setup disabling the following MP options gives best results:

1.) MP -> Restart MP after resume
2.) TVServer/PowerScheduler -> Reinitialize service on wakeup.

grubi.
grubi is offline   Reply With Quote
Reply

Bookmarks

Tags
mpstandbyhandler

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MediaPortal TVService on virtualized Windows XP cPH Ongoing HTPC Projects 27 2009-04-02 11:23
TVService crashes instantly when closing MediaPortal/SetupTV.exe kolizz pre 1.0 RC1 2 2007-04-20 20:11
Stop RTSP player on suspend joboehl Improvement Suggestions 3 2007-01-18 12:25
Many files in directory=mediaPortal stop flanders210 General Support 12 2006-06-22 16:31
MediaPortal closed after suspend? Sirkent General Support 1 2006-01-18 20:22


All times are GMT +1. The time now is 05:34.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden