| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | config PM | 
 | 2 | 	bool "Power Management support" | 
| Len Brown | eb7b6b3 | 2005-08-25 12:08:25 -0400 | [diff] [blame^] | 3 | 	depends on !IA64_HP_SIM | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 4 | 	---help--- | 
 | 5 | 	  "Power Management" means that parts of your computer are shut | 
 | 6 | 	  off or put into a power conserving "sleep" mode if they are not | 
 | 7 | 	  being used.  There are two competing standards for doing this: APM | 
 | 8 | 	  and ACPI.  If you want to use either one, say Y here and then also | 
 | 9 | 	  to the requisite support below. | 
 | 10 |  | 
 | 11 | 	  Power Management is most important for battery powered laptop | 
 | 12 | 	  computers; if you have a laptop, check out the Linux Laptop home | 
 | 13 | 	  page on the WWW at <http://www.linux-on-laptops.com/> or | 
 | 14 | 	  Tuxmobil - Linux on Mobile Computers at <http://www.tuxmobil.org/> | 
 | 15 | 	  and the Battery Powered Linux mini-HOWTO, available from | 
 | 16 | 	  <http://www.tldp.org/docs.html#howto>. | 
 | 17 |  | 
 | 18 | 	  Note that, even if you say N here, Linux on the x86 architecture | 
 | 19 | 	  will issue the hlt instruction if nothing is to be done, thereby | 
 | 20 | 	  sending the processor to sleep and saving power. | 
 | 21 |  | 
 | 22 | config PM_DEBUG | 
 | 23 | 	bool "Power Management Debug Support" | 
 | 24 | 	depends on PM | 
 | 25 | 	---help--- | 
 | 26 | 	This option enables verbose debugging support in the Power Management | 
 | 27 | 	code. This is helpful when debugging and reporting various PM bugs,  | 
 | 28 | 	like suspend support. | 
 | 29 |  | 
 | 30 | config SOFTWARE_SUSPEND | 
| Pavel Machek | 19c3243 | 2005-06-25 14:55:17 -0700 | [diff] [blame] | 31 | 	bool "Software Suspend" | 
 | 32 | 	depends on EXPERIMENTAL && PM && SWAP && ((X86 && SMP) || ((FVR || PPC32 || X86) && !SMP)) | 
| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 33 | 	---help--- | 
 | 34 | 	  Enable the possibility of suspending the machine. | 
 | 35 | 	  It doesn't need APM. | 
 | 36 | 	  You may suspend your machine by 'swsusp' or 'shutdown -z <time>'  | 
 | 37 | 	  (patch for sysvinit needed).  | 
 | 38 |  | 
 | 39 | 	  It creates an image which is saved in your active swap. Upon next | 
 | 40 | 	  boot, pass the 'resume=/dev/swappartition' argument to the kernel to | 
 | 41 | 	  have it detect the saved image, restore memory state from it, and | 
 | 42 | 	  continue to run as before. If you do not want the previous state to | 
 | 43 | 	  be reloaded, then use the 'noresume' kernel argument. However, note | 
 | 44 | 	  that your partitions will be fsck'd and you must re-mkswap your swap | 
 | 45 | 	  partitions. It does not work with swap files. | 
 | 46 |  | 
 | 47 | 	  Right now you may boot without resuming and then later resume but | 
 | 48 | 	  in meantime you cannot use those swap partitions/files which were | 
 | 49 | 	  involved in suspending. Also in this case there is a risk that buffers | 
 | 50 | 	  on disk won't match with saved ones. | 
 | 51 |  | 
 | 52 | 	  For more information take a look at <file:Documentation/power/swsusp.txt>. | 
 | 53 |  | 
 | 54 | config PM_STD_PARTITION | 
 | 55 | 	string "Default resume partition" | 
 | 56 | 	depends on SOFTWARE_SUSPEND | 
 | 57 | 	default "" | 
 | 58 | 	---help--- | 
 | 59 | 	  The default resume partition is the partition that the suspend- | 
 | 60 | 	  to-disk implementation will look for a suspended disk image.  | 
 | 61 |  | 
 | 62 | 	  The partition specified here will be different for almost every user.  | 
 | 63 | 	  It should be a valid swap partition (at least for now) that is turned | 
 | 64 | 	  on before suspending.  | 
 | 65 |  | 
 | 66 | 	  The partition specified can be overridden by specifying: | 
 | 67 |  | 
 | 68 | 		resume=/dev/<other device>  | 
 | 69 |  | 
 | 70 | 	  which will set the resume partition to the device specified.  | 
 | 71 |  | 
 | 72 | 	  Note there is currently not a way to specify which device to save the | 
 | 73 | 	  suspended image to. It will simply pick the first available swap  | 
 | 74 | 	  device. | 
 | 75 |  | 
| Li Shaohua | 5a72e04 | 2005-06-25 14:55:06 -0700 | [diff] [blame] | 76 | config SUSPEND_SMP | 
 | 77 | 	bool | 
 | 78 | 	depends on HOTPLUG_CPU && X86 && PM | 
 | 79 | 	default y |