You are not logged in.
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 sourceE: Package 'hibernate' has no installation candidate
thank you!
Online
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
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)
Online
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
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'?
Online
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
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)
Online
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
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.
Online
@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