NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Wishlist v
« Previous 1 … 64 65 66 67 68 … 193 Next »
Standby confirmation if recording in progress

 
  • 0 Vote(s) - 0 Average
Standby confirmation if recording in progress
rob11252
Offline

Member

Posts: 126
Threads: 9
Joined: Jan 2008
#21
2008-05-13, 03:49 PM
Rightly or wrongly, I don't care about this password being in the open. The bat file would reside on the HTPC computer, which is in the home network, behind a router, currently with one user and no password, and the computer doesn't have any sensitive files on it, designed for unrestricted use by any member of the family.

Talking about coding....
K.S. Wrote:that's the easy part & i doubt sub would have a problem to code that. hell, i could do that too Smile ..........

Could you guys check this thread? :
http://forums.nextpvr.com/showthread.php?t=35079

Mr. Slimm tried to, unsuccesfully, add the standby feature to his program. Maybe you can chip in.
His solution would be way more elegant that what I can come up with here!

Appreciate.
[SIZE="2"]GBPVR 1.3.11 on WinXP SP2; ATSC OTA.
Core 2 Duo 2.2GHz; 2GB RAM; NVIDIA 8500GT 256MB; Hauppauge HVR-1600 and Pinnacle HD Pro, 720p HDTV;[/SIZE]
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#22
2008-05-13, 04:42 PM
rob11252 Wrote:Could you guys check this thread? :
http://forums.nextpvr.com/showthread.php?t=35079

Mr. Slimm tried to, unsuccesfully, add the standby feature to his program. Maybe you can chip in.
His solution would be way more elegant that what I can come up with here!

if it's about SlimmGBPVR... only Mister Slimm can add the code to that, i've posted in that thread.
otherwise, a simple autoit3 script could to the job...

the following call would set ES_SYSTEM_REQUIRED (by resetting the system idle timer & preventing automatic standby)
DllCall ("kernel32.dll","long","SetThreadExecutionState","long",0x00000001)
the following call should set it back to ES_CONTINUOUS
DllCall ("kernel32.dll","long","SetThreadExecutionState","long",0x80000000)

one remark about that from microsoft: "The SetThreadExecutionState function cannot be used to prevent the user from putting the computer to sleep. Applications should respect that the user expects a certain behavior when they close the lid on their laptop or press the power button."
i'm not sure how calling standby from the system menu is regarded as. it might be regarded as user interaction & not prevent it!
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
rob11252
Offline

Member

Posts: 126
Threads: 9
Joined: Jan 2008
#23
2008-05-13, 10:30 PM
OKey, this needs clarification:

1. THIS ONE IS NOT THE ISSUE!

I've never had the problem of computer going to sleep during recording or watching recordings because of timer issue. Sub has taken care of that by implementing SetThreadExecutionState function in the recording service and pvrx2.

2. USER INPUT - THIS IS THE ISSUE!

A smart and mean computer, when presented with a dumb standby request from me, would turn up the volume and yell and flash the following message:


(the jpg supposed to be here - sorry, I don't know how to control the placement)


Or, if Mr. Slimm can figure his bit, the computer would turn his little flashing icon on and say: OK, I am going to sleep as soon as I finish this recording. Goodnight.

The function for this, as Microsoft claims, is PBT_APMQUERYSUSPEND.
Unfortunately, as Mr. Slimm and K.S. found out, nobody here could get it to work. Sad


Oh, well, back to my little project.
[SIZE="2"]GBPVR 1.3.11 on WinXP SP2; ATSC OTA.
Core 2 Duo 2.2GHz; 2GB RAM; NVIDIA 8500GT 256MB; Hauppauge HVR-1600 and Pinnacle HD Pro, 720p HDTV;[/SIZE]
rob11252
Offline

Member

Posts: 126
Threads: 9
Joined: Jan 2008
#24
2008-05-16, 02:39 AM
:mad:

In parallelprocessing.bat I put just one command:

runasuser [user] [password] wakeup.exe

Start recording, check if wakeup.exe is running. NO!? WTF?
Doubleclick on bat file, it starts wakeup.exe.

So I add another command to make sure the bat is running:
dir *.ini>rec.txt

I doubleclick on bat, it runs both commands,;
I run bat from command window, it runs both commands and then displays a message: file not found. I have no idea what file it was looking for, but since it performed both commands, I ignore this.
I start recording again, the bat skips runasuser command, but creates the rec.txt file! Why oh why oh why?

It must be sub's faultWink
[SIZE="2"]GBPVR 1.3.11 on WinXP SP2; ATSC OTA.
Core 2 Duo 2.2GHz; 2GB RAM; NVIDIA 8500GT 256MB; Hauppauge HVR-1600 and Pinnacle HD Pro, 720p HDTV;[/SIZE]
psicotron3
Offline

Member

Posts: 134
Threads: 17
Joined: Jan 2007
#25
2008-05-16, 03:14 AM
You could try to add the full path to both commands, like

"C:\Program Files\Devnz\GBPVR\runasuser.exe" [user] [password] "C:\Program Files\Devnz\GBPVR\wakeup.exe"


I think you´ll also have to add something like pskill wakeup.exe to PostProcessing.bat

rob11252 Wrote::mad:

In parallelprocessing.bat I put just one command:

runasuser [user] [password] wakeup.exe

Start recording, check if wakeup.exe is running. NO!? WTF?
Doubleclick on bat file, it starts wakeup.exe.

So I add another command to make sure the bat is running:
dir *.ini>rec.txt

I doubleclick on bat, it runs both commands,;
I run bat from command window, it runs both commands and then displays a message: file not found. I have no idea what file it was looking for, but since it performed both commands, I ignore this.
I start recording again, the bat skips runasuser command, but creates the rec.txt file! Why oh why oh why?

It must be sub's faultWink
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#26
2008-05-16, 08:33 AM
rob11252 Wrote:2. USER INPUT - THIS IS THE ISSUE!

A smart and mean computer, when presented with a dumb standby request from me, would turn up the volume and yell and flash the following message:
...
The function for this, as Microsoft claims, is PBT_APMQUERYSUSPEND.
Unfortunately, as Mr. Slimm and K.S. found out, nobody here could get it to work. Sad

i'll take a look at that if your vb example does not help MisterSlimm, but dunno when i find the time to delv into that
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
rob11252
Offline

Member

Posts: 126
Threads: 9
Joined: Jan 2008
#27
2008-05-17, 12:00 PM
I am happy to report that the latest version of SlimmGBPVR has, among other very usefull features, the function which prevents the user from accidental standby, hibernation or shutdown during recording in progress.
Check it out yourself!
[SIZE="2"]GBPVR 1.3.11 on WinXP SP2; ATSC OTA.
Core 2 Duo 2.2GHz; 2GB RAM; NVIDIA 8500GT 256MB; Hauppauge HVR-1600 and Pinnacle HD Pro, 720p HDTV;[/SIZE]
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#28
2008-06-10, 02:38 PM
sub Wrote:Its unlikely I'd bother implementing something like this directly in GB-PVR. At most you'd probably get a warning if you try to use the sleep function from the GB-PVR system screen while recording.

Sub, what you've mentioned would be enough for my family, as GB-PVR is the only interface they get to see, so the PC can only be put into standby or hibernate via GB-PVR's menus.

Here's hoping you've time to add it at some point...
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (3): « Previous 1 2 3


Possibly Related Threads…
Thread Author Replies Views Last Post
  Overwrite oldest recording with lock feature djenson 0 525 2023-09-28, 10:37 AM
Last Post: djenson
  Recording status displayed when finished coreymichael 6 1,006 2023-08-31, 05:32 PM
Last Post: sub
  Recording scheduling mzanetti 2 870 2023-07-28, 05:24 PM
Last Post: sub
  Feature Request: EIT Support, plus Stop and Save Recording. Chris4877 8 1,634 2022-09-12, 12:58 AM
Last Post: mvallevand
  Add manual recording - default time markn62 0 886 2022-02-14, 12:46 AM
Last Post: markn62
  Sorting Options for Recurring Recording List pkscout 1 906 2021-11-23, 07:51 PM
Last Post: sub
  Remove failed recurring recording artmetz 0 743 2021-11-17, 07:55 PM
Last Post: artmetz
  Edit recurring recording oliroe 8 2,221 2020-12-17, 08:15 PM
Last Post: oliroe
  Cleaning up recordings in order of recording date TheRealRoland 11 3,761 2020-12-09, 05:49 PM
Last Post: mvallevand
  Scheduler - Recurring TV Show recording in series mark.jankowski.89 2 1,188 2020-10-26, 09:00 PM
Last Post: mark.jankowski.89

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode