No suspend or hibernate options in GnomeShell

12 replies [Last post]
stephP
Offline
Joined: 06/08/2018

Hi,

New user here. I purchased a laptop from Minifree which came with Trisquel pre-installed. I hadn't heard about it but it seems like something I'd like to keep running if I can make it work.

I followed the guide and installed GnomeShell. Surprisingly, my laptops doesn't goes to sleep anymore when I close the lid. I did some research and found a GnomeShell extension that add a suspend button which is good but I'm clueless what to do to bring back the original behavior.

Any help will be much welcome.

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

What happens if you open a terminal (Ctrl+Alt+T) and run

systemctl suspend

or

systemctl hibernate

and press enter?

stephP
Offline
Joined: 06/08/2018

System suspends or hibernates nicely

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

> System suspends or hibernates nicely

Then a temporary workaround might be to map[1] those commands to keyboard shortcuts. When I get home I'll install GNOME and look into getting it to suspend when you close the lid. In the meantime, see if you can find anything about behavior when lid is closed under power management settings.

[1] https://help.gnome.org/users/gnome-help/stable/keyboard-shortcuts-set.html.en

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

For me GNOME suspends when I close the lid.

Install gnome-tweak-tool if you haven't already, run it, and go to 'Power'. There are two settings under 'When Laptop Lid is Closed', one for while plugged in and one for while on battery power. For me both are set to Suspend. There is also a setting call 'Don't suspend on lid close'. which for me is set to Off. If your settings are different, change them to match mine and see if that fixes the problem. If not, we'll keep looking.

stephP
Offline
Joined: 06/08/2018

Yes GNOME suspends for me too when I close the lid. It's nice but I wish it could hibernate instead. I installed gnome-tweak-tool and my settings are the same as yours. No matter which option I select, the system will always suspend when I close the lid. Not shutdown, not log off, not hibernate, only suspend. Thanks.

GrevenGull
Offline
Joined: 12/18/2017

May I ask why you prefer hibernate over suspend?:)

nadebula.1984
Offline
Joined: 05/01/2018

I use almost exclusively hibernation (vs. suspending or shutting down). I can pause the computing process and then dump the memory to internal disk (when I have to leave my current location). When I arrive at my new location, I can resume my mobile workstation and commence the computing.

(For this reason, I don't use SSD. The massive writing may wear out the SSD quickly.)

stephP
Offline
Joined: 06/08/2018

Actually, even suspend doesn't always work. All is good with Mate though so it's pretty frustrating.

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

> Actually, even suspend doesn't always work. All is good with Mate though so
> it's pretty frustrating.

I won't have time to investigate any further for next few days, but if no one else has helped you by then I'll look into it. In the meantime, I suggest suspending and hibernating manually using 'systemctl suspend' and 'systemctl hibernate', mapping those commands to keyboard shortcuts if desired.

stephP
Offline
Joined: 06/08/2018

Alright I'll do that. Thanks.

chaosmonk

I am a member!

I am a translator!

Offline
Joined: 07/07/2017

If you're still having this issue, try editing your power preferences with dconf-editor instead of gnome-tweak-tool and see if they have an effect. The power settings in dconf-editor are under org -> gnome -> settings-daemon -> plugins -> power.

stephP
Offline
Joined: 06/08/2018

Alright I just did that and the power preferences looked consistent with what I set in gnome-tweak-tool yet changing them didn't have any effect.

I'm good with initiating hibernate from the command line now so feel welcome to work on more important issues instead. If you ever need I try something though, I'll be happy to help. Thanks.