NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) Slimm GB-PVR and GBPVRcli v
« Previous 1 2 3 4 Next »
SlimmGBPVR doesn't prevent standby during recording

 
  • 0 Vote(s) - 0 Average
SlimmGBPVR doesn't prevent standby during recording
rob11252
Offline

Member

Posts: 126
Threads: 9
Joined: Jan 2008
#1
2008-05-01, 03:26 PM
Quote from wiki:
- Prevents system session ending while recording so you cannot accidentally log off, restart or turn off your machine.
- Automatically restart the recording service when it crashes.

Hey, that's what I need. So I hit "download" and that's what I get:

http://mrslimm.googlepages.com/SlimmGBPVRSetupBeta.exe

The page you have requested could not be found. (404)

Quick seach in the forums and I download and install version 1.7.2898.24459 .

I have 3 ways to put my computer to standby:
1. Hit PC button on MS MCE V2 remote, which uses HIP and calls for function C_SLEEP.
2. From PVRX2, go to "System" and "Standby"
3. Hit "Start" button, then "Shutdown the computer", then "Standby"
All of these methods produce the same results.

So, I hit "PC" button on my remote and I see SlimmGBPVR icon changing to Recording/Dalayed Standby. But a second or two later the computer proceeds and goes to standby anyhow.Sad I wake it up and examine what's happening. Both PVRX2 and SlimmGBPVR claim the recording is continuing. But that's not true, no new file is being created and the existing file is finished at the time when I pressed the standby button.

My question is: Are your computers behaving correctly? If so, what mistakes did I make in configuring SlimmGBPVR?
[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]
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#2
2008-05-02, 09:46 AM
rob11252 Wrote:Quote from wiki:
- Prevents system session ending while recording so you cannot accidentally log off, restart or turn off your machine.
- Automatically restart the recording service when it crashes.

Standby is different from logging off, restarting or turning off your machine. Those three options are events that Slimm GBPVR will catch. Sadly, and somewhat annoyingly, I couldn't discover how to prevent standby. Therefore Slimm GBPVR is working correctly and it does not catch standby mode. Very sorry.

rob11252 Wrote:Page not found

Oops.

I have amended the wiki page (something I had almost completely forgotten about) to incorporate this information and fixed the download link.

rob11252 Wrote:So, I hit "PC" button on my remote and I see SlimmGBPVR icon changing to Recording/Dalayed Standby. But a second or two later the computer proceeds and goes to standby anyhow. I wake it up and examine what's happening. Both PVRX2 and SlimmGBPVR claim the recording is continuing. But that's not true, no new file is being created and the existing file is finished at the time when I pressed the standby button.

SlimmGBPVR can tell when the machine is to go into Standby mode and that is why the icon changes. But I never could discover how to stop standby which is why the computer goes into standby anyway. So you are seeing the limit of my programming knowledge.

On my machine, when the computer comes out of standby, as long as I am still within the recording period, a new recording is started. This gives me two files for a single recording, one from the start to the standby and one from the resume to the end of recording. SlimmGBPVR lists both of these files as does Windows Explorer but GBPVR itself does not (I think).

Many thanks for your time in posting this query.
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
rob11252
Offline

Member

Posts: 126
Threads: 9
Joined: Jan 2008
#3
2008-05-03, 12:15 AM
Mister Slimm Wrote:Sadly, and somewhat annoyingly, I couldn't discover how to prevent standby. Therefore Slimm GBPVR is working correctly and it does not catch standby mode. Very sorry.

With so much brainpower in GBPVR community I would be really surprised if you wouldn't soon get a good tip from one of the members how to solve this issue.Big Grin


While searching the net I found a small application called wakeup v 1.06 by http://noeld.com/. This application, when running, can prevent both standby and hibernation. Maybe you can modify slimmgbpvr to start this app when recording starts and stop it right after recording stops.
This is the best suggestion I can come up with.
[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]
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#4
2008-05-03, 12:47 AM
rob11252 Wrote:With so much brainpower in GBPVR community I would be really surprised if you wouldn't soon get a good tip from one of the members how to solve this issue.Big Grin

The code examples I could find on the internet didn't work in .NET.

rob11252 Wrote:While searching the net I found a small application called wakeup v 1.06 by http://noeld.com/. This application, when running, can prevent both standby and hibernation. Maybe you can modify slimmgbpvr to start this app when recording starts and stop it right after recording stops.
This is the best suggestion I can come up with.

GBPVR already has the facility to run commands before and after recording and this little app could be used in there. ParallelProcessing.bat is called when a recording starts and PostProcessing.bat is called when it finishes. More details can be found on Batch Files wiki page.

With many thanks.
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
rob11252
Offline

Member

Posts: 126
Threads: 9
Joined: Jan 2008
#5
2008-05-13, 02:24 AM
Mister Slimm Wrote:The code examples I could find on the internet didn't work in .NET.

The code you are talking about here, was it the windows broadcast message PBT_APMQUERYSUSPEND?

From http://softwarecommunity.intel.com/artic...g/3437.htm:

WM_POWERBROADCAST – Message broadcast to the application through the WindowProc() function indicating that a power-management event has or is occurring.
PBT_APMQUERYSUSPEND – Event that requests permission to suspend.
[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]
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#6
2008-05-13, 10:23 AM
rob11252 Wrote:The code you are talking about here, was it the windows broadcast message PBT_APMQUERYSUSPEND?

From http://softwarecommunity.intel.com/artic...g/3437.htm:

WM_POWERBROADCAST – Message broadcast to the application through the WindowProc() function indicating that a power-management event has or is occurring.
PBT_APMQUERYSUSPEND – Event that requests permission to suspend.

Yes.

I could receive the messages but couldn't return the cancel flag or broadcast a cancel suspend message. I was clearly not understanding something and couldn't spend too much time looking into what I was missing so preventing standby (though a useful feature) had to be sacrificed as log off, restart and turn off were all trapped and cancelled successfully.

I still have my code (but commented out). The following did not cancel standby. From what I read, either of the two operations here (BROADCAST_QUERY_DENY or WM_CANCELMODE) should have cancelled standby. As I say, I clearly haven't understood something.
Code:
Logger.Verbose("WM_POWERBROADCAST->PBT_APMQUERYSUSPEND | PBT_APMQUERYSTANDBY denied.");
m.Result = (IntPtr)BROADCAST_QUERY_DENY;
Trace.WriteLine("result set to Broadcast_Query_Deny");
Message msgCancel = Message.Create(this, WM_CANCELMODE, 0, 0);
base.WndProc(ref msgCancel);
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
K.S.
Offline

Senior Member

Posts: 526
Threads: 12
Joined: Oct 2006
#7
2008-05-13, 04:31 PM
Mister Slimm Wrote:I could receive the messages but couldn't return the cancel flag or broadcast a cancel suspend message. I was clearly not understanding something


rob11252 pointed my at your dilemna, i'm not sure BROADCAST_QUERY_DENY will help you...
first take a look here, vista is not supporting that broadcast...
second, i've never got windows to accept any broadcasts i sent, but there is no need to, take a look here & here, Nomad101 found a way to also cure another windows pestilence called "black screen after resuming", a simple dll call (i.e. in autoit3 DllCall ("kernel32.dll","long","SetThreadExecutionState","long",0x00000002)) has helped. in the first link about SetThreadExecutionState microsoft has an example in C++ how to do it, the second page has some C# example how to get it imported...
hope it works Wink
sub Wrote:Yep, what he said.

curiosity killed the cat Big Grin
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#8
2008-05-13, 08:56 PM
K.S. Wrote:rob11252 pointed my at your dilemna, i'm not sure BROADCAST_QUERY_DENY will help you...
first take a look here, vista is not supporting that broadcast...
second, i've never got windows to accept any broadcasts i sent, but there is no need to, take a look here & here, Nomad101 found a way to also cure another windows pestilence called "black screen after resuming", a simple dll call (i.e. in autoit3 DllCall ("kernel32.dll","long","SetThreadExecutionState","long",0x00000002)) has helped. in the first link about SetThreadExecutionState microsoft has an example in C++ how to do it, the second page has some C# example how to get it imported...
hope it works Wink

