LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   amount of swap needed to hibernate. (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/amount-of-swap-needed-to-hibernate-4175722831/)

lin66uxx 03-08-2023 10:22 AM

amount of swap needed to hibernate.
 
Dear all,

I have a linux debian installed properly on my laptop, the problem is that when I try to hibernate the system, it does not go to sleep,this happens when I use around 7GB of RAM, if I use less it does succeed, I have 16GB of RAM installed on my laptop, and I have around 30GB of swap.
Can any one help me figure this out??

Thanks,

wpeckham 03-08-2023 01:47 PM

As i recall, if you are doing it manually the amount of swap needed is just a bit more than your total ram.

As i recall, at the last time I did it manually what was important was not the swap total, but the largest CONTIGUOUS swap, so if you had half swap and half swap files, or two separate swap partitions and none of them were big enough by themselves you were gorked!

My installers for my main desktop drivers today ASK on install if you plan to use hibernate and the automated partitioning takes that into account.

Brains 03-08-2023 10:29 PM

I have 3GB and never have issues with Debian testing in a 30GB partition.
In VMWare I give Debian testing virtual machine a 60GB disk and let the installer set it up as it sees fit, it allocates 976MB for swap, again, no issues.

I also have 16GB RAM

lin66uxx 03-08-2023 11:34 PM

I have the swap as a contiguous partition!

syg00 03-09-2023 02:20 AM

Let's see
Code:

swapon -s

lin66uxx 03-09-2023 03:29 AM

output:

Quote:

Filename Type Size Used Priority
/dev/nvme0n1p3 partition 31456252 0 -2

syg00 03-09-2023 03:38 AM

In which case I wold open a bug report and see what evidence the devs want you to provide.

fatmac 04-10-2023 03:42 AM

There should be an item in your menu, likely under 'System', called something like 'Power Management', check to see that it says to 'Hibernate' there.

pan64 04-10-2023 04:03 AM

also I would try to check the logs, probably you will find something related.

wpeckham 04-10-2023 10:45 AM

Are with previous two: amount of swap may not be your problem.


All times are GMT -5. The time now is 04:07 PM.