uTorrent prevents computer from entering sleep state

14

7

I've been using uTorrent for a long period of time, but recently I noticed that when I open uTorrent, I can't make my laptop go to sleep. The screen turns off and etc. but it will be still running and I should hold the power button to shut it down.

I also tried exiting it and no difference. I tried stopping all torrents and then exiting it, no difference. (and by "exiting" i really mean exiting, not just closing the window!)

I searched about this and only thing I found about it was this and as you can see, no real answers.

I also tried unchecking "Prevent standby if there are active torrents" in settings. Didn't work!

And this is what I get when I use powercfg /requests in cmd:

DISPLAY:
None.

SYSTEM:
[DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_0269&SUBSYS_104311A3&REV_1001\4&2d8ce5ba&0&0001)
An audio stream is currently in use.

AWAYMODE:
None.

And it is the same before and after opening uTorrent.

Any solutions would be highly appreciated :) Thanks in advance.

Behdad

Posted 2013-01-02T19:27:06.837

Reputation: 271

Same here, Windows 10 x64, uTorrent not downloading (just seeding), "Prevent standby if there are active torrents" is unchecked, "powercfg -requests" shows utorrent, but it occurs just some times... – Rogério Dec – 2019-02-11T18:57:14.287

4When it is the same before and after using uTorrent: What makes you think that uTorrent is causing this? Maybe theres another bad guy involved. – nixda – 2013-01-02T19:29:22.483

@nixda Because I have no problem sleeping my computer. It works fine, but every time I use uTorrent, this problem happens. I'm not saying it's "impossible" that it's not caused by uTorrent, but it's the most likely reason. – Behdad – 2013-01-02T20:00:43.657

Then I do not understand this "And it is the same before and after opening uTorrent." – nixda – 2013-01-02T20:02:18.877

1@nixda He means the output from powercfg /requests is the same before and after running utorrent. – Darth Android – 2013-01-02T21:13:07.593

1After you closed uTorrent, did you check Task Manager's Processes tab to see whether uTorrent.exe had really disappeared from the list? It's quite possible it (and/or some associated process) is still stuck doing something in the background. – Karan – 2013-01-02T21:45:54.057

@Karan Yes, I checked. How can I check that whether uTorrent opens another process? After last night, I noticed it may be possible to sleep my computer long after uTorrent is exited. I'm not sure about anything but I'm going to check it and comment back. All I'm sure about is that I can't sleep my computer when uTorrent is open or just closed! – Behdad – 2013-01-03T06:39:44.653

3Process Explorer might be able to help you track down any associated processes/hooks. – Karan – 2013-01-03T07:24:59.523

As @Karan suggested Process Explorer or Process Hacker can help you not just terminate the process but also to see the Associated Processes and terminate those too. You should terminate the whole process tree. In Process Hacker when you right click on a process you can select terminate tree. – Devid – 2013-03-07T19:14:21.420

@BehdadK2 Which of the answers you think was most helpful? – Desmond Hume – 2013-07-31T13:59:46.337

@DesmondHume I think mine was

– Braiam – 2013-08-01T12:32:27.747

@DesmondHume Well, I guess no one actually answered this question. Changing the bt.graceful_shutdows is somehow a "work-around" not a real answer. Did you try Braiam's solution? – Behdad – 2013-08-01T17:11:55.323

I am having what seems to be the same problem. My computer will sometimes not enter standby when uTorrent is running. "Prevent standby if there are active torrents" is unchecked. "powercfg -requests" output varies: sometimes the Realtek HDA driver is listed; sometimes uTorrent is listed; sometimes both or neither. The standby problem only seems to occur when uTorrent is listed, but even then only sometimes. Killing the uTorrent process allows standby. – Morgan May – 2013-10-02T06:33:07.807

Answers

3

From your comments, it seems that µTorrent has not fully closed when you try to suspend. This is an expected default behavior, since µTorrent has the bt.graceful_shutdown option activated by default. This option, as you can figure:

