Stuck on a Black Screen if the Mac goes into sleep mode while screen is open
When my Mac goes into sleep mode while the computer screen is still open, when waking, it is stuck on a black screen and I am not able to get out of it. I have to restart the computer every time this happens and it is a little frustrating to loose the work I was perviously working on. This issue doesn't happen if the Mac goes into sleep mode then the screen is closed. I have tried some solutions I found online, including creating a sticky key, but was unable to create sticky keys.
This didn't use to happen the first maybe 2 years after I bought the new Mac so I am not sure why it started as well. Has anyone experienced this and have a solution for this problem? thanks
MacBook Pro 13", macOS 10.13