Results 1 to 6 of 6

Thread: Can't suspend / hibernate if [ram size > swap size] ?

  1. #1
    Join Date
    Jul 2006
    Beans
    15

    Can't suspend / hibernate if [ram size > swap size] ?

    I'm using uswsusp to do software suspend / hibernate, however I can't get it to work properly. It actually turned my laptop into suspend / hibernate, but I can't recover from those states.

    I did some search and found that uswsusp (sort of) puts the memory image onto the swap partition, which may cause my problem because my laptop has 2GB of ram, but my swap partition is only 1GB.

    Is there a way to fix this? Any input would be appreciated.

  2. #2
    Join Date
    Jul 2006
    Beans
    15

    Re: Can't suspend / hibernate if [ram size > swap size] ?

    Anyone?
    I'm desperate to make suspend / hibernate work..
    Thank you

  3. #3
    Join Date
    Oct 2006
    Beans
    702

    Re: Can't suspend / hibernate if [ram size > swap size] ?

    I think you already provide the information. You need 2 times your ram size in the swap file to make this work.

    Either you increase your swap file or you reduce your memory size.

  4. #4
    Join Date
    Mar 2007
    Beans
    203

    Re: Can't suspend / hibernate if [ram size > swap size] ?

    Hardy Heron has adapted to bridge interfacing with GPUs.

    The swap has to be accessed more often, as I noticed with my card, it sets a reachable virtual RAM space. When I added a new 256MB card, it lists hardware info as 512MB.

    In order to do this, the RAM area is moved sometimes, and occassionally onto the swap area.

    An increase is necessary for normal operation. I went on a 1GB system:
    swap=1.8MB to 2.5 MB and it's stable.

  5. #5
    Join Date
    Jul 2006
    Beans
    15

    Re: Can't suspend / hibernate if [ram size > swap size] ?

    I followed a guide here, just blacklisted the intel_agp module and now both suspend and hibernate worked. The swap size is still half of my ram size, I don't know why it worked but meh..
    However I wonder where the memory image is placed in hibernate mode.

  6. #6
    Join Date
    Oct 2007
    Beans
    95
    Distro
    Ubuntu 22.10 Kinetic Kudu

    Re: Can't suspend / hibernate if [ram size > swap size] ?

    Don't forget that if you hibernate it is not strictly necessary to save the whole of ram but only the ram that happens to be in use at the time.
    regards,
    ubuntu 22.10 with full encryption, an SSD and dual monitors

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •