If your PC is getting locked automatically, then you need to disable the auto lock feature, by following these suggestions for Windows 11/10: Use Windows Settings Disable Dynamic Lock Disable or ...