Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Questions about pm-hibernate and hibernating.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 166
Location: Toronto, Canada

PostPosted: Tue Dec 10, 2019 12:22 am    Post subject: Questions about pm-hibernate and hibernating. Reply with quote

I want to use pm-hibernate with a swap file.

for the swap partition the wiki says we should add SLEEP_MODULE="kernel" to /etc/pm/config.d/gentoo

should i also do this when I have a swap file ?

How much should my swapfile size be for hibernation ? I have 32 GB of RAM.


Many Thanks
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5060
Location: Dark side of the mood

PostPosted: Tue Dec 10, 2019 3:03 pm    Post subject: Re: Questions about pm-hibernate and hibernating. Reply with quote

LegionOfHell wrote:
I want to use pm-hibernate with a swap file.

for the swap partition the wiki says we should add SLEEP_MODULE="kernel" to /etc/pm/config.d/gentoo

should i also do this when I have a swap file ?

Given that this clause is present on my laptop as well, let's assume it is indeed required.

LegionOfHell wrote:
How much should my swapfile size be for hibernation ? I have 32 GB of RAM.

IIRC hibernate may require a little more than half of your RAM from the swap file/partition but I cannot get my hand on the source document.

I for one have disabled swapping on my laptop and I have as much swap as RAM size, i.e. 8GB. Never had a problem with that, at least as far as I know. I also constantly monitor memory usage with Conky though.

The thing is the amount of active swapping adds to the amount of memory used for hibernate so it can be rather tricky to calculate. You might want to read https://itsfoss.com/swap-size/ for detailed information. Also take a look at Documentation/power/swsusp.txt and Documentation/power/swsusp-and-swap-files.txt.
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
LegionOfHell
Apprentice
Apprentice


Joined: 16 Mar 2019
Posts: 166
Location: Toronto, Canada

PostPosted: Tue Dec 10, 2019 3:39 pm    Post subject: Reply with quote

what if I am using s2ram and s2disk instead of pm-suspend and pm-hibernate, Should I add SLEEP_MODULE="kernel" to /etc/pm/config.d/gentoo ??
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5060
Location: Dark side of the mood

PostPosted: Sat Dec 14, 2019 9:52 pm    Post subject: Reply with quote

LegionOfHell wrote:
what if I am using s2ram and s2disk instead of pm-suspend and pm-hibernate, Should I add SLEEP_MODULE="kernel" to /etc/pm/config.d/gentoo ??

Suspend-to-RAM and suspend-to-disk requirements are dictated by the kernel, whatever application you're using :-) .
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum