[invalid] LinuxMint 7 Hibernate with SWAP smaller than RAM.

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

[invalid] LinuxMint 7 Hibernate with SWAP smaller than RAM.

Postby BugReport1 on Fri Aug 28, 2009 4:42 am

4 GB DDR2 RAM
128 MB swap partition.

When trying to hibernate the system just hangs with a black screen. Is also true for ubuntu.

Instead should give a warning that hibernation is not possible due to swap being smaller than RAM size, and disable the button. When installing should also mention that swap space should be larger than RAM otherwise hibernation would not be possible.
BugReport1
Level 1
Level 1
 
Posts: 2
Joined: Fri Aug 28, 2009 4:38 am

Linux Mint is funded by ads and donations.
 

Re: Linux Mint 7 - Hibernate with SWAP size smaller than RAM.

Postby RichardH on Fri Aug 28, 2009 11:49 am

Yes, you are probably correct.

They advise to have swap large than physical memory in order to Hibernate,
but not everyone gets the message.

The quickest fix is to create a swapfile.
I have read that it is far more flexible and nearly equal in speed to a physical swap.

I found this in google:
http://www.mail-archive.com/csi_nsit@ya ... 00057.html
which explains very well the function and how to create / add a swap file,
and this also
https://help.ubuntu.com/community/SwapFaq .

saludos,
Richard.
User avatar
RichardH
Level 3
Level 3
 
Posts: 133
Joined: Tue Jun 17, 2008 10:36 am
Location: Venezuela

Re: Linux Mint 7 - Hibernate with SWAP size smaller than RAM.

Postby toolz on Fri Aug 28, 2009 12:02 pm

BugReport1 wrote:Instead should give a warning that hibernation is not possible due to swap being smaller than RAM size, and disable the button. When installing should also mention that swap space should be larger than RAM otherwise hibernation would not be possible.

Absolutely. The problem is that for hibernation to work the swap available needs to be RAM+x where x is unknown until you've tried. So the fix is a bit more involved than just checking swap space. Absolutely agree though, it needs fixing, there should be a bug in Launchpad.
toolz
Level 2
Level 2
 
Posts: 86
Joined: Tue Aug 25, 2009 2:42 am

Re: Linux Mint 7 - Hibernate with SWAP size smaller than RAM.

Postby toolz on Fri Aug 28, 2009 12:12 pm

Here it is:
https://bugs.launchpad.net/ubuntu/+source/pm-utils/+bug/223770
The swap file seems like a very good workaround. Well ... a very good solution full stop.
toolz
Level 2
Level 2
 
Posts: 86
Joined: Tue Aug 25, 2009 2:42 am

Re: Linux Mint 7 - Hibernate with SWAP size smaller than RAM.

Postby BugReport1 on Fri Aug 28, 2009 5:41 pm

The solution is obvious.


It is not obvious for a person who just installed the linux mint and finds that his hibernation doesnt work.

It should be clear WHY does it happen, and preferably preventive.


1) If it hangs, at least tell why
2) Tell beforehand - disable button
3) Tell while installing - SWAP has to be larger than RAM.



This is not a hard bug to fix. Linux mint is supposed to be user friendly distribution. Having to think is not user friendly :)
I doubt that they even know what hibernate actually is and how it works.
BugReport1
Level 1
Level 1
 
Posts: 2
Joined: Fri Aug 28, 2009 4:38 am

Re: Linux Mint 7 - Hibernate with SWAP size smaller than RAM.

Postby toolz on Fri Aug 28, 2009 10:20 pm

No the solution is not obvious. Did you read what I posted or anything in the Launchpad report?

This is not a hard bug to fix.

Again, incorrect.

I doubt that they even know what hibernate actually is and how it works.

Just silly. I'll vacate this thread now.
toolz
Level 2
Level 2
 
Posts: 86
Joined: Tue Aug 25, 2009 2:42 am


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Pierre and 32 guests