I use hibernate every day. Recently (without any conscious change from me) it stopped working. Whenever the computer is supposed to hibernate, it only locks the computer. Clicking hibernate, pressing the power button and (worst) low battery all have the same effect.
I don't even know how to trouble shoot this situation. Sleep works. hiberfil.sys exists. Hibernation is in the list of choices for the power button.
This happens always, even directly after a reboot.
edit: since i dont know how to format in comments:
C:\Windows\system32>bcdedit /enum all The boot configuration data store could not be opened. The configuration registry database is corrupt.
edit: i was told to try
bootrec /rebuildbcd. this doesnt exist in regular or safe mode, but according to google in repair mode. so i booted into that mode, it detected on its own that there's a problem and asked, if i wanted to fix it. i clicked yes, and now hibernate works again.
edit: apparently, my question is kind of a duplicate of: How to diagnose failure to hibernate after hard drive swap (yet sleep works fine)?