Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24389 - request for kernel patch: swsusp
Summary: request for kernel patch: swsusp
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-13 08:05 UTC by Tobias Sager
Modified: 2004-02-01 18:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Sager 2003-07-13 08:05:01 UTC
It would be nice to have the following kernel patch included:
http://swsusp.sourceforge.net/

From the site:
<snip>
1.1 What is software suspend?

Software suspend is the ability to take a snapshot of the state of a computer's memory and save it to disk, and restore that image later. This allows you to fully power down a computer at an arbitrary point in time and not need to reload programs and reopen documents on power-up. In modern laptops, suspension is not done by the BIOS. They use ACPI and ask the operating system to do most of the job. If you can't satisfy yourself with standby mode (suspension to RAM) because you leave your computer in suspension mode for too long (or because you're not using a 2.5 or later kernel and therefore lack suspend-to-RAM support), then you have to suspend on disk.
</snip>
Comment 1 Jay Pfeifer (RETIRED) gentoo-dev 2003-07-13 16:35:06 UTC
this will be a hard sell for me right now. i have some stuff to potentially introduce a laptop 
use flag to pfeifer-sources - so, maybe i can include it in that set for testing. 
 
Jay 
Comment 2 Tobias Sager 2003-07-13 23:23:22 UTC
A laptop USE-Flag would definitvely be a very good thing!
Comment 3 Philippe Coulonges 2003-11-06 04:12:06 UTC
Many laptop have some kind of software suspend integrated in their BIOS.

This feature is NOT specific for laptop.
It's useful to boot faster, or to cut the power of a machine without loosing
your precious uptime.

However, the script seems specific for 2.4 kernels.
What we should look for is a 2.6 equivalence.
No hurry, it isn't that stable and it brings real risks for you data.
 
Comment 4 Tobias Sager 2003-11-06 04:39:07 UTC
- This patch is not about suspend-to-ram but suspend-to-disk.
  Therefore less a chance for data loss..
- As my initial comment pointed out: BIOS integration is (according to their
  FAQ) outdated and should be replaced by ACPI.

Patch for 2.6 series is here:
http://prdownloads.sourceforge.net/swsusp/swsusp-2.0-2.6-alpha2-incremental.bz2?download
Release notes:
http://marc.theaimsgroup.com/?l=swsusp-devel&m=106732559122481&w=2
It is v2.0-alpha2.
Comment 5 roma1390 2003-11-10 01:36:36 UTC
This is very useful thing, and I can download patch and patch myself. but
gentoo
kernel has a lot of modifications, and this isn't so easy. Of course i can
use
vanilla, but gentoo has a lot of useful things.
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2003-11-10 08:42:59 UTC
If you could make a patch and test it, I might be able to put it into gentoo-sources.
Until we can make sure it's stable though, you'll need to add a USE flag
for it.
Comment 7 John Mylchreest (RETIRED) gentoo-dev 2004-02-01 18:31:33 UTC
this is already in the 2.6 tree (gentoo-dev-sources for example).
I recommend not adding this to the 2.4 tree for now.