So I upgraded my linux distribution recently from 16.x LTS to 18.04 LTS and I can't suspend my computer anymore.
At first the button didn't even appear on the nav bar (Gnome related pb) so I installed the suspend button extension provided here: https://extensions.gnome.org/extension/826/suspend-button/ and now I can see the || (pause) button as desired. But this simply shut down my computer instead of suspending it.
I tried to manually close my laptop screen but this also shut down my computer when it used to suspend it with ubuntu 16 LTS :/
I finally tried to deal with it with the terminal:
sudo pm-suspend #but shut down my computer as well sudo pm-suspend-hybrid #but just doesn't work (the screen turns black but the computer keeps working, the fan being noisy)
As I resized my partitions while upgrading from 16 LTS to 18.04 LTS, I'm wondering if the problem could possibly come from there(Maybe I did something wrong?). Here is a screenshot of my hard drives configuration (In particular I don't understand why there is a star present in the Boot column in the sda1 row when my Ubuntu is installed on sda5.
Thanks a lot in advance for your help! This is quite annoying for me being forced to shutdown my computer every time I go for a break :/
NB: Please do not hesitate to ask for further info If I'm not clear enough in what I am asking :-)
EDIT2: I tried to switch back to unity as advised but the problem still persists. Suspend button simply shutdown the computer whether I'm using Gnome or Unity.
EDIT3: I noticed that the pm-suspend command generate a .crash file when executed (I guess this one is generated during the few seconds between the execution of the command and the shutdown of my computer) Here is the report on a drive .txt file (was not too sure how to share it with you as it is really long) https://drive.google.com/file/d/1mwWwlCmOMJ05Dw9aiWC-X5pZ0hWWy_Rf/view?usp=sharing
EDIT4: I'vs got some new stuff. I changed my GPU driver from a proprietary NVIDIA driver to X org X server (cf screenshot) and now suspend is working again. I'm not really sure if I will be able to use my GPU with this open source driver but at least I have identified a possible root cause of the problem. I tried
sudo systemctl hibernate and it still doesn't work though but at least suspend is back to normal.
So the question is now what's up with the Nvidia driver? Why hibernate is still not working ?