Page 1 of 1

Newsbin prevents sleep when idle.

PostPosted: Thu Apr 02, 2015 2:56 am
by macspan
Hi,

I have tried everything I can think of and cant find any options to prevent this. Whenever newsbin is open it prevents my computer from sleeping. If i close newsbin it will sleep with no dramas. This is a problem because I want newsbin to run in the background when my pc is awake to look for files in the watch folder to download, but I dont want it to keep the pc on when nothing is downloading and nothing is using the pc, if i leave newsbin running the pc runs 24/7 and will never sleep. Is this a known bug or is there an easy fix/workaround? Any assistance would be appreciated.

Cheers,

Re: Newsbin prevents sleep when idle.

PostPosted: Thu Apr 02, 2015 8:44 am
by Quade
What version are you using? If I had to guess, I'd guess bug. Probably something still tickling the "don't sleep" function.

Re: Newsbin prevents sleep when idle.

PostPosted: Thu Apr 02, 2015 1:31 pm
by macspan
Using the latest Beta 6.60B8

Re: Newsbin prevents sleep when idle.

PostPosted: Fri Apr 03, 2015 2:53 am
by macspan
I'd drop back a version or so but I dont want to sacrifice the Sickbeard Integration. Are you able to replicate the problem?

Re: Newsbin prevents sleep when idle.

PostPosted: Fri Apr 03, 2015 8:42 am
by Quade
I haven't tried yet. None of my machine are allowed to sleep. I simply believe your report and added an action item to look into it.

I'll probably log when I tickle the "don't sleep" call and see if it goes away when Newsbin goes idle.

Re: Newsbin prevents sleep when idle.

PostPosted: Fri Apr 03, 2015 10:33 pm
by macspan
Alright cool, thanks!

Re: Newsbin prevents sleep when idle.

PostPosted: Tue Apr 14, 2015 9:55 am
by macspan
Assuming you havnt gotten to looking into this yet. Just letting u know that if it is a bug, its still present in beta 9.

Re: Newsbin prevents sleep when idle.

PostPosted: Tue Apr 14, 2015 10:58 am
by Quade
I'll have to look again. In my testing it stopped making the call to keep the system awake after the download and unrar finished.

Are you using watch lists that automatically poll the search server?

Re: Newsbin prevents sleep when idle.

PostPosted: Tue Apr 14, 2015 5:29 pm
by macspan
nah, i don't use the newsbin watch list function at all.

Re: Newsbin prevents sleep when idle.

PostPosted: Wed Apr 22, 2015 12:07 pm
by macspan
still present in beta 10... tried just about everything i can think of to no avail. can anyone else who has been viewing this thread confirm that newsbin prevents sleep when open and not downloading, and that im not going crazy?! lol

Re: Newsbin prevents sleep when idle.

PostPosted: Wed Apr 22, 2015 1:06 pm
by Quade
I'm not doubting you. Like free disk space checking, it's one of the harder things to test.

Re: Newsbin prevents sleep when idle.

PostPosted: Sun Apr 26, 2015 10:39 am
by macspan
Awesome! Can confirm this now works in Beta 11. Thank you so much!

Re: Newsbin prevents sleep when idle.

PostPosted: Sun Apr 26, 2015 11:54 am
by Quade
Thanks for the feedback. Something I wasn't expecting was tickling windows keeping it alive.

Re: Newsbin prevents sleep when idle.

PostPosted: Tue Sep 08, 2015 8:01 am
by macspan
Just a heads up it seems like this issue has come back on 6.61 RC1. It is fine in 6.61B3

Re: Newsbin prevents sleep when idle.

PostPosted: Tue Dec 15, 2015 6:56 pm
by Qoissi
Hello, just to mention macspan is not alone as I'm experiencing exactly the same.
Download is finished, no activity, but the PC doesn't go to sleep mode. If I quit NB then no problem, the PC goes to sleep after the normal timeout.
I'm noticing this very annoying behavior since few releases, probably since 6.60 this summer, and now running 6.62.
If I can help to point out the root cause don't hesitate to ask questions, I can share my config, etc.
Thanks.

Re: Newsbin prevents sleep when idle.

PostPosted: Thu Dec 17, 2015 2:18 am
by Quade
I'll have to look. Thanks.

Re: Newsbin prevents sleep when idle.

PostPosted: Sun Jan 10, 2016 8:06 am
by discomike
After over a day of troubleshooting I can confirm that Newsbin (6.62) is what's preventing my PC from sleeping too.

Re: Newsbin prevents sleep when idle.

PostPosted: Sat Nov 11, 2017 11:55 am
by samboy
I now see this problem when I upgraded from the released 6.73 to 6.80B10

System will not go into sleep mode even though the download list is empty and everything appears to be idle. Closing newsbin and the system will sleep in the scheduled 20 minutes.

I saw that there is a 6.80B11 and have updated to this......... but didn't see any comments in the release notes and will report back if this corrects the problem.

Re: Newsbin prevents sleep when idle.

PostPosted: Sat Nov 11, 2017 4:26 pm
by Quade
Is it importing headers still?

Re: Newsbin prevents sleep when idle.

PostPosted: Sun Nov 12, 2017 11:50 am
by samboy
Quade wrote:Is it importing headers still?


No, but when I expect Newsbin to be idle (i.e. download list empty and not obtaining headers which is set for every 150 minutes) then "Process Hacker" tells me that NewsBin is writing 4 bytes of information every few seconds.

I checked the NewsBin data directory and the most recent files don't seem to be getting written to. The most recent file was the LogFile.txt but I didn't see this being modified and when I exited NewsBin the LogFil.txt didn't grow longer (in case any of the I/O was being buffered)

Not even sure if a continuous 4 byte write every few seconds (which could be Socket I/O) is enough to prevent windows going to sleep? Absolutely no read I/O just write.

Re: Newsbin prevents sleep when idle.

PostPosted: Sun Nov 12, 2017 3:35 pm
by Quade
You can tell by looking at the "Cache" line. If you see a number in parens, it's still importing headers.

(i.e. download list empty and not obtaining headers which is set for every 150 minutes)


If you let it go to sleep, it won't download headers in 150 minutes right?

Re: Newsbin prevents sleep when idle.

PostPosted: Sun Nov 12, 2017 3:55 pm
by samboy
Thanks - I've confirmed that the number in parens is (0) so not importing headers.

Fully expect that if the machine goes to sleep header download will not happen until I wake up the computer again (and not worth NewsBin to set an awake timer every 150 minutes as wouldn't want to wake the system for a header download anyway).

Let me know if there is anything else to check?