The officially official Devuan Forum!

You are not logged in.

#1 2024-07-20 10:35:37

kapqa
Member
Registered: 2019-01-02
Posts: 336  

(howTo) hibernate after automatic install?

Hello,

noticed that this laptop has gotten the automatic install of devuan, but has only 1GB Swappartition allocated.
The RAM size is probably 4GB.

Is this a Bug?
How can i properly let the laptop go into hibernation after some time, since the battery is not so good on this T60.

xfce4-power-manager --dump
---------------------------------------------------
       Xfce power manager version 4.18.1
With policykit support
With network manager support
---------------------------------------------------
Can suspend: True
Can hibernate: True
Authorised to suspend: True
Authorised to hibernate: True
Authorised to shutdown: True
Has battery: True
Has brightness panel: True
Has power button: True
Has hibernate button: True
Has sleep button: True
Has battery button: True
Has LID: True

sudo apt install hibernate
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package hibernate is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'hibernate' has no installation candidate

thank you!

Offline

#2 2024-07-20 10:47:56

EDX-0
Member
Registered: 2020-12-12
Posts: 83  

Re: (howTo) hibernate after automatic install?

you need to either grow that swap partition or ditch the swap parition, put that 1 gb to your / dir, then create a swap file.

usually for hibernation you want about 1.5x the size of your ram for either a partition or a file

Offline

#3 2024-07-20 12:06:12

kapqa
Member
Registered: 2019-01-02
Posts: 336  

Re: (howTo) hibernate after automatic install?

yes, but why did the automatic install not take into account? is swap partition obsolete? it used to function well on earlier debian version if remember correctly.

Last edited by kapqa (2024-07-20 12:06:36)

Offline

#4 2024-07-20 12:09:06

steve_v
Member
Registered: 2018-01-11
Posts: 387  

Re: (howTo) hibernate after automatic install?

Because no installer default can satisfy everyone? It's your system, you get to choose the disk layout.

As for triggering hibernation from the CLI, that would be either 'loginctl hibernate' (if you have [e]logind installed, which IIRC is the default setup) or 'pm-hibernate' from the pm-utils package.

Last edited by steve_v (2024-07-20 12:11:57)


Once is happenstance. Twice is coincidence. Three times is enemy action. Four times is Official GNOME Policy.

Offline

#5 2024-07-20 13:49:57

kapqa
Member
Registered: 2019-01-02
Posts: 336  

Re: (howTo) hibernate after automatic install?

very complicated, hibernate is useful, could satisfy more laptops i suppose than reunning out of battery quick.

will see if can implant it later on, but seems difficult.
the automatic installer could ask if one wants this feature, which is especially useful on laptops'?

Offline

#6 2024-07-20 14:29:25

delgado
Member
Registered: 2022-07-14
Posts: 213  

Re: (howTo) hibernate after automatic install?

As EDX-0 suggested in #2: Just create a swap file of decent size, and you should be good to go.
It is not too complicated and described in e.g.: https://wiki.archlinux.org/title/swap , section 3.1 "Swap file creation".

Offline

#7 2024-07-20 19:05:48

kapqa
Member
Registered: 2019-01-02
Posts: 336  

Re: (howTo) hibernate after automatic install?

on another laptop got swap partition inserted after manipulation with gparted livesystem, then used this help here

https://drive.google.com/file/d/1SkXRqe … drive_link

now this however was a ubuntu 24.04 and has systemd, but it function now there.
(fyi> i did not need create the part with "/etc/polkit-1/etc.")

hibernate can be evoken "sudo systemctl hibernate" or via "sudo pm-hibernate"
bit cumbersome process, but it can function.

Last edited by kapqa (2024-07-20 19:11:06)

Offline

#8 2024-07-20 22:31:40

EDX-0
Member
Registered: 2020-12-12
Posts: 83  

Re: (howTo) hibernate after automatic install?

with elogind you should not need sudo to run loginctl hibernate, tho nowadays i use suspend-then-hibernate, and configure logind so that 30 minutes after suspend-then-hibernate the laptop shuts down for hibernation, i find that more useful than either suspend or hibernate as if it is on StH for less than 30 mins i get practically instant resume, but for more than that it saves battery.

Offline

#9 2024-07-23 07:43:10

kapqa
Member
Registered: 2019-01-02
Posts: 336  

Re: (howTo) hibernate after automatic install?

hello EDX-0 , what is elogind and do i need to install it/configure it if i want to use Hibernate on Devuan? issue is also, that the automatic installer makes it so that hibernate does not function out of the box, atleast with Ubuntu, which i use on most of laptops nowaday.

Offline

#10 2024-07-23 14:08:42

Andre4freedom
Member
Registered: 2017-11-15
Posts: 174  

Re: (howTo) hibernate after automatic install?

@kapqa
please be reminded that Ubuntu is a systemd based distribution and Devuan is not.
There are important differences here. Devuan has replaced all systemd-dependent components with very reasonable alternatives.
So please read the installation instructions, readme-s, and all related important text.

To use hibernation, the swap-partition must be at least a bit bigger than your RAM in the computer.
Elogind is just a replacement for the systemd-related logind - afaik.
I can tell you if you perform a standard installation (devuan desktop) you will most certainly get a well working system.
Also: I had very good results every-time with Devuan - OpenRC - Cinnamon or XFCE, on most of the hardware I tested.
And again: RTFM! (Read The Fascinating Manuals)

Last edited by Andre4freedom (2024-07-23 16:01:10)

Offline

Board footer