How to prevent Google Chrome from keeping computer awake?
Solution 1
This solved the problem for me:
hunterdg said:
see http://www.google.com/support/forum/p/Chrome/thread?tid=3b1d41b0663a4d40&hl=enin a command window:
powercfg -requestsoverride PROCESS chrome.exe awaymode display systemto remove the override:
powercfg -requestsoverride PROCESS chrome.exe
https://productforums.google.com/d/msg/chrome/vE7o1k0txtU/0ES4nTp01JsJ
Solution 2
This also drove me crazy. After trying many things, this one worked:
In short, (A)create a scheduled task to kill chrome if you computer has been idle for [IdleTime]. [IdleTime] has to be the same as your (B) "PC goes to sleep after" time you enter in Settings.
A: Create a scheduled task to kill chrome.exe
- Open Task Scheduler (hit windows key and enter "Task Scheduler")
- Click "Create Task ..." on the right side menu.
- On the General tab: enter "Close Chrome after [IdleTime] of inactivity". Do not enter the double quotes I typed on this step or any subsequent step.
- On the Triggers tab: hit "New...", then select Begin the task: "On Idle", hit OK
- On the Actions tab: hit "New...", then enter Program/script "taskkill", Add arguments "/F /IM chrome.exe /T"
- On the Conditions tab: Check "start the task only if the computer is idle for" and [enter your preferred IdleTime]
- Remember that even when you kill Chrome, your tabs are remembered. You just need to say "Restore" on the "Chrome didn't shut down correctly" prompt next time you open Chrome.
B: Set the official "PC goes to sleep after" setting
- Open "Power & Sleep Settings" (hit windows key and enter "Power settings")
- Set When plugged in, PC goes to sleep after [enter the SAME IdleTime you used on step A]
Solution 3
I've had the same problem and am still looking for a "perfect" solution. For a long time I kept Chrome in the requestsoverride
list, which in my case successfully prevented Chrome from blocking idle timeout.
The downside is that my displays would time out and shut off after the configured idle time--even when I'm watching Netflix or Youtube--because the Chrome process had lost the ability to send "still active" requests to the power subsystem. Sometimes I would work around this by opening a video in VLC and leaving it paused and minimised.
For now I'll await a solution that lets Chrome operate normally and doesn't require me to forcibly kill it, remember to shut it down manually every time I leave the PC, etc.
Solution 4
After trying all of the above solutions, the thing that worked best for me is a Chrome extension called Mutetab. It will by default mute all background tabs, and the open tab if you open a different program on your computer. Of course, it also has an exclusion list for favorite sites, and you can always manually unmute when you want to listen to something. This disables the audio driver request, and lets the computer sleep. Hope that's helpful to someone. Facebook was especially egregious. Even with an autoplay blocker, it opens an audio channel for beeps and junk like that. So if you have facebook open, it's as if the computer is playing constant audio even if you can't hear anything.
Related videos on Youtube
Ryan
Updated on September 18, 2022Comments
-
Ryan almost 2 years
My computer frequently fails to sleep.
How To Reproduce The Problem
- Open Google Chrome.
- Play a video on YouTube.*
- Open a new Chrome tab to some other website (such as SuperUser).
- Close the YouTube tab (but keep the other tab open such that Google Chrome isn't completely closed).
- Let computer sit for however many minutes are required for sleep. (But then it never sleeps!)
*(I'm 100% not sure that it needs to be YouTube, but I think the most likely scenario when I'm playing audio via Chrome is if I'm watching a YouTube video.)
I'm using Windows 10 Pro with Google Chrome Version 55.0.2883.87 m (64-bit). ("Google Chrome is up to date.")
How To Diagnose
I opened Command Prompt as an administrator and ran
powercfg /requests
and get this result:[DRIVER] High Definition Audio Device (HDAUDIO\FUNC_01&VEN_10EC&DEV_0892&SUBSYS_1849D892&REV_1003\4&13fd1513&0&0001) An audio stream is currently in use.
Through trial and error, I've narrowed down the offending program to Google Chrome. After quitting Chrome completely (all tabs) and running
powercfg /requests
again, the result is:DISPLAY: None. SYSTEM: None. AWAYMODE: None. EXECUTION: None. PERFBOOST: None. ACTIVELOCKSCREEN: None.
And then the PC sleeps appropriately.
What's weird is that Chrome is not actively playing an audio stream. But it has played audio recently, even though that tab is now closed and gone.
How can I ensure that my Windows 10 Pro can sleep normally even when Chrome is still open and even when a recently-closed Chrome tab played some audio?
UPDATE:
This is driving me crazy!
I've even disabled all Chrome extensions. My enabled extensions had been:
- Google Docs
- Google Docs Offline
- Google Sheets
- Google Slides
- LastPass: Free Password Manager
But I'm still having the problem. I'm not 100% sure that YouTube is relevant to the problem, but I don't know when else my Chrome uses audio.
By the way, it seems like many other people have experienced Chrome keeping their computer awake:
- https://stackoverflow.com/questions/22651873/do-html5-videos-keep-computer-on
- https://apple.stackexchange.com/questions/205228/chrome-prevents-macbook-from-sleeping
- https://stackoverflow.com/questions/40364878/certain-websites-in-chrome-keeping-computer-awake-by-activating-an-audio-stream
- https://bugs.chromium.org/p/chromium/issues/detail?id=179007
- https://techjourney.net/chrome-prevents-windows-from-going-into-sleep-standby-or-hibernation-mode/
- http://www.jasonhartman.net/2012/06/windows-7-wont-go-to-sleep-mode-audio.html
I'm shocked this hasn't gotten more attention because it's really annoying.
-
Burgi over 7 yearsThe video is what is keeping your PC awake. Have you looked at sleep timers for Windows? These tend to override the video and suspend the PC as if you had done it manually. See superuser.com/questions/42124/…
-
Ryan over 7 years@Burgi Why/how would a closed Chrome tab (that had been playing a video) keep the computer awake? Thanks for the link to sleep commands, but I'd rather solve the problem at the root cause instead of layer bandaids on top of it.
-
Ryan over 7 yearsI'm starting to think it's a Chrome bug because even
powercfg -requestsoverride
didn't work, and then I found Comment 79: bugs.chromium.org/p/chromium/issues/detail?id=179007#c79 -
Pedro about 7 yearsI'm also shocked people are not annoyed by this!!! My wife's computer NEVER goes to sleep because she loves leaving like 50 tabs open and one of them is prone to have some sort of video on it (usually an AD). I'll look into the sleep timer but I agree that that is a band aid and Chrome is the one at fault.
-
Peyman Zakhire about 6 yearsbug should be opened in chromium against this.
-
Qwerty about 3 years5 years later and I still have these problems. Sometimes there are even weeks when I forget about having any issues, but then it happens every f*ing time. Not even closing ALL programs and most of background processes won't allow my PC to hibernate. I wish it was just with closing Chrome, lol. It's so frustrating, I almost want to throw my laptop out of the window.
-
Ryan about 3 years@Qwerty I hear you! (And please upvote the question if you haven't already.)
-
Micromega about 5 yearsYou can try POWERCFG /REQUESTSOVERRIDE PROCESS "\Device\HarddiskVolume4\Program Files (x86)\Google\Chrome\Application\chrome.exe" SYSTEM AWAYMODE EXECUTION. At least the display should be put in sleep mode correctly. For the box you need to edit the power saving settings to match the video length.
-
Micromega about 5 yearsYou can try POWERCFG /REQUESTSOVERRIDE PROCESS "\Device\HarddiskVolume4\Program Files (x86)\Google\Chrome\Application\chrome.exe" SYSTEM AWAYMODE EXECUTION. At least the display should be put in sleep mode correctly. For the box you need to edit the power saving settings to match the video length.
-
Micromega over 4 years
-
Kalamalka Kid over 2 yearscan anyone confirm is this still works on WIN10 pro? I tried this with an elevated cmd and it didtn work>