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