Hi.
I had the following issue: when closing the laptop lid and trying to connect remotely to my laptop via AnyDesk the game was frozen. I have found out that it's because a process turns off the GPU when closing the lid. I have an Ndvidia dedicated card, so this post might not apply to all laptops/GPUs. Bellow is a solution of how i made it work.
Basically with a laptop what often happens is when your lid is closed and the monitor is off, your computer stops registering the display driver completely so no picture is being sent through Anydesk for you to see. The only way I've found to resolve this so that it works the way I want it to is to intentionally break the ACPI Lid driver.
Here are the steps:
Open Device Manager (search it in the Start menu).
In "System devices" find "ACPI lid".
Open "ACPI lid" properties, and go to the "Driver" tab.
Select "Update driver".
Choose "Browse my computer for driver software" and "Let me pick.."
Uncheck "Show compatible hardware".
In "Manufacturer" select "(Standard system devices)", or in Windows 8, choose Microsoft as the manufacturer - different place, but the hack still works (at least in the 64bit Release Preview)
For model, select "Volume manager". (or any model that would not break when the ACPI lid stops it)
Restart the system and it works!
Hope this helps!
Cheers