Jump to content

Prevent shutdown/sleep/hibernate when recording


patti

Recommended Posts

Posted (edited)

Hello, DVBViewer won't let you shut down the computer if you are using Windows XP. With WIndows 7 this has been made impossible by Microsoft I hear. So, here is a suggestion that I think would remedy the situation.

 

Would it be possible to tweak DVBViewer so that when told to shut down/sleep/hibernate it checks if there is a recording going on and if there is it will enter AV OFF state and let the recording finish and after that it would shut down. This check would be made if the user tells DVBViewer to go to shutdown/standby/hibernate by using remote or keyboard. In other words, tweak the DVBViewer COM to check for the existence of a recording in case of a shutdown. I have made this suggestion assuming that standby/hibernate/shutdown go through COM and not directly to windows system.

 

Of course this check would not work if the user presses the power button or some other program wants to shut down the computer but at least it would prevent DVBViewer user from shutting down in the middle of a recording, especially when going to sleep at night and pressing shut down on the remote :D

 

Would this be possible?

 

How about it users, would this be a useful addition to DVBViewer?

 

patti

Edited by patti
Posted

I think that the issues with SLEEP and DVBViewer/recording service need to be addressed first. If the user can properly use "Away Mode" then these issues that you have mentioned would not be a problem. The issue is that DVBViewer is a media streaming app and when you hit the power button for off it simply enters "Away Mode" as a media app is still running; chicken or egg here? If a system generated Away Mode event (WM_POWERBROADCAST) was captured by DVBViewer power scheduler then it could react to it (PBT_APMSUSPEND) and shutdown therefore enabling the PC to enter S3 sleep properly. Likewise with the issues with the recording servce preventing correct S3 sleep on stopping a recording (set thread event to ES_CONTINUOUS). Handling these events would improve the HTPC a whole heap.

Posted
I think that the issues with SLEEP and DVBViewer/recording service need to be addressed first....

 

Well, you put my thoughts into a more technical approach which I was unable to do. I agree that your solution would definitely be the best. Thumbs up for that!

 

patti

Posted (edited)

hello everybody,

 

i dont understand all well, because my english is not so good. So is it solution to be able hibernate computer, when the recording service is running and have some timers on (win xp)? Now i am unable to hibernate htpc when some timers in the recording service, when not then hibernating work well. thanks for help

Edited by pavlis42
Posted
i dont understand all well, because my english is not so good. So is it solution to be able hibernate computer, when the recording service is running and have some timers on (win xp)? Now i am unable to hibernate htpc when some timers in the recording service, when not then hibernating work well. thanks for help

 

so i must say that problem wasnt in DVBViewer, i have made some pc adjustments in bios and system and now everything works very well (great sw)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...