question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Prevents System Sleep

See original GitHub issue

Describe the bug

When running, even when not “active”, Google Assistant prevents the system from sleeping.

To Reproduce Steps to reproduce the behavior:

  1. Run Google Assistant
  2. After any amount of time, with Google Assistant minimized to tray, open Powershell and run powercfg.exe -requests

You will likely see:

image

An audio stream is currently in use

  1. Quit Google Assistant
  2. Open Powershell and run powercfg.exe -requests

You’ll see that the audio stream is no longer in use:

image

Expected behavior

The audio stream should only be active while Google Assistant is shown. If using a “Listen for ‘Hey Google’” type of feature (which I don’t see exists?), it should not prevent computer from sleeping.

Desktop (please complete the following information):

  • OS: Win 10 Build 20H2
  • Version 1.0.0-rc.2

Additional context

I searched to see if there were any issues or PRs related to this and didn’t see any. If this has been fixed, please let me know and I’ll build from source and report back.

Notes

None of the settings in the current build seem to affect the output of powercfg.exe -requests. I tried disabling all the audio/mic options and ran into the same issues.

I’ve also tried using variations of powercfg -REQUESTSOVERRIDE DRIVER "USB\VID_046D&PID_082D&MI_02\8&82b3bcc&0&0002" SYSTEM DISPLAY AWAYMODE as a workaround, but that hasn’t seem to have helped.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Melvin-Abrahamcommented, Mar 19, 2021

@mdrichardson @coder-lg Duplicate of #30

This issue has already been reported and has been fixed. For bug details, refer https://github.com/Melvin-Abraham/Google-Assistant-Unofficial-Desktop-Client/issues/30#issuecomment-718846607

The fix will be available in the next release of this app. Till then if you want to test it, you can clone this repo and run it locally (see How to build?).

0reactions
im-coder-lgcommented, Mar 21, 2021

It worked, like after 30 seconds, it was not showing in powercfg. Thanks a lot!

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 Ways To Prevent Windows 10 Sleep Mode - Itechtics
Navigate to: Settings app >> System >> Power & sleep · Now select Never from the drop-down menus under “On battery power” and...
Read more >
How to Prevent Windows 10 from Going to Sleep - wikiHow
1. Open the Settings app. Click the Start {"smallUrl":"https:\/\/www.wikihow.com\/images\/0\/07\/Windowsstart.png","bigUrl":"\/images\/thumb\/0\/07 ... 2. Open the System category. It's the first category to the very left...
Read more >
8 Tools to Prevent Windows From Sleeping or Turning Off the ...
1. Insomnia. This simple little portable tool will prevent your computer from going into standby while it's running. · 2. Caffeine · 3....
Read more >
How to Prevent Windows 10 From Going into Sleep Mode
Prevent Windows 10 from going into sleep mode. Press Win + X or right-click the Start button. Select Power Options.
Read more >
How to prevent my computer from going into sleep mode - Quora
Open the control panel search for power settings click on sleep settings and you'll see 2 drop Downs one for plugged in and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found