15

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.

oKtosiTe
  • 9,408
  • 9
  • 46
  • 70
Behdad
  • 291
  • 1
  • 3
  • 13
  • 4
    When 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 Jan 02 '13 at 19:29
  • @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 Jan 02 '13 at 20:00
  • Then I do not understand this "And it is the same before and after opening uTorrent." – nixda Jan 02 '13 at 20:02
  • 1
    @nixda He means the output from `powercfg /requests` is the same before and after running utorrent. – Darth Android Jan 02 '13 at 21:13
  • 1
    After 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 Jan 02 '13 at 21:45
  • @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 Jan 03 '13 at 06:39
  • 3
    Process Explorer might be able to help you track down any associated processes/hooks. – Karan Jan 03 '13 at 07:24
  • 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 Mar 07 '13 at 19:14
  • @BehdadK2 Which of the answers you think was most helpful? – Desmond Hume Jul 31 '13 at 13:59
  • @DesmondHume I think [mine was](http://superuser.com/questions/527231/utorrent-prevents-computer-from-entering-sleep-state/625700#comment779959_625700) – Braiam Aug 01 '13 at 12:32
  • @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 Aug 01 '13 at 17:11
  • 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 Oct 02 '13 at 06:33
  • 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 Feb 11 '19 at 18:57

6 Answers6

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
  • 4,709
  • 3
  • 26
  • 57
  • 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 Jul 31 '13 at 16:33
  • Actually I wasn't really thinking about the bounty, just searching for the correct solution :) – Behdad Aug 01 '13 at 17:08
  • @BehdadK2 Did mine solved your problem then? – Braiam Aug 01 '13 at 17:11
  • 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 Aug 02 '13 at 18:04
1

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

1

I can not be sure that my recipe could help in you case, but it helped in my (after entering in to sleep mode - pc wakes immediately)

  • in Device Manager find lan device
  • open its Properties
  • open tab responsible for Power Management
  • remove permission to wake PC from sleep
  • Apply changes

Small explanation image

Mike
  • 41
  • 5
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".

ChrisF
  • 41,278
  • 17
  • 101
  • 154
Davidenko
  • 1,316
  • 4
  • 16
  • 32
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

  • 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 Mar 15 '13 at 21:02
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
  • 842
  • 7
  • 13
  • 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 Jul 25 '13 at 19:27
  • @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 Jul 25 '13 at 19:36
  • @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 Jul 27 '13 at 10:56
  • @BehdadK2 I've been having the same kind of problem with uTorrent, never with my Realtek Audio. – Desmond Hume Jul 27 '13 at 13:51
  • @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 Jul 27 '13 at 18:33
  • @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 Jul 27 '13 at 19:27
  • @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 Jul 27 '13 at 19:53
  • 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 Jul 27 '13 at 20:12
  • @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 Jul 27 '13 at 20:18