[Fixed] Virtualbox 5 and 6 wake Windows 10 from standby mode (#18549)
[Fixed] Virtualbox 5 and 6 wake Windows 10 from standby mode (#18549)
ModEdit; related ticket: #18549: Windows host wakes from standby mode constantly => Fixed in SVN
Hi,
after upgrading to Windows 10 I noticed that Virtualbox wakes the system from standby mode after few(!) seconds to minutes. I tried both versions 5 and 6.
My questions:
Why is it waking Windows? It does not make sense to me.
How do I disable this behaviour of Virtualbox?
Note that I need wake timers for other purposes, so I cannot disable them system wide.
Thanks.
Last edited by socratis on 10. Apr 2019, 09:51, edited 1 time in total.
Reason: Marked as [Fixed].
Reason: Marked as [Fixed].
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Virtualbox 5 and 6 wake Windows 10 from standby mode
Because a "computer" is running? Your VM?blubbb wrote:Why is it waking Windows? It does not make sense to me.
Shut down the VM. It's not a good idea to put a VM to sleep...blubbb wrote:How do I disable this behaviour of Virtualbox?
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Re: Virtualbox 5 and 6 wake Windows 10 from standby mode
Our old installation had no problems with the vm in the background while sleeping. Why should this be the case anyway? It is as if just pausing it.
And with the default settings in Windows, wakeups do not work at all! Neither for Vbox nor for other programs. So my guess is, 99% of the users do not end their vms before putting the host to sleep. It just continues to "work" in the background.
Looks like a bug to me.
And with the default settings in Windows, wakeups do not work at all! Neither for Vbox nor for other programs. So my guess is, 99% of the users do not end their vms before putting the host to sleep. It just continues to "work" in the background.
Looks like a bug to me.
-
- Volunteer
- Posts: 1631
- Joined: 25. May 2010, 23:48
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Assorted Linux, Windows Server 2012, DOS, Windows 10, BIOS/UEFI emulation
Re: Virtualbox 5 and 6 wake Windows 10 from standby mode
After upgrading what - host or guest?blubbb wrote:after upgrading to Windows 10
As Windows 10 is the most common (probably) host and guest used with VirtualBox if this was a bug then there would likely be many more reports of the problem. As there aren't for the time being it is classified as "an isolated incident with a single user that needs further investigation". Less snappy than "bug" but more accurate!blubbb wrote:Looks like a bug to me.
We are going to need a much better description of your setup, how the problem manifests itself, anything that can be done to provoke it, etc.
-Andy.
My crystal ball is currently broken. If you want assistance you are going to have to give me all of the necessary information.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Please don't ask me to do your homework for you, I have more than enough of my own things to do.
Re: Virtualbox 5 and 6 wake Windows 10 from standby mode
Host: Windows 10 Pro 64
Guest: Ubuntu 16 LTS
Steps to reproduce problem:
- In Windows' power options / sleep / allow wake timers / set this to "enable" (I would link to an image but the forum does not permit this)
- Start guest system
- Hit sleep button on host system
Problem:
- The host wakes up after a few seconds/minutes.
Execute
powercfg /lastwake
You will see that VBoxSVC.exe was the cause.
Guest: Ubuntu 16 LTS
Steps to reproduce problem:
- In Windows' power options / sleep / allow wake timers / set this to "enable" (I would link to an image but the forum does not permit this)
- Start guest system
- Hit sleep button on host system
Problem:
- The host wakes up after a few seconds/minutes.
Execute
powercfg /lastwake
You will see that VBoxSVC.exe was the cause.
Re: Virtualbox 5 and 6 wake Windows 10 from standby mode
We need to set this to "enable" to use our other wake timers on the host system.
- Attachments
-
- a.png (23.22 KiB) Viewed 8917 times
Re: Virtualbox 5 and 6 wake Windows 10 from standby mode
I know a bit or two about the WinAPI and browsed through your source code. The problem most probably is here:
https://www.virtualbox.org/browser/vbox ... n.cpp#L192
Line 192. You are calling SetWaitableTimer with last parameter true. The last parameter is whether or not to resume the system. This results exactly in the described behaviour.
https://docs.microsoft.com/en-us/window ... tabletimer
https://www.virtualbox.org/browser/vbox ... n.cpp#L192
Line 192. You are calling SetWaitableTimer with last parameter true. The last parameter is whether or not to resume the system. This results exactly in the described behaviour.
https://docs.microsoft.com/en-us/window ... tabletimer
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: Virtualbox 5 and 6 wake Windows 10 from standby mode
IMHO, this kind of information would be better placed in a BugTracker ticket where the devs are likely to see it, rather than a user level discussion topic.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: [Fixed] Virtualbox 5 and 6 wake Windows 10 from standby mode (#18549)
Added ticket information and marked as [Fixed], as per the resolution of ticket #18549.
Excellent work there @blubbb!!!
Excellent work there @blubbb!!!
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.