This might be worth a try, not sure if it will help your problem but if its during a boot up then it might work. During boot up with the lid closed laptops may go into suspend mode before logging in.
1 Like