Wait, but it is my understanding that hibernate is not supported on the CM4, and that’s why this script was created.
Sources:
Supespend and battery life - uConsole - clockworkpi
Also, I decided to try sudo systemctl hibernate
. I got this error: Call to Hibernate failed: Sleep verb "hibernate" not supported
. I also tried the suspend variant and got the same error.
I tried to map a shortcut to the Hibernate action in Settings → Workspace → Shortcuts → Power Management, but I only got the screen to “turn off” (Mouse was still visible) and the behaviour was funky overall (Ctrl + Alt would return the screen back to normal, pressing the power button would bring the shutdown menu) so yeah… hibernate doesn’t really seem to be implemented.