No. However, I did find a fix! TL;DR: In the BIOS I enabled ErP (Energy-related Products).
My tale:
I started with verifying the Power Plan setting to ensure they were all set to never sleep, never turn off display, and do nothing when lid is closed. With an external screen plugged in, it went into standby 1-2 seconds after closing the lid. I had to move the mouse to "wakeup" the laptop and use the external monitor.
I ran the Registry Script and it disabled Modern Standby (S0), but that didn't fix the issue. It just disables standby completely so you can't use it at all. When you close the lid, the laptop shuts down. According to Reddit, new laptop hardware doesn't support the Legacy Standby (S3).
https://www.reddit.com/r/XMG_gg/comments/rti9xe/standby_s3_the_system_firmware_does_not_support/
So then I double checked all the Power Plan setting to ensure they were all set to never sleep, never turn off display, and do nothing when lid is closed. It still shut down after closing the lid.
After that I opened up BIOS. I disabled Fast Boot and enabled ErP (Energy-related Products). Finally It works properly! The screen and keyboard backlights turn off when the lid is closed, but it doesn't go into Sleep Mode. If the screens are extended it will flicker and shift everything onto the external display. If only the external is enabled, then there is no change when the lid is closed. However, when I opened the laptop it automatically extended the display again. Sleep Mode also works normal when you manually go into it.
I hope this helps!
PS:
I didn't use this, but this site lists other ways to prevent the laptop from sleeping, like Command Prompt, Task Scheduler, and Group Policy.
https://keys.direct/blogs/blog/how-to-stop-laptop-from-sleeping-when-closed-windows-11
My Laptop:
ASUS
- ROG Strix G17 17.3” 240Hz Gaming Laptop QHD
- AMD Ryzen 9 7945HX
- 16GB Memory
- NVIDIA GeForce RTX 4070
- 1TB SSD
Windows:
Edition - Windows 11 Home
Version - 22H2
OS build - 22621.2428
Experience - Windows Feature Experience Pack 1000.22674.1000.0
What is ErP?
https://www.cgdirector.com/what-is-erp-mode-erp-ready-in-bios/