DVBFan77 Posted December 30, 2010 Posted December 30, 2010 Moin ich nutze immer noch voller Begeisterung DVBViewer Pro 4.5 und lerne jeden Tag Neues dazu. Aufnahmen mache ich timer-gesteuert per dvb recording service. Als Verhalten nach Aufnahme habe ich "Ruhezustand" definiert. Das funktioniert hervorragend. Heute hat sich ein Schwachpunkt dieser Konfiguration gezeigt. Ich habe zeitversetzt die Aufnahme geguckt. Zwischendurch habe ich mir kurz etwas zu Essen zubereitet. Boom. Der HTPC ist im Ruhezustand. Bei Mediaportal habe ich die Aufnahmen ähnlich programmiert. Nur gab es dort die Möglichkeit, Prozesse zu definieren, die den Standby/Ruhezustand verhindern. Zu diesen Prozessen gehört bei mir zum Beispiel "xbmc.exe" und natürlich "DVBViewer.exe". Leider habe ich diese Einstellung nirgendwo gefunden. Wie realisiert ihr das? Schönen Abend. Quote
majstang Posted December 30, 2010 Posted December 30, 2010 Leider hatte es noch keine funktionen für diese in RS gebaut. Allerdings alle erforderlichen funktionen finden Sie in meinem Skript zu finden. http://www.DVBViewer.tv/forum/topic/41387-another-intelligent-hibernationscript/ Quote
Lars_MQ Posted December 30, 2010 Posted December 30, 2010 Zu diesen Prozessen gehört bei mir zum Beispiel "xbmc.exe" und natürlich "DVBViewer.exe". Sowas ist ziemlich nutzlos, wenn man das über das netzwerk betreibt, da der server pc niemals diese prozesse hat. Quote
nuts Posted December 30, 2010 Posted December 30, 2010 Naja schaden würde es aber auch nicht. Am reinen Server muss man ja keine Prozesse hinterlegen und selbst wenn stört es nicht da diese nie laufen. Auf der anderen Seite könnten sich andere Programme wie XBMC auch selbst darum kümmern nicht abgewürgt zu werden. Hilft denn "Verhindere Stromsparmodus/Ruhezustand" auch beim aktiven DVBViewer? Ja oder? Quote
DVBFan77 Posted December 30, 2010 Author Posted December 30, 2010 Also ich finde das schon sehr nützlich. Ich habe keine Variante mit Server-Client Struktur. DVBViewer läuft auf dem HTPC. Wie läuft das ganze ab? Alle paar Tage schaut man per web interface in das EPG und programmiert dann unzählige Sachen für den dvb recording service. Irgendwann weiß man doch gar nicht mehr die genauen Zeitpunkte. Das ist irrelevant, wenn ich parallel per DVBViewer fernsehen gucke. Dann sehe ich ja den Warnhinweis. Dieser wird abgebrochen und damit der Ruhezustand verhindert. Wenn ich aber nun eine Bluray mittels XBMC gucke. Wie sieht es dann aus? Richtig, das Hinweisfenster sehe ich nicht. Dementsprechend fährt die Kiste in den Schläfermodus. Das macht MediaPortal wesentlich besser. Einfach den Prozess eingetragen und das gut ist! Natürlich fährt MP nicht in den Standby, wenn fernsehen geguckt wird. Ist auch schwachsinnig. Hier verhält sich der DVBViewer leider anders. Also DVBViewer läuft nicht nur auf Server-Client Strukturen, sondern auch auf Single-HTPC Lösungen und da finde ich gehört eine Verfeinerung des dvb recording services dazu. Ist für Euch doch ein Klacks, diesen Punkt mit aufzunehmen. Wäre genial. Habe keine Lust wegen dieser Kleinigkeit das Pferd wechseln zu müssen. Greetings DVBFan77 Quote
majstang Posted December 31, 2010 Posted December 31, 2010 Ich habe keine Variante mit Server-Client Struktur. Sorry for writing in english, but Google translator sucks! Yes, you do have a server-client solution with my script! RS WEB API has a Clientcount variable which you can use to cancel standby/hibernation with my script if you want to have it working right now. This variable shows if DVBViewer is used. As long as DVBViewer are receiving a graph, standby/hibernation will be canceled. I can help you with the needed script adaptations if you are intrested. Otherwise we'll have to wait and see what Lars comes up with if he's intrested to find any solution to this. Regarding checking processes over network Microsoft has several functions which could be useful to study if programming such a feature. http://msdn.microsoft.com/en-us/library/aa365574 Quote
DVBFan77 Posted December 31, 2010 Author Posted December 31, 2010 (edited) Good morning majstang, Yes, you do have a server-client solution with my script! [/Quote] We have a slight misunderstanding. I do NOT have a server-client-architecture. My htpc is the main machine. The Digital Devices Cine S2 dvb-s2 card is hooked into that pc. I'm not accessing it via lan with through other pcs. That's why i need a working solution. Just to be sure what your plugin does: Does it help me to supress hibernate mode initiated by dvb recording service in certain situations? e.g. DVBViewer or xbmc running. Studying in what circumstances Microsoft initiates hibernate mode gives me a headache. It seems to be unrealiable. I've heart about pcs going to sleep although processes where running. The reason i'm mentioning Windows 7 power options is a different approach i wanted to try. At the moment dvb recording service puts my htpc to sleep after the successfull completion of a timer-triggered recording. I could change this behaviour to "No action after recording". But i don't want my electricity bill get the best of me, so my next step would be adjusting power options. Windows 7 should initiate hibernation after 15 mins of idle time. The question is how reliable that solution is? How much CPU consumption is needed to characterize the pc as being active? Will browsing the world wide web or watching a movie within xbmc consume enough resources? Maybe users around this board can share their knowledge about Windows 7 power options? Thanks in advance. Greetings Edited December 31, 2010 by DVBFan77 Quote
majstang Posted December 31, 2010 Posted December 31, 2010 We have a slight misunderstanding. I do NOT have a server-client-architecture. My htpc is the main machine. Aha! Then you can use the process "xbmc.exe" as a variable to cancel standby. My script has all the necessary code to accomplish that. If you have trouble setting it up let me know. Just to be sure what your plugin does: Does it help me to supress hibernate mode initiated by dvb recording service in certain situations? e.g. DVBViewer or xbmc running. Studying in what circumstances Microsoft initiates hibernate mode gives me a headache. It seems to be unrealiable. I've heart about pcs going to sleep although processes where running. You don't have to bother much about standby/hibernation is not blockable on Win7 systems and the mess Microsoft has created. My script does its thing (cancels standby) before the standby call is even made. My script works with variables and their actual values. If lets say my script finds an open xbmc.exe process the standby call will never be executed. If my script does not find the xbmc.exe process the script will execute the standby. As long as xmbc.exe is running your system will never standby. My script is used as an after recording task and have to be configured accordingly (instructions should be found in the topic). So your post-recording action should be "Nothing". Regarding how reliable this solution is I can only say I haven't had a single failiure yet on my HTPC. Quote
nuts Posted December 31, 2010 Posted December 31, 2010 Ich hab mal was gebastelt (exe, source, readme im Anhang) Eine Vorbemerkung: Ich bin nicht sicher ob der RS unter vista / win7 einen Standbybefehl (der kommt ja vom Skript) verhindern kann. Sollte es dabei Probleme geben kann ich aber noch eine Statusabfrage vom RS einbauen um Aufnahmen zu schützen. Also bitte erstmal testen wenn keine wichtigen Aufnahmen anstehen. check_processlist.zip Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.