[PATCH] PM: make it possible to disable console suspending
[safe/jmp/linux-2.6] / kernel / power / Kconfig
1 config PM
2         bool "Power Management support"
3         depends on !IA64_HP_SIM
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_LEGACY
23         bool "Legacy Power Management API"
24         depends on PM
25         default y
26         ---help---
27            Support for pm_register() and friends.
28
29            If unsure, say Y.
30
31 config PM_DEBUG
32         bool "Power Management Debug Support"
33         depends on PM
34         ---help---
35         This option enables verbose debugging support in the Power Management
36         code. This is helpful when debugging and reporting various PM bugs, 
37         like suspend support.
38
39 config DISABLE_CONSOLE_SUSPEND
40         bool "Keep console(s) enabled during suspend/resume (DANGEROUS)"
41         depends on PM && PM_DEBUG
42         default n
43         ---help---
44         This option turns off the console suspend mechanism that prevents
45         debug messages from reaching the console during the suspend/resume
46         operations.  This may be helpful when debugging device drivers'
47         suspend/resume routines, but may itself lead to problems, for example
48         if netconsole is used.
49
50 config PM_TRACE
51         bool "Suspend/resume event tracing"
52         depends on PM && PM_DEBUG && X86_32 && EXPERIMENTAL
53         default n
54         ---help---
55         This enables some cheesy code to save the last PM event point in the
56         RTC across reboots, so that you can debug a machine that just hangs
57         during suspend (or more commonly, during resume).
58
59         To use this debugging feature you should attempt to suspend the machine,
60         then reboot it, then run
61
62                 dmesg -s 1000000 | grep 'hash matches'
63
64         CAUTION: this option will cause your machine's real-time clock to be
65         set to an invalid time after a resume.
66
67
68 config SOFTWARE_SUSPEND
69         bool "Software Suspend"
70         depends on PM && SWAP && ((X86 && (!SMP || SUSPEND_SMP) && !X86_PAE) || ((FRV || PPC32) && !SMP))
71         ---help---
72           Enable the possibility of suspending the machine.
73           It doesn't need ACPI or APM.
74           You may suspend your machine by 'swsusp' or 'shutdown -z <time>' 
75           (patch for sysvinit needed). 
76
77           It creates an image which is saved in your active swap. Upon next
78           boot, pass the 'resume=/dev/swappartition' argument to the kernel to
79           have it detect the saved image, restore memory state from it, and
80           continue to run as before. If you do not want the previous state to
81           be reloaded, then use the 'noresume' kernel argument. However, note
82           that your partitions will be fsck'd and you must re-mkswap your swap
83           partitions. It does not work with swap files.
84
85           Right now you may boot without resuming and then later resume but
86           in meantime you cannot use those swap partitions/files which were
87           involved in suspending. Also in this case there is a risk that buffers
88           on disk won't match with saved ones.
89
90           For more information take a look at <file:Documentation/power/swsusp.txt>.
91
92           (For now, swsusp is incompatible with PAE aka HIGHMEM_64G on i386.
93           we need identity mapping for resume to work, and that is trivial
94           to get with 4MB pages, but less than trivial on PAE).
95
96 config PM_STD_PARTITION
97         string "Default resume partition"
98         depends on SOFTWARE_SUSPEND
99         default ""
100         ---help---
101           The default resume partition is the partition that the suspend-
102           to-disk implementation will look for a suspended disk image. 
103
104           The partition specified here will be different for almost every user. 
105           It should be a valid swap partition (at least for now) that is turned
106           on before suspending. 
107
108           The partition specified can be overridden by specifying:
109
110                 resume=/dev/<other device> 
111
112           which will set the resume partition to the device specified. 
113
114           Note there is currently not a way to specify which device to save the
115           suspended image to. It will simply pick the first available swap 
116           device.
117
118 config SUSPEND_SMP
119         bool
120         depends on HOTPLUG_CPU && X86 && PM
121         default y