I tried the command
but the OS said command not found so I went and installed
sudo apt-get install uswsusp
now the command worked, and the computer did hibernate, but it failed to resume.
I also installed
hoping that hibernate would show up in the menu, but it didn't. (I did press the Alt key)