3

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 :-)

boot/hard drive configuration

EDIT: I checked the Tweaks option and "Suspend when laptop lid is closed" is on so the problem doesn't come from there. (cf screenshot) enter image description here

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.

GPU driver changes

EDIT5: I tried all the nvidia drivers available on the GUI software&updates panel and one of them let me suspend my laptop without any trouble (the 390 one cf screenshot) enter image description here

So the question is now what's up with the Nvidia driver? Why hibernate is still not working ?

Jeanba
  • 768
  • 1
    When you login you can select the gear next to the password and choose "Unity" desktop so you can operate in a more familiar environment within 18.04. Then you can choose the system settings for Power Management and Shutdown menu will contain the Suspend option like you are used to. – WinEunuuchs2Unix Nov 17 '19 at 15:06
  • 1
    Is Secure Boot disabled in BIOS? – Pilot6 Nov 17 '19 at 15:10
  • @WinEunuuchs2Unix I can't see any gear next to the password at login screen :/ – Jeanba Nov 17 '19 at 15:12
  • @Pilot6 I just restarted my computer and browsed the BIOS. I don't have any secure Boot option. Is it normal ? :/ – Jeanba Nov 17 '19 at 15:18
  • 1
    It is normal if your system is non-UEFI. – Pilot6 Nov 17 '19 at 15:19
  • @Pilot6 I'm feeling a little bit lost now. Did I do something wrong when I installed my ubuntu? UEFI mode was disabled in BIOS so I just tried to switch it to enabled. But then my computer refused to boot: I got the message "Reboot and select proper boot device or insert boot media in selected boot device and press a key". I checked my /sys/firmware/ folder and I don't have a efi file (but "acpi", "dmi", "memmap"). Does it explain why I can't make my computer sleep anymore ? (I swear it used to work). Thanks you so much for you help! – Jeanba Nov 17 '19 at 15:36
  • If you have UEFI it is better to install Ubuntu in UEFI mode to get all acpi functions work. maybe that it the root of the problem. Maybe not. – Pilot6 Nov 17 '19 at 15:49
  • @Pilot6 As I just upgraded my Ubuntu I think my Ubuntu 16 LTS was using the same non-UEFI configuration and sleeping mode was available so I assume that the problem is likely to come from something else (or could the combination 18.04 LTS+ non UEFI be different from the LTS + non UEFI one?) – Jeanba Nov 17 '19 at 15:56
  • Yes, it could be. It's hard to tell. Try a LiveUSB in UEFI mode and check if suspend works. – Pilot6 Nov 17 '19 at 15:57

1 Answers1

1

How to select Unity desktop in Ubuntu 18.04

When you were running Ubuntu 16.04 you were on the Unity interface. After upgrading to 18.04 the Unity interface is still there but new interfaces are offered as well. It sounds like you are searching for the Gnome Desktop which you can select from the "gear" next to the Sign In button during login:

Ubuntu 18.04 Five Desktops.jpg

You can try all the desktops to see which you like best but keep in mind:

  • Many have reported problems using the Wayland window manager which was designed to replace X11 but has not lived up to expectations.
  • When I tested 18.04 upgrade of 16.04 clone some of the options resulted in a purple screen with only a movable mouse cursor.

Can't be sure at this time but it sounds like this:

  • I don't have such a gear button :/ – Jeanba Nov 17 '19 at 15:37
  • Ok my bad, when restarting my computer I have it indeed, thanks! I switch back to unity but the "shutting down instead of sleeping' problem persists. :/ – Jeanba Nov 17 '19 at 15:47
  • @user8119313 Short press the power button and see if it suspends properly. – WinEunuuchs2Unix Nov 17 '19 at 15:54
  • Just tried it. This opened a pop-up asking me if I wanted to suspend, lock, shutdown or restart my computer. Clicking the "suspend" option shut-downed my computer once again. – Jeanba Nov 17 '19 at 16:00
  • @user8119313 OK I've updated my answer with this link: https://askubuntu.com/questions/815117/my-laptop-shuts-down-when-i-close-the-lid-even-though-its-set-to-hibernate/815134#815134 – WinEunuuchs2Unix Nov 17 '19 at 16:04
  • I tried different solutions provided in the link (using grub and so on) but it doesn't work :/ I've got some new stuff though, I noticed that when executed, the pm-suspend command generate a crash report. I'm not too sure how to share it with you though as it is a really long file – Jeanba Nov 17 '19 at 17:42
  • To attach a large log file see this: https://meta.askubuntu.com/questions/5932/how-can-i-attach-a-log-file-to-my-question – WinEunuuchs2Unix Nov 17 '19 at 17:48
  • I posted a link toward a drive file in the body of the first message, is it still ok to proceed like this? – Jeanba Nov 17 '19 at 17:57
  • 1
    @user8119313 I can read the crash report OK. I'm not good at interpreting it though. Hopefully someone while shortly! – WinEunuuchs2Unix Nov 17 '19 at 18:03
  • I updated my original question with some updates. I think it comes from the Nvidia driver but I'm still not grasping and understanding fully the implications of the change I made. – Jeanba Nov 17 '19 at 19:15