Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot wake from sleep after enabling "virtual machine platform" in AMD laptop #5690

Open
hzxa21 opened this issue Jul 31, 2020 · 94 comments
Open

Comments

@hzxa21
Copy link

hzxa21 commented Jul 31, 2020

Environment

Windows build number: Microsoft Windows [Version 10.0.19041.388]
Your Distribution version: Ubuntu
Whether the issue is on WSL 2 and/or WSL 1: WSL2

Steps to reproduce

  • Turn on "virtual machine platform" windows feature
  • Go to start menu, choose power -> sleep
  • After ~10s, try to wake up the laptop by keyboard/touchpad/power button.

Expected behavior

Keyboard/touchpad/power button can wake my laptop up.

Actual behavior

Nothing can wake my laptop up from sleep mode. keyboard/touchpad/power button won't work.

Notes

  • My laptop has the AMD Ryzen 4700U CPU. I saw online that many people with a AMD laptop complains about the same issue and someone mentions that there is a software problem in windows10 controller component.
  • If I turn off "virtual machine platform", I can wake my laptop from sleep mode without any issue
  • I like WSL2 very much and I want to use it at a daily-basis for development. Please help fix the issue!
@therealkenc
Copy link
Collaborator

Same #5549. Yours can be the new LZ.

@hcen1997
Copy link

hcen1997 commented Aug 1, 2020

hi therealkenc i heve this issue too
in my amd laptop, if i try to turn on 'virtual machine platform' and restart windows.
it will show lenovo logo as uefi logo and don't show loading circle and stay black screen with high cpu usage (based on fan)
after l enter safety mode, the system said 'Unable to complete the feature configuration, the changes are being undone' then back to normal without 'vitual machine platform'

i think there is some thing wrong with my bitlocker.(#4103

so i will unlock volume and wait

@hcen1997
Copy link

hcen1997 commented Aug 1, 2020

no not caused by bitlocker.
still go black and see 'Unable to complete the feature configuration, the changes are being undone'

@hzxa21
Copy link
Author

hzxa21 commented Aug 2, 2020

I tried turning off bitlocker on my laptop but it still cannot wake from sleep if "Virtual Machine Platform" is turned on.

@Darkein
Copy link

Darkein commented Aug 4, 2020

I have the same problem with a redmibook powered by ryzen and a fresh install of windows 10 pro 2004. Everything worked correctly until I install wsl 2 :/

@Darkein
Copy link

Darkein commented Aug 5, 2020

just reinstalled windows and it worked again. I tried to install WSL2 step by step and this command broke sleep mode:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

@hzxa21
Copy link
Author

hzxa21 commented Aug 5, 2020

@Darkein Yeah, I also noticed that the wake up from sleep won't work if virtual machine platform is enabled. Hope this will be fixed soon.

@2001zhaozhao
Copy link

2001zhaozhao commented Aug 11, 2020

Same issue on my HP envy x360 13 (4700U) and my desktop (3700x). Both of them can not sleep properly with virtualization on (sometimes they can't enter sleep, other times they can't wake up from sleep, either way it doesn't work) but hibernate works fine.

@hzxa21
Copy link
Author

hzxa21 commented Aug 15, 2020

Upgraded to Microsoft Windows [Version 10.0.19041.450]. The same issue still persists.

@hochunleung
Copy link

The same issue with my Lenovo Xiaoxin Air 14
AMD Ryzen 4600U

@jeff84
Copy link

jeff84 commented Aug 25, 2020

I have the same issue with my HP Envy x360 13-ay0285ng with AMD Ryzen 7 4700u.

@esskay
Copy link

esskay commented Aug 30, 2020

Same issue with HP ENVY x360 Laptop - 13-ay0045au with AMD Ryzen 4500U
Using slower WSL1 for now which does not support mounting of images :(

@tarik02
Copy link

tarik02 commented Aug 30, 2020

Acer Swift 3 SF314-42 the same issue. Models with both Ryzen 4500U and Ryzen 4700U.

@markspilot
Copy link

Same here with HP ENVY x360 - 13-ay0504sa Ryzen 4500U running WSL2

@nivagator
Copy link

Same here with HP Envy x360 13-ay0075nr Ryzen 4700U. I am also forced to use WSL1 and a remote machine until this is resolved.

@markspilot
Copy link

Same here with HP Envy x360 13-ay0075nr Ryzen 4700U. I am also forced to use WSL1 and a remote machine until this is resolved.

How to I downgrade to WSL1?

@nivagator
Copy link

Same here with HP Envy x360 13-ay0075nr Ryzen 4700U. I am also forced to use WSL1 and a remote machine until this is resolved.

How to I downgrade to WSL1?

wsl --set-version <Distro> 1

@markspilot
Copy link

markspilot commented Aug 31, 2020

Same here with HP Envy x360 13-ay0075nr Ryzen 4700U. I am also forced to use WSL1 and a remote machine until this is resolved.

How to I downgrade to WSL1?

wsl --set-version <Distro> 1

Thanks a lot! I disabled virtualization and it's all good.

@showyou
Copy link

showyou commented Sep 2, 2020

Same issue with HP Envy x360 13-ay0xxxx Ryzen 4700U. I am forced to use WSL1 and cannot use Docker.

@dapao9999
Copy link

Same here 4600u lenovo xiaoxin air14

@MU-Software
Copy link

Happened on HANSUNG(not Samsung!) TFX5470H Laptop. It uses Ryzen 4800H.
Had to open laptop backplate and unplug battery terminal😥

@ajf-sa
Copy link

ajf-sa commented Sep 8, 2020

Same issue with HP ENVY x360 Laptop - 13-ay0001au with AMD Ryzen 4700u
WSL2

@psybersenpai
Copy link

Same issue on my HP ENVY x360 Convertible 15m-ee0xxx AMD Ryzen 5 4500U. I really want to use WSL2 but I have to miss out because of this error.

@xpierrohk
Copy link

On my 4500U, it made the screen flickers at regular interval. There's a definite issue with WSL2 / VM Platform on these CPUs !

@tarik02
Copy link

tarik02 commented Sep 11, 2020

@xpierrohk that’s an issue with virtualisation in particular. It disappears if you disable virtualisation in bios and appears to happen both in Windows and Linux.

@xpierrohk
Copy link

xpierrohk commented Sep 11, 2020

@xpierrohk that’s an issue with virtualisation in particular. It disappears if you disable virtualisation in bios and appears to happen both in Windows and Linux.

Interesting, so would that mean the entire feature from AMD is fake and never actually works (well I mean, without blinking half the screen at random) ? Out of curiosity, if it happens to me on Linux, which equivalent to the "virtual machine platform" should I uninstall ?

@allumik
Copy link

allumik commented Sep 11, 2020

Can confirm this also, HP Envy x360 here with Ryzen 4700. Can't do without wsl2, so i temporarily solved it by going to hibernate instead of sleep all the time. Is there some forum post/issue tracker thingy that addresses this on the AMD side?

@tarik02
Copy link

tarik02 commented Sep 11, 2020

@xpierrohk that’s an issue with virtualisation in particular. It disappears if you disable virtualisation in bios and appears to happen both in Windows and Linux.

Interesting, so would that mean the entire feature from AMD is fake and never actually works (well I mean, without blinking half the screen at random) ? Out of curiosity, if it happens to me on Linux, which equivalent to the "virtual machine platform" should I uninstall ?

I have no any problems with screen blinking, the only problem is sleep. It can be replaced with hibernation, but that's more temporary solution than general one. I think, we should wait for fix from amd.

P.S. You seem to have some another problem, idk. But for curiosity, try to disable virtualization feature in BIOS. But I think, u r having some another problem with your graphics driver that are still not enough optimized in Linux kernel.

@tarik02
Copy link

tarik02 commented Sep 11, 2020

Can confirm this also, HP Envy x360 here with Ryzen 4700. Can't do without wsl2, so i temporarily solved it by going to hibernate instead of sleep all the time. Is there some forum post/issue tracker thingy that addresses this on the AMD side?

https://community.amd.com/thread/254849

@aelfinn
Copy link

aelfinn commented Jan 29, 2021

@svengo
I don't think I'm allowed to post the update. It is best to contact Acer support yourself.

I did. They told me they didn’t know of any beta version: “Ein "Beta" Bios V1.09 für Ihr Notebook ist uns nicht bekannt.” :D

Maybe you could send me a link via email?

@jdeloshoyos
Copy link

@aelfinn
Do you think you could make that version available to others so we can see whether it solves the problem for us as well? That would be much appreciated!

I don't think I'm allowed to post the update. It is best to contact Acer support yourself. If there are enough bug reports, maybe Acer will speed up the release of the update.

Did you try it out, anyway? Does it work?

@svengo
Copy link

svengo commented Jan 29, 2021

I don't think I'm allowed to post the update. It is best to contact Acer support yourself. If there are enough bug reports, maybe Acer will speed up the release of the update.
Did you try it out, anyway? Does it work?

Yes, I did not have any more crashes after the update. The "Connected Standby" seems to work normally. I could not find any negative side effects.

@jdeloshoyos
Copy link

Yes, I did not have any more crashes after the update. The "Connected Standby" seems to work normally. I could not find any negative side effects.

It's been more than a month since this, and Acer still does not release the updated BIOS. It might be that they have found some blocking problem with the update, and of course, in the case of something as important and low-level as the BIOS, they must make sure the final product is rock-solid. Still, seeing as some other brands released updated and working BIOS regarding this same problem months ago, to be kept waiting is becoming more and more annoying as days pass ;-)

@Animeshz
Copy link

The acer's bios update just been released guys! Check it out, now I have everything working correctly!!!

@jdeloshoyos
Copy link

The acer's bios update just been released guys! Check it out, now I have everything working correctly!!!

Yes, can confirm! New 1.09 BIOS for Acer Swift 3 (SF314-42) correctly resolves this issue. Now I can keep using Docker/WSL2 and have my computer sleep without problems.

@svengo
Copy link

svengo commented Mar 11, 2021

The acer's bios update just been released guys! Check it out, now I have everything working correctly!!!

Just for the record: This BIOS update from acer has the same version number as the beta version, which has been running smoothly on my system since January.

@aelfinn
Copy link

aelfinn commented Apr 2, 2021

Updated my SF314-42 to official BIOS v.1.09; standby on Kubuntu 20.04.2 not working just as before.

@tarik02
Copy link

tarik02 commented Apr 3, 2021

@aelfinn the problem is in sleep states (modern standby). Linux does not fully support this and can't enter sleep state (s0 with some letters). Before, sleep was implemented with s3 state. I recommend you downgrading your BIOS to v1.04 so you can access advanced menu (turn off laptop, click buttons F4, 4, r, f, v, F5, 5, t, g, b, F6, 6, y, h, n) then you can disable modern standby.

@aelfinn
Copy link

aelfinn commented Apr 7, 2021

@aelfinn the problem is in sleep states (modern standby). Linux does not fully support this and can't enter sleep state (s0 with some letters). Before, sleep was implemented with s3 state. I recommend you downgrading your BIOS to v1.04 so you can access advanced menu (turn off laptop, click buttons F4, 4, r, f, v, F5, 5, t, g, b, F6, 6, y, h, n) then you can disable modern standby.

Thing is: I can't downgrade to 1.04 — the BIOS updating software gives an error because the BIOS to be flashed isn't newer than the on installed. :(

@tarik02
Copy link

tarik02 commented Apr 7, 2021

Thing is: I can't downgrade to 1.04 — the BIOS updating software gives an error because the BIOS to be flashed isn't newer than the on installed. :(

You can, but you have to extract update exe first and then edit config. I will describe this more detailed later.

@tarik02
Copy link

tarik02 commented Apr 7, 2021

Thing is: I can't downgrade to 1.04 — the BIOS updating software gives an error because the BIOS to be flashed isn't newer than the on installed. :(

You can extract update exe file using 7z. There is platform.ini file and inside there's section [Bios_Version_Check], inside Flag key. Set it to 0 and run H2OFFT-Wx64.exe (not sure about exe file). It should downgrade BIOS.

@muhammadyusuf-kurbonov
Copy link

Has someone same issue with Intel CPU?
I have same issue with Intel Core i5-10300H. Lenovo ideapad gaming 3

@ghost
Copy link

ghost commented Jul 1, 2021

Has someone same issue with Intel CPU?
I have same issue with Intel Core i5-10300H. Lenovo ideapad gaming 3

I have the same issue on Intel desktop i7-7800x

@nikhilreddydev
Copy link

@tarik02 have you got your SF314-42 sleep issue resolved with the BIOS v1.09 update?
I am currently running on v1.04 on my SF314-42.

@tarik02
Copy link

tarik02 commented Jul 21, 2021

@nikhilreddydev, yes, BIOS 1.09 does not have such problem.

@nikhilreddydev
Copy link

I had same issues with wsl2 with ubuntu 20.04, my laptop cant able to wake up from sleep. so I disabled VMP.
Thanks for that fast reply tho.

@tarik02
Copy link

tarik02 commented Jul 21, 2021

I had same issues with wsl2 with ubuntu 20.04, my laptop cant able to wake up from sleep. so I disabled VMP.

Thanks for that fast reply tho.

Actually, it fixed the issue with windows, not sure about Linux. As I know, Linux works very bad with modern standby and it can cause issues.

@nikhilreddydev
Copy link

Okay, I just need the wsl2 to be working on my machine without any sleep issues.
I got firmware update just now.

Cant wait for wsl2 + docker + windows working seamlessely

@hingashi-coder
Copy link

Same problem on ASUS ROG Zephyrus G14 Ryzen 9 4900HS.

@Harvtronix
Copy link

Same issue for me. When I install Docker (which installs WSL2 and Virtual Machine Platform), I immediately begin seeing sleep wakeup hangs. As soon as I uninstall it (and WSL2 and VMP), the sleep problems go away.

Hardware:

  • Mobo: Gigabyte Z390M Gaming
  • CPU: Core i7-9700k
  • GPU: Radeon RX 6800 XT

@Animeshz
Copy link

For linux users, set CONFIG_AMD_PMC to m or y in the linux kernel's menuconfig before building the kernel (this is missing in some distros as a result s0ix/s2idle does not function properly), it should now work as expected, have tested on kernel v5.15.2 (a bit more info).

@elzik
Copy link

elzik commented Feb 21, 2022

I have had the same issue on my DELL Inspiron 7373 laptop for a long time now. I have been trying to find the cause for this for a long time. I now understand that it is installing Docker Desktop (and therefore Virtual Machine Platform) that breaks both Sleep and Hibernate for me and would cause the machine to stay on and heat-up. Within 6 months it had totally destroyed my battery.

Uninstalling Virtual Machine Platform fixes the problem (but obviously stops me from using Docker).

Have any DELL Inspiron users faced the same issue? Has anyone found a fix? I'd like to be able to use Docker again. I have the latest BIOS and drivers from DELL.

@hingashi-coder
Copy link

I tried to use Docker with Hyper-V(Without WSL2)
But It won't fix.

@muhammadyusuf-kurbonov
Copy link

It was fixed, when I reinstall OS with Secure boot, on GPT (earlier it was on MBR) and have installed all updates of that time (it was about a year ago).

@jtraxy
Copy link

jtraxy commented Aug 18, 2022

I got the same issue with a Dell XPS 15 9500 laptop running Windows 11 Pro 21H2 after I had installed Docker Desktop, which also installs WSL2. This laptop has an Intel Core i7-10750H CPU @ 2.60 GHz.

I found that the machine would hang (at the Dell logo, i.e. before getting into Windows) on attempting to wake from sleep.

Also, it would come back to that same hanging state on shutting the lid (presumably it went into sleep and then tried to wake again). This meant that the laptop would get extremely hot in my backpack (with fans running full blast).

I tried all sorts of settings to attempt to resolve but I couldn't fix it and had to always either leave my machine on or shut it down. In the end I reinstalled Windows. I am not keen to reinstall WSL2 unless I know the issue is resolved.

@Ecdldaiiere
Copy link

Thank god for opening up this issue. One day out of the blue my Windows 10 Acer Swift 3 AMD computer would not wake up from sleep, and every time I had to hold down the power button to turn it off and then one more time to turn it back on again. I tried all the tutorials online concerning problems waking up computer from sleep but nothing worked.

This went on for a few days, and I was seriously considering buying a new laptop because I thought it was something wrong with my batteries. I didn't know why this started suddenly happening. I only knew that it started happening on the day I installed Docker. But I didn't connect the dots until I finally searched "computer won't wake up if sleeping too long docker" and found this thread and turned off "Virtual Machine Platform". Now the issue is completely fixed. Thank you so much for making this thread and saving me from so much frustration and confusion.

@jdeloshoyos
Copy link

Thank god for opening up this issue. One day out of the blue my Windows 10 Acer Swift 3 AMD computer would not wake up from sleep, and every time I had to hold down the power button to turn it off and then one more time to turn it back on again. I tried all the tutorials online concerning problems waking up computer from sleep but nothing worked.

This went on for a few days, and I was seriously considering buying a new laptop because I thought it was something wrong with my batteries. I didn't know why this started suddenly happening. I only knew that it started happening on the day I installed Docker. But I didn't connect the dots until I finally searched "computer won't wake up if sleeping too long docker" and found this thread and turned off "Virtual Machine Platform". Now the issue is completely fixed. Thank you so much for making this thread and saving me from so much frustration and confusion.

This issue was solved long ago with a firmware update anyway... I have the latest firmware for my Swift 3 (model SF314-42) and use Docker all the time without issues. You could try searching for updated firmware and seeing if that solves the issue for you.

@florian-leblanc
Copy link

I searched for weeks to find out why I couldn't put my computer into sleep mode. Finally, I discovered that it happened after I installed WSL2. When I unchecked the 'Virtual Machine Platform' option, the sleep mode started working again, but WSL2 stopped functioning.

Here is my configuration:
Motherboard: X670 AORUS ELITE AX
Processor: AMD Ryzen 9 7950X 16-Core

Windows version:
Edition: Windows 11 Pro N
Version: 22H2
Installed on: 20/05/2023
OS build: 22621.1702
Experience: Windows Feature Experience Pack 1000.22641.1000.0

@b1scu1t
Copy link

b1scu1t commented Mar 17, 2024

I have the same issue with the Windows Hypervisor/WSL2, but not consistently with a Dell Precision 7520.

With WSL2/Hypervisor enabled, the laptop will wake from sleep normally almost every time (4-in-5) when the charger is connected.

If the charger is disconnected/runs on battery and put to sleep, there is a 2-in-3 chance that the system fails to wake; the power button and keyboard lights-up, but no HDD activity and the screen remains dead.

Disabling the Hypervisor/WSL2 with bcdedit /set hypervisorlaunchtype auto solves the problem, but I lose WSL2.

I've tried updating the BIOS and switching between the Dell-provided drivers and the generic up-to-date ones from Nvidia and Intel...they don't work.

Windows 10 Enterprise LTSC
Kernel: 10.0.19044.0
Host: Dell Inc. Precision 7520
CPU: Intel(R) Core(TM) i7-6820HQ CPU @ 2.712GHz
GPU: NVIDIA Quadro M2200
GPU: Intel(R) HD Graphics 530

I genuinely thought the laptop was kicking the bucket for a long time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests