The officially official Devuan Forum!

You are not logged in.

#1 2023-08-24 20:32:12

rolfie
Member
Registered: 2017-11-25
Posts: 1,067  

[Solved] Howto hibernate

So far I haven't cared about hibernation and suspend on my workstation (on my laptop one of these was working out of the box). Due to the rise of cost of electrical energy it seems to make sense also to configure my workstation to hibernate.

My requirements are:
- Automatic activation after a configurable time
- Simple wake up when required

Running Daedalus with Cinnamon/Ligthdm with --no-install-recommends, what do I need to install and what do I need to configure?

My system runs FDE with unencrypted /boot. The swap space is part of a LVM, 2,5 x the RAM installed. AFAIK this should be sufficient.

Thanks, rolfie

Last edited by rolfie (2023-09-07 20:34:36)

Online

#2 2023-08-24 22:24:07

Gregors
Member
From: Freiburg, Germany
Registered: 2018-08-09
Posts: 40  
Website

Re: [Solved] Howto hibernate

For the first requirement: AFAIK this requires a BIOS that supports this.
For the second: Startup is simple, but takes time because from the computer's point of view it is a 'cold' boot - the computer has to go through its normal hardware startup including GRUB. So don't expect a surprisingly speed until GRUB's countdown has ended.

I use hibernation on my 'main' box, e.g. I can continue watching a movie from where I left the day before.

HTH

Gregor

Offline

#3 2023-08-24 22:36:20

Marjorie
Member
From: Teignmouth, UK
Registered: 2019-06-09
Posts: 219  

Re: [Solved] Howto hibernate

I have Daedalus with Cinnamon/Ligthdm setup on a 6-core AMD Ryzen 5 5600G and a MSI MPG B550 GAMING PLUS motherboard.
I have a large swap partition like yours on my main LVM2 RAID1 SSDs

Hibernate using pm-utils (sudo pm-hibernate) works well.
I have buttons set up to call this from my panel (Shutdown Menu with Icons applet).
I have pm-hibernate in my sudoers file so I don't need to enter a password to hibernate.
One reason I use pm-utils rather than the built-in hibernate is that way I can call screen-lock when hibernating (and enforce unlock when I resume).

Suspend (sudo pm-suspend) sort of works but I find that with recent kernels and/or my bios it has proven unstable after waking.
Strangely it is also quite slow to waken compared to how it used to be when it worked properly. Not much faster than waking from hibernate.

Automatic activation, through the Cinnamon Power Management settings times out to suspend so I don't use it.
The settings do include a Hybrid sleep and Hibernate after suspend options, but not direct to hibernate. I've not tried the other options.

Last edited by Marjorie (2023-08-24 22:41:54)

Offline

#4 2023-08-28 17:01:09

rolfie
Member
Registered: 2017-11-25
Posts: 1,067  

Re: [Solved] Howto hibernate

Thanks for the hints. So far I had disabled suspend and hibernate by a policy kit setting. That was removed.

I have now changed power saving options in the Cinnamon settings on two machines, no additional package installed. And its working fine afaict.

I set the screen to power off after 15min, and suspend to 30 min. I also enabled hibernate past suspend.

When I wait long enough, the computer goes down, the power LED of the case is blinking, and I can wake up again with a keystroke. More or less what I wanted to see.

Last edited by rolfie (2023-09-07 20:27:41)

Online

#5 2023-08-28 20:21:55

Gregors
Member
From: Freiburg, Germany
Registered: 2018-08-09
Posts: 40  
Website

Re: [Solved] Howto hibernate

rolfie wrote:

When I wait long enough, the computer goes down, the power LED of the case is blinking, and I can wake up again with a keystroke. More or less what I wanted to see.

I'm no specialist in power saving things, but AFAIK your computer doesn't hibernate (AKA 'suspend to disk') but suspend (AKA 'suspend to RAM'). 'Hibernate' means that you can disconnect the machine from main power completely.

Offline

#6 2023-09-07 20:33:10

rolfie
Member
Registered: 2017-11-25
Posts: 1,067  

Re: [Solved] Howto hibernate

The intention is not to switch power off the PC after putting it to sleep. Its just to enable some sort of power saving when I am off of my PC during the day. I switch off anyhow during the night.

Well, my experience during the past days is that mostly its working fine. Also the backports kernel 6.4 installed today seems to work.

Just had an issue once some days ago that I could not update web page in Firefox any more. A reboot was required to fix.

For me its solved.

Last edited by rolfie (2023-09-07 20:34:06)

Online

Board footer