Graceful shutdown is for when torrents take too long to write, normally µT will close in 10 seconds, with graceful shutdown, it wont close until all the data is saved.

Meaning, that µTorrent hasn't ended writing up all the data to the disk (they are still in the Windows cache) and since you have a Laptop with slower Hard Disk, this could take a while.

You can disable this option going to Preferences > Advanced > bt.graceful_shutdown and set it to false. WARNING: This could provoke that your torrents/data gets corrupted, so it's better to wait until µTorrent finish up.

If you are going to suspend after you finish, why not let µTorrent to do so?

µTorrent has a feature to automagically do actions when all downloads (or downloads/uploads) are finished. One of this (as you can see in the screenshot) is Standby when Downloads Complete, which you might find very useful and secure.

Stack screenshot thanks to Soft32

Braiam

Posted 2013-01-02T19:27:06.837

Reputation: 4 526

Thanks for your answer. I remember that I used to give my laptop about 10 or 15 minutes and it didn't sleep, but if Desmond can approve this answer, I would accept the answer. – Behdad – 2013-07-31T16:33:24.370

Actually I wasn't really thinking about the bounty, just searching for the correct solution :) – Behdad – 2013-08-01T17:08:30.527

@BehdadK2 Did mine solved your problem then? – Braiam – 2013-08-01T17:11:48.077

As I said before, It's a long time I'm not using uTorrent anymore. I'm using BitTorrent and haven't had this problem. – Behdad – 2013-08-02T18:04:49.580

1

Go to:

Options -> Preferences -> General -> Prevent standby if there are active torrents

Make sure this is unchecked.

If this wont work,

Go to BIOS: Disable: "Wake up on LAN".

Davidenko

Posted 2013-01-02T19:27:06.837

Reputation: 1 279

this did not work. this did nothing. – ColacX – 2016-07-21T16:54:09.050

1Well, this was the very first thing I did. No difference :( – Behdad – 2013-03-10T08:58:02.160

7I don't think Wake-on-LAN has anything to do with this. WoL is for waking a computer up when it is already asleep or turned off. It shouldn't prevent the computer from entering a sleep state. – oKtosiTe – 2013-03-11T11:02:16.883

Try it please! And tell me does it work :) – Davidenko – 2013-03-11T11:03:51.310

1Has anyone even tried to go into bios? It works! – Davidenko – 2013-03-11T11:23:10.703

1@Davidenko Tweaking BIOS doesn't work. uTorrent is still preventing the computer from going into sleep, even when the list of active or stopped downloads/seeds is completely empty. – Desmond Hume – 2013-07-24T14:53:50.303

0

in version 3.5.5 there is an option that prevents sleep when there are active torrents. you will find it in Utorrent>general> Prevent sleep for active torrents

Kapil Tapsi

Posted 2013-01-02T19:27:06.837

Reputation: 1

0

This may not be entirely what you need: uTorrent 2.x has a scheduler somewhere in the options dialog. One of the options there is "Turn Off". I imagine that could be useful. With any luck, those settings are available in more recent versions uTorrent.

Although I'm uncertain about the next suggestion, you could try disabling settings as indicated in the screen shot. The reason being disc-sync (write, read) calls are a common source of activity that would prevent the OS from sleeping. Setting a higher memory cache size will consume more of your ram, but give you more time between disc access. Also using these settings implies a risk of losing downloaded (but not yet written out to disk) data in the event of uTorrent crashing, being forcibly shut down, if your computer crashes, bla bla bla.

Green: on
Red: off

utorrent cache settings

Ярослав Рахматуллин

Posted 2013-01-02T19:27:06.837

Reputation: 9 076

