
Sometimes the NVRAM can become corrupted, which could cause an issue like this. It stores various OS X data like speaker volume, mouse and trackpad settings, and screen resolution. The only quick, permanent solution that I’ve seen fix this problem is resetting the NVRAM (non-volatile random-access memory). I’ve personally seen it happen on my MacBook every few months or so, but there are a couple of fixes that you can try out. We’re not exactly sure why it occurs, but it’s a known reoccurring issue. Furthermore, your Mac may also never go to into sleep mode because of this and will remain on until you can fix the problem and get back to the desktop. The keyboard and mouse will still work, meaning that if you click your mouse or type on your keyboard while your screensaver is frozen, your Mac will still register it. The mouse cursor will appear on the screen and you can freely move it around, but the screensaver will still show. If your Mac’s screensaver freezes, moving your mouse cursor around or hitting keys on the keyboard won’t make it go away.