With many thanks for your comments. I had read both of the MSDN pages.

SlimmGBPVR already uses SetThreadExecutionState to prevent the system from putting itself into standby due to the system idle timer. The second page explicitly says "do not veto the standby request" which is precisely what I would like to do. I could not find any code examples whose effects I could replicate on how to perform this veto.

What's really annoying is that I have had an application (it was a peer-to-peer application, BitComet, I think) which I am sure disabled standby and so it must be possible to veto the standby request.

Again, many thanks for your comments and any further insight is most welcome.
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
rob11252
Offline

Member

Posts: 126
Threads: 9
Joined: Jan 2008
#9
2008-05-16, 03:05 AM
Mister Slimm,

Somebody wrote a subroutine in visual basic, which does exactly what we need, and allows people to use it.
Since I can't recognize what language you are using to write slimmgbpvr, (what is it, anyhow?) I have no idea if it is of any value to you. But it's worth a shot. See attached:
[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]
Mister Slimm
Offline

Senior Member

Posts: 437
Threads: 41
Joined: Nov 2005
#10
2008-05-16, 11:39 AM
rob11252 Wrote:Since I can't recognize what language you are using to write slimmgbpvr, (what is it, anyhow?)

Slimm GBPVR is written in C# targeting .NET Framework 2.0 using Visual C# 2008 Express Edition.

Thank you for your efforts in this regard. The VB code itself wasn't of any help since it looked exactly like my code already. However, I did spot something out of the corner of my eye in one of the links in the code and that appears to have solved my problem.

In trying to set the Result for the WndProc message I was using the code:
Code:
m.Result = (IntPtr)BROADCAST_QUERY_DENY

What I should have been doing was using the following:
Code:
m.Result = new IntPtr(BROADCAST_QUERY_DENY)

Subtle. But now it appears to be working. Big Grin I've released an update and I'd love to know if it works on your machine.

If you press standby while any tuner is active (ie, during a recording or watching live tv), it should throw up a balloon telling you that the standby was cancelled and Slimm GBPVR should start flashing with the standby symbol in the tray and will standby when the current recording session is over.

Again, many thanks.
[SIZE="1"]Akasa Zen case, AMD Phenom II X3 720, 4.00Gb Ram, Sapphire ATI Radeon 4890, Terratec Terratec Cinergy 2400i Twin Digital Tuner, 1050Gb storage, Windows 7 Home Premium.
See my blog for releases, HD wallpapers, movie, game and anime reviews and more.[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (4): 1 2 3 4 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can I disable "Delayed Standby" after is has been requested? HarryH3 49 35,405 2010-01-26, 09:41 AM
Last Post: keith_leitch
  Tray icon inactive during recording FirstTeamOPS 0 5,003 2009-12-18, 02:26 AM
Last Post: FirstTeamOPS
  SlimmGBPVR Dll Errors on logs. dalabera 2 5,924 2009-08-01, 10:52 AM
Last Post: Mister Slimm
  Recording status erroneously remains on keith_leitch 1 5,195 2009-06-13, 07:22 AM
Last Post: keith_leitch
  SlimmGBPVR: Four questions to Slimm dero 2 6,010 2009-04-29, 09:22 AM
Last Post: Mister Slimm
  Batch file access to "standby" and "restart" features keith_leitch 2 7,524 2009-04-06, 11:43 PM
Last Post: keith_leitch
  what standby events will slimm prevent fuzzweed 3 6,637 2008-11-23, 12:02 PM
Last Post: Mister Slimm
  Update EPG Doesn't Work LewE 1 8,466 2008-09-26, 10:06 AM
Last Post: Mister Slimm
  How to use SlimmGBPVR with Vista's User Account Control Josef_K 5 9,830 2007-12-09, 04:21 PM
Last Post: Josef_K
  SlimmGBPVR - Blacked-out Menu Items. JavaWiz 8 4,617 2007-11-20, 08:18 PM
Last Post: gEd

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

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

Linear Mode
Threaded Mode