Thanks, applied what you said (except the last two checkboxes which weren't enable in uTorrent 3.2), but I'm really busy doing university projects, so I may respond a little late. – Behdad – 2013-03-15T21:02:28.673

0

It sounds to me that uTorrent is opening an audio stream and then failing to release it and or keeping it open. I do not know how to stop uTorrent from doing this as it sounds more like a bug to me then anything, but you should be able to ignore your Realtek driver when your computer attempts to sleep.

If you open the command prompt and issue the following command:

powercfg -requestsoverride "DRIVER" "Realtek High Definition Audio" "System"

Then execute:

powercfg -requestsoverride

You should see "Realtek High Definition Audio" listed under [DRIVER]

At this point an exception is registered for your realtek driver and should thus prevent any sleep related issues.

EDIT

For those who face a similar issue, but have a different powercfg -lastwake or powercfg /requests response this command can be modified and may help you.

You can override a system, display, or awaymode request issued by any process, driver, or service in windows 7.

Assume that uTorrent itself was indicated as the process that last woke your OS.

powercfg -requestsoverride "PROCESS" "utorrent.exe" "System"

Will override any system requests issued by "utorent.exe"

Lets say you want to override all requests by uTorrent:

powercfg -requestsoverride "PROCESS" "utorrent.exe" "System" "Display" "Awaymode"

Replace "utorrent.exe" with any process that may be waking your PC.

Other options can be found with the command powercfg /? This command will prevent your system from waking from any process, driver, or service given the proper command.

Jason Bristol

Posted 2013-01-02T19:27:06.837

Reputation: 776

I don't think it's related. Realtek High Definition Audio appears in the list whenever some audio is being played, and it just happened that the OP was playing something when he was running powercfg. But the audio driver never gets in the way of going into sleep (I've got the very same audio on my machine, so I know for sure). – Desmond Hume – 2013-07-25T19:27:19.633

@Desmond Hume In my experience I have found audio streams to be the culprit in the majority of sleep related issues. It may not be the driver itself at fault, but the fault of a process or application somewhere using the driver, in this case potentially utorrent. This doesn't necessarily fix that issue, but rather provides a workaround to it by overriding the driver. It would be interesting to see if this command produces any results for the OP – Jason Bristol – 2013-07-25T19:36:12.793

@JasonBristol Since it's a long time I've asked this question, I've been using BitTorrent for some time and I can't approve your answer. I'm wondering if Desmond is having the same problem or just interested. If he can do this and report back, that would be great, otherwise, I'll install uTorrent again. – Behdad – 2013-07-27T10:56:43.457

@BehdadK2 I've been having the same kind of problem with uTorrent, never with my Realtek Audio. – Desmond Hume – 2013-07-27T13:51:16.183

@DesmondHume This solution doesn't address an issue with your audio driver, it addresses an issue with an application that uses your audio driver by telling the operating system to ignore your audio driver when attempting to sleep. Again, from the looks of it uTorrent is accessing your audio driver which is preventing your operating system from sleeping. – Jason Bristol – 2013-07-27T18:33:30.177

@JasonBristol Well, when I was having problems with putting my PC into sleep, powercfg didn't tell anything about any audio drivers, the only line it showed was related to uTorrent itself. – Desmond Hume – 2013-07-27T19:27:05.070

@DesmondHume My response was to Behdad K2's issue in which Realtek was reported by the OS as the culprit. I have updated my solution to provide possible insight for your issue as well. – Jason Bristol – 2013-07-27T19:53:56.240

I'll look into your edit but I don't really understand what powercfg -lastwake has to do with it. The OP and I were both using powercfg /requests to get info on what was preventing the PC from going into sleep, not on what woke it up last time. – Desmond Hume – 2013-07-27T20:12:10.257

@DesmondHume That is correct, however both commands indicate that a request is being made that is preventing your computer from sleeping whether that means waking it up from sleep or in your case actually stopping it from sleeping. powercfg -requestsoverride will override these requests and allow your system to sleep. – Jason Bristol – 2013-07-27T20:18:49.957