config PM
	bool "Power Management support"
	---help---
	  "Power Management" means that parts of your computer are shut
	  off or put into a power conserving "sleep" mode if they are not
	  being used.  There are two competing standards for doing this: APM
	  and ACPI.  If you want to use either one, say Y here and then also
	  to the requisite support below.

	  Power Management is most important for battery powered laptop
	  computers; if you have a laptop, check out the Linux Laptop home
	  page on the WWW at <http://www.linux-on-laptops.com/> or
	  Tuxmobil - Linux on Mobile Computers at <http://www.tuxmobil.org/>
	  and the Battery Powered Linux mini-HOWTO, available from
	  <http://www.tldp.org/docs.html#howto>.

	  Note that, even if you say N here, Linux on the x86 architecture
	  will issue the hlt instruction if nothing is to be done, thereby
	  sending the processor to sleep and saving power.

config PM_DEBUG
	bool "Power Management Debug Support"
	depends on PM
	---help---
	This option enables verbose debugging support in the Power Management
	code. This is helpful when debugging and reporting various PM bugs, 
	like suspend support.

config SOFTWARE_SUSPEND
	bool "Software Suspend (EXPERIMENTAL)"
	depends on EXPERIMENTAL && PM && SWAP
	---help---
	  Pavel's original version.

	  Enable the possibility of suspending the machine.
	  It doesn't need APM.
	  You may suspend your machine by 'swsusp' or 'shutdown -z <time>' 
	  (patch for sysvinit needed). 

	  It creates an image which is saved in your active swap. Upon next
	  boot, pass the 'resume=/dev/swappartition' argument to the kernel to
	  have it detect the saved image, restore memory state from it, and
	  continue to run as before. If you do not want the previous state to
	  be reloaded, then use the 'noresume' kernel argument. However, note
	  that your partitions will be fsck'd and you must re-mkswap your swap
	  partitions. It does not work with swap files.

	  Right now you may boot without resuming and then later resume but
	  in meantime you cannot use those swap partitions/files which were
	  involved in suspending. Also in this case there is a risk that buffers
	  on disk won't match with saved ones.

	  For more information take a look at Documentation/power/swsusp.txt.

config PM_STD_PARTITION
	string "Default resume partition"
	depends on SOFTWARE_SUSPEND
	default ""
	---help---
	  The default resume partition is the partition that the suspend-
	  to-disk implementation will look for a suspended disk image. 

	  The partition specified here will be different for almost every user. 
	  It should be a valid swap partition (at least for now) that is turned
	  on before suspending. 

	  The partition specified can be overridden by specifying:

		resume=/dev/<other device> 

	  which will set the resume partition to the device specified. 

	  Note there is currently not a way to specify which device to save the
	  suspended image to. It will simply pick the first available swap 
	  device.

menu "Software Suspend 2"

config SOFTWARE_SUSPEND2
	tristate "Software Suspend 2"
	depends on PM
	---help---
	  Software Suspend 2 is the 'new and improved' suspend support. You
	  can now build it as modules, but be aware that this requires
	  initrd support (the modules you use in saving the image have to
	  be loaded in order for you to be able to resume!)
	  
	  See the Software Suspend home page (softwaresuspend.berlios.de)
	  for FAQs, HOWTOs and other documentation.

config SOFTWARE_SUSPEND2_BUILTIN
	def_bool SOFTWARE_SUSPEND2

if SOFTWARE_SUSPEND2
	comment 'Image Storage (you need at least one writer)'
	depends on SOFTWARE_SUSPEND2_CORE
	
	config SOFTWARE_SUSPEND_SWAPWRITER
		tristate '   Swap Writer'
		depends on SWAP && SOFTWARE_SUSPEND2
		---help---
		  This option enabled support for storing an image in your
		  swap space. Swap partitions are supported. Swap file
		  support is currently broken (16 April 2004).

	comment 'Page Transformers'

	config SOFTWARE_SUSPEND_LZF_COMPRESSION
		tristate '   LZF image compression (Preferred)'
		select LZF
		---help---
		  This option enables compression of pages stored during suspending
		  to disk, using LZF compression. LZF compression is fast and
		  still achieves a good compression ratio.

		  You probably want to say 'Y'.

	config SOFTWARE_SUSPEND_DEVICE_MAPPER
		tristate '   Device Mapper support'
		depends on BLK_DEV_DM
		---help---
		  This option creates a module which allows Suspend to tell the
		  device mapper code to allocate enough memory for its work while
		  suspending. It doesn't do anything else, but without it, dm-crypt
		  won't work properly.

		  This option should be off for most people.

	comment 'User Interface Options'

	config SOFTWARE_SUSPEND_BOOTSPLASH
		tristate '  Bootsplash support'
		depends on BOOTSPLASH
		---help---
		  This option enables support for Bootsplash (bootsplash.org). Suspend
		  can set the progress bar value and switch between silent and verbose
		  modes. (Silent mode is used when the debug level is 0 or 1). 

	config SOFTWARE_SUSPEND_TEXT_MODE
		tristate '  Text mode console support'
		depends on VT
		---help---
		  This option enables support for a text mode 'nice display'. If you don't
		  have/want bootsplash support, you probably want this.

	comment 'General Options'

	config SOFTWARE_SUSPEND_DEFAULT_RESUME2
		string '   Default resume device name'
		---help---
		  You normally need to add a resume2= parameter to your lilo.conf or
		  equivalent. With this option properly set, the kernel has a value
		  to default. No damage will be done if the value is invalid.

	config SOFTWARE_SUSPEND_KEEP_IMAGE
		bool '   Allow Keep Image Mode'
		---help---
		  This option allows you to keep and image and reuse it. It is intended
		  __ONLY__ for use with systems where all filesystems are mounted read-
		  only (kiosks, for example). To use it, compile this option in and boot
		  normally. Set the KEEP_IMAGE flag in /proc/software_suspend and suspend.
		  When you resume, the image will not be removed. You will be unable to turn
		  off swap partitions (assuming you are using the swap writer), but future
		  suspends simply do a power-down. The image can be updated using the
		  kernel command line parameter suspend_act= to turn off the keep image
		  bit. Keep image mode is a little less user friendly on purpose - it
		  should not be used without thought!

	comment 'Debugging'

	config SOFTWARE_SUSPEND_DEBUG
		bool '   Compile in debugging output'
		---help---
		  This option enables the inclusion of debugging info in the software
		  suspend code. Turning it off will reduce the kernel size but make
		  debugging suspend & resume issues harder to do.

		  For normal usage, this option can be turned off.

	config SOFTWARE_SUSPEND_CHECKSUMS
		tristate '   Compile checksum module'
		---help---
		  This option enables compilation of a checksumming module, which can
		  be used to verify the correct operation of suspend.

		  For normal usage, this option can be turned off.
endif

endmenu

comment 'Suspend2 depends on EXPERIMENTAL and PM support.'
	depends on !EXPERIMENTAL || !PM

