WSL: Cannot wake from sleep after enabling "virtual machine platform" in AMD laptop
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!
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 43
- Comments: 95 (1 by maintainers)
Can confirm. Swift 3 SF314-42 latest BIOS update as of today (v1.07) does not fix the issue.
I’m hopeful, though; it seems that a BIOS update can, in fact, fix it, so I’ll have to wait for it…
Swift 3 SF314-42 got bios update but that didn’t fix the issue…
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.
The acer’s bios update just been released guys! Check it out, now I have everything working correctly!!!
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.
Same issue, writing from Acer Swift 3 SF314-42. Recently turned on Hyper-V and Hypervisor platform along with installing WSL2+Docker, no updates whatsoever.
Can confirm everything was normal for 6 months, as soon as Hyper-V is on, issue comes.
@jdeloshoyos, @Tarik02, Update on Acer Swift 3 SF314-42:
I just got the answer from the german Acer support (incident: 201014-005087) that they were able to reproduce the problem and found a firmware error as cause. Acer would publish a corresponding update (V1.09) on their website shortly (approx. end of December 2020).
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 😉
@jdeloshoyos, @Tarik02, @Animeshz: I received a beta version of the BIOS V1.09.PI1001.P for my Swift SF314-42 from acer support, which solves the standby problem. According to support, however, this version would not have been tested conclusively and there would be a small risk associated with its use.
The last ticket number at the German acer support is Incident: 210109-001663.
@Animeshz I have disabled sleep and I’m using hibernation instead of sleep. It is some slower (not much btw), but works good. And I binded Fn+F1 to hibernation.
I’ve just installed the latest BIOS update on my HP ENVY 15-ee0266ng via the HP Support Assistant. It looks like that finally fixed the issue and I can now use suspend again.
https://community.amd.com/thread/254849
That’s cool. Can’t wait for the update.
BIOS update 1.0.8 for Swift 3 SF314-42…
I am using the same Windows Version also with up to date drivers. But I was probably too hasty. Yesterday it seemed to work, currently the laptop doesn’t go into standby mode anymore - but at least it doesn’t crash anymore. 😕
I have, actually. That was one of the first things I tried trying to resolve this issue, updating the BIOS.
And actually, I realized I had misread the thread. I was having the opposite issue; that is, sleep mode stops working if I DISABLE hyper-v and virtual platform! From this link https://community.amd.com/thread/254849 I saw the suggestion to turn on Hyper-V and indeed, no more issues with sleep mode (so far). Although I need my VBox VMs and they don’t work with Hyper-V enabled so ultimately there’s still a problem, haha. I have no idea why it works.
Same issue with HP Envy x360 13-ay0xxxx Ryzen 4700U. I am forced to use WSL1 and cannot use Docker.
Acer Swift 3 SF314-42 the same issue. Models with both Ryzen 4500U and Ryzen 4700U.
I have the same issue with my HP Envy x360 13-ay0285ng with AMD Ryzen 7 4700u.
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.
You can extract update exe file using 7z. There is
platform.inifile and inside there’s section[Bios_Version_Check], insideFlagkey. Set it to 0 and runH2OFFT-Wx64.exe(not sure about exe file). It should downgrade BIOS.You can, but you have to extract update exe first and then edit config. I will describe this more detailed later.
@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.
@svengo I’m very glad to hear that. Can’t wait for that update.
1.08 BIOS didn’t fix it for me either! I’m at my wits’ end about this… Can it be a driver which needs updating too? BIOS v1.08 only mentions a fix for a Bluetooth recovery issue in the changelog. All Bluetooth drivers seem to be up to date in my laptop…
@svengo , could you share a little bit more info about your setup (Windows version, etc.)? I’m on Windows 10 20H2, fully up to date in Windows Update. Did you reset your BIOS settings (I tried that, didn’t work) or chose any specific setting? I’d very much like to pinpoint what really is the cause of the issue, especially if you could solve it.
BIOS update version 1.08 from 16.11.2020 fixed this problem for me.
Edit: Does not work as expected. I hope for the next version…
Same issue on Lenovo Yoga 7 with Ryzen 4800U. Updating bios solved this issue.
Can confirm this is fixed with the new BIOS update (f.13) on HP ENVY x360 13-ay0xxx with Ryzen 4700u
After installing the BIOS update, as gellweiler mentioned, waking from sleep is working on my ENVY x360.
Same here with HP ENVY x360 - 13-ay0504sa Ryzen 4500U running WSL2
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 😦
The same issue with my Lenovo Xiaoxin Air 14 AMD Ryzen 4600U