1296699deSRafael J. Wysockiconfig SUSPEND 2296699deSRafael J. Wysocki bool "Suspend to RAM and standby" 31eb208aeSRafael J. Wysocki depends on ARCH_SUSPEND_POSSIBLE 4296699deSRafael J. Wysocki default y 5296699deSRafael J. Wysocki ---help--- 6296699deSRafael J. Wysocki Allow the system to enter sleep states in which main memory is 7296699deSRafael J. Wysocki powered and thus its contents are preserved, such as the 8f4cb5700SJohannes Berg suspend-to-RAM state (e.g. the ACPI S3 state). 9296699deSRafael J. Wysocki 10b28f5081SJohannes Bergconfig SUSPEND_FREEZER 11b28f5081SJohannes Berg bool "Enable freezer for suspend to RAM/standby" \ 12b28f5081SJohannes Berg if ARCH_WANTS_FREEZER_CONTROL || BROKEN 13b28f5081SJohannes Berg depends on SUSPEND 14b28f5081SJohannes Berg default y 15b28f5081SJohannes Berg help 16b28f5081SJohannes Berg This allows you to turn off the freezer for suspend. If this is 17b28f5081SJohannes Berg done, no tasks are frozen for suspend to RAM/standby. 18b28f5081SJohannes Berg 19b28f5081SJohannes Berg Turning OFF this setting is NOT recommended! If in doubt, say Y. 20b28f5081SJohannes Berg 211f112ceeSRafael J. Wysockiconfig HIBERNATE_CALLBACKS 221f112ceeSRafael J. Wysocki bool 231f112ceeSRafael J. Wysocki 24b0cb1a19SRafael J. Wysockiconfig HIBERNATION 25296699deSRafael J. Wysocki bool "Hibernation (aka 'suspend to disk')" 261eb208aeSRafael J. Wysocki depends on SWAP && ARCH_HIBERNATION_POSSIBLE 271f112ceeSRafael J. Wysocki select HIBERNATE_CALLBACKS 28f996fc96SBojan Smojver select LZO_COMPRESS 29f996fc96SBojan Smojver select LZO_DECOMPRESS 301da177e4SLinus Torvalds ---help--- 31a7ee2e5fSDavid Brownell Enable the suspend to disk (STD) functionality, which is usually 32a7ee2e5fSDavid Brownell called "hibernation" in user interfaces. STD checkpoints the 33a7ee2e5fSDavid Brownell system and powers it off; and restores that checkpoint on reboot. 341da177e4SLinus Torvalds 3523b168d4SPavel Machek You can suspend your machine with 'echo disk > /sys/power/state' 3623b168d4SPavel Machek after placing resume=/dev/swappartition on the kernel command line 3723b168d4SPavel Machek in your bootloader's configuration file. 3823b168d4SPavel Machek 39c7276fdeSRafael J. Wysocki Alternatively, you can use the additional userland tools available 40c7276fdeSRafael J. Wysocki from <http://suspend.sf.net>. 41c7276fdeSRafael J. Wysocki 42c7276fdeSRafael J. Wysocki In principle it does not require ACPI or APM, although for example 43a7ee2e5fSDavid Brownell ACPI will be used for the final steps when it is available. One 44a7ee2e5fSDavid Brownell of the reasons to use software suspend is that the firmware hooks 45a7ee2e5fSDavid Brownell for suspend states like suspend-to-RAM (STR) often don't work very 46a7ee2e5fSDavid Brownell well with Linux. 47c7276fdeSRafael J. Wysocki 48c7276fdeSRafael J. Wysocki It creates an image which is saved in your active swap. Upon the next 491da177e4SLinus Torvalds boot, pass the 'resume=/dev/swappartition' argument to the kernel to 501da177e4SLinus Torvalds have it detect the saved image, restore memory state from it, and 511da177e4SLinus Torvalds continue to run as before. If you do not want the previous state to 52c7276fdeSRafael J. Wysocki be reloaded, then use the 'noresume' kernel command line argument. 53c7276fdeSRafael J. Wysocki Note, however, that fsck will be run on your filesystems and you will 54c7276fdeSRafael J. Wysocki need to run mkswap against the swap partition used for the suspend. 551da177e4SLinus Torvalds 56c7276fdeSRafael J. Wysocki It also works with swap files to a limited extent (for details see 57c7276fdeSRafael J. Wysocki <file:Documentation/power/swsusp-and-swap-files.txt>). 58c7276fdeSRafael J. Wysocki 59c7276fdeSRafael J. Wysocki Right now you may boot without resuming and resume later but in the 60c7276fdeSRafael J. Wysocki meantime you cannot use the swap partition(s)/file(s) involved in 61c7276fdeSRafael J. Wysocki suspending. Also in this case you must not use the filesystems 62c7276fdeSRafael J. Wysocki that were mounted before the suspend. In particular, you MUST NOT 63c7276fdeSRafael J. Wysocki MOUNT any journaled filesystems mounted before the suspend or they 64c7276fdeSRafael J. Wysocki will get corrupted in a nasty way. 651da177e4SLinus Torvalds 661da177e4SLinus Torvalds For more information take a look at <file:Documentation/power/swsusp.txt>. 671da177e4SLinus Torvalds 681da177e4SLinus Torvaldsconfig PM_STD_PARTITION 691da177e4SLinus Torvalds string "Default resume partition" 70b0cb1a19SRafael J. Wysocki depends on HIBERNATION 711da177e4SLinus Torvalds default "" 721da177e4SLinus Torvalds ---help--- 731da177e4SLinus Torvalds The default resume partition is the partition that the suspend- 741da177e4SLinus Torvalds to-disk implementation will look for a suspended disk image. 751da177e4SLinus Torvalds 761da177e4SLinus Torvalds The partition specified here will be different for almost every user. 771da177e4SLinus Torvalds It should be a valid swap partition (at least for now) that is turned 781da177e4SLinus Torvalds on before suspending. 791da177e4SLinus Torvalds 801da177e4SLinus Torvalds The partition specified can be overridden by specifying: 811da177e4SLinus Torvalds 821da177e4SLinus Torvalds resume=/dev/<other device> 831da177e4SLinus Torvalds 841da177e4SLinus Torvalds which will set the resume partition to the device specified. 851da177e4SLinus Torvalds 861da177e4SLinus Torvalds Note there is currently not a way to specify which device to save the 871da177e4SLinus Torvalds suspended image to. It will simply pick the first available swap 881da177e4SLinus Torvalds device. 891da177e4SLinus Torvalds 90196ec243SRafael J. Wysockiconfig PM_SLEEP 91cf4fb80cSJan Beulich def_bool y 92d419e4c0SShriram Rajagopalan depends on SUSPEND || HIBERNATE_CALLBACKS 93196ec243SRafael J. Wysocki 94196ec243SRafael J. Wysockiconfig PM_SLEEP_SMP 95cf4fb80cSJan Beulich def_bool y 96196ec243SRafael J. Wysocki depends on SMP 97196ec243SRafael J. Wysocki depends on ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE 98196ec243SRafael J. Wysocki depends on PM_SLEEP 99196ec243SRafael J. Wysocki select HOTPLUG 100196ec243SRafael J. Wysocki select HOTPLUG_CPU 101196ec243SRafael J. Wysocki 102196ec243SRafael J. Wysockiconfig PM_RUNTIME 103196ec243SRafael J. Wysocki bool "Run-time PM core functionality" 104196ec243SRafael J. Wysocki depends on !IA64_HP_SIM 105196ec243SRafael J. Wysocki ---help--- 106196ec243SRafael J. Wysocki Enable functionality allowing I/O devices to be put into energy-saving 107196ec243SRafael J. Wysocki (low power) states at run time (or autosuspended) after a specified 108196ec243SRafael J. Wysocki period of inactivity and woken up in response to a hardware-generated 109196ec243SRafael J. Wysocki wake-up event or a driver's request. 110196ec243SRafael J. Wysocki 111196ec243SRafael J. Wysocki Hardware support is generally required for this functionality to work 112196ec243SRafael J. Wysocki and the bus type drivers of the buses the devices are on are 113196ec243SRafael J. Wysocki responsible for the actual handling of the autosuspend requests and 114196ec243SRafael J. Wysocki wake-up events. 115196ec243SRafael J. Wysocki 116196ec243SRafael J. Wysockiconfig PM 117cf4fb80cSJan Beulich def_bool y 118196ec243SRafael J. Wysocki depends on PM_SLEEP || PM_RUNTIME 119196ec243SRafael J. Wysocki 120196ec243SRafael J. Wysockiconfig PM_DEBUG 121196ec243SRafael J. Wysocki bool "Power Management Debug Support" 122196ec243SRafael J. Wysocki depends on PM 123196ec243SRafael J. Wysocki ---help--- 124196ec243SRafael J. Wysocki This option enables various debugging support in the Power Management 125196ec243SRafael J. Wysocki code. This is helpful when debugging and reporting PM bugs, like 126196ec243SRafael J. Wysocki suspend support. 127196ec243SRafael J. Wysocki 128196ec243SRafael J. Wysockiconfig PM_ADVANCED_DEBUG 129196ec243SRafael J. Wysocki bool "Extra PM attributes in sysfs for low-level debugging/testing" 130196ec243SRafael J. Wysocki depends on PM_DEBUG 131196ec243SRafael J. Wysocki ---help--- 132196ec243SRafael J. Wysocki Add extra sysfs attributes allowing one to access some Power Management 133196ec243SRafael J. Wysocki fields of device objects from user space. If you are not a kernel 134196ec243SRafael J. Wysocki developer interested in debugging/testing Power Management, say "no". 135196ec243SRafael J. Wysocki 136196ec243SRafael J. Wysockiconfig PM_TEST_SUSPEND 137196ec243SRafael J. Wysocki bool "Test suspend/resume and wakealarm during bootup" 138196ec243SRafael J. Wysocki depends on SUSPEND && PM_DEBUG && RTC_CLASS=y 139196ec243SRafael J. Wysocki ---help--- 140196ec243SRafael J. Wysocki This option will let you suspend your machine during bootup, and 141196ec243SRafael J. Wysocki make it wake up a few seconds later using an RTC wakeup alarm. 142196ec243SRafael J. Wysocki Enable this with a kernel parameter like "test_suspend=mem". 143196ec243SRafael J. Wysocki 144196ec243SRafael J. Wysocki You probably want to have your system's RTC driver statically 145196ec243SRafael J. Wysocki linked, ensuring that it's available when this test runs. 146196ec243SRafael J. Wysocki 147196ec243SRafael J. Wysockiconfig CAN_PM_TRACE 148196ec243SRafael J. Wysocki def_bool y 14988a6f33eSRafael J. Wysocki depends on PM_DEBUG && PM_SLEEP 150196ec243SRafael J. Wysocki 151196ec243SRafael J. Wysockiconfig PM_TRACE 152196ec243SRafael J. Wysocki bool 153196ec243SRafael J. Wysocki help 154196ec243SRafael J. Wysocki This enables code to save the last PM event point across 155196ec243SRafael J. Wysocki reboot. The architecture needs to support this, x86 for 156196ec243SRafael J. Wysocki example does by saving things in the RTC, see below. 157196ec243SRafael J. Wysocki 158196ec243SRafael J. Wysocki The architecture specific code must provide the extern 159196ec243SRafael J. Wysocki functions from <linux/resume-trace.h> as well as the 160196ec243SRafael J. Wysocki <asm/resume-trace.h> header with a TRACE_RESUME() macro. 161196ec243SRafael J. Wysocki 162196ec243SRafael J. Wysocki The way the information is presented is architecture- 163196ec243SRafael J. Wysocki dependent, x86 will print the information during a 164196ec243SRafael J. Wysocki late_initcall. 165196ec243SRafael J. Wysocki 166196ec243SRafael J. Wysockiconfig PM_TRACE_RTC 167196ec243SRafael J. Wysocki bool "Suspend/resume event tracing" 168196ec243SRafael J. Wysocki depends on CAN_PM_TRACE 169196ec243SRafael J. Wysocki depends on X86 170196ec243SRafael J. Wysocki select PM_TRACE 171196ec243SRafael J. Wysocki ---help--- 172196ec243SRafael J. Wysocki This enables some cheesy code to save the last PM event point in the 173196ec243SRafael J. Wysocki RTC across reboots, so that you can debug a machine that just hangs 174196ec243SRafael J. Wysocki during suspend (or more commonly, during resume). 175196ec243SRafael J. Wysocki 176196ec243SRafael J. Wysocki To use this debugging feature you should attempt to suspend the 177196ec243SRafael J. Wysocki machine, reboot it and then run 178196ec243SRafael J. Wysocki 179196ec243SRafael J. Wysocki dmesg -s 1000000 | grep 'hash matches' 180196ec243SRafael J. Wysocki 181196ec243SRafael J. Wysocki CAUTION: this option will cause your machine's real-time clock to be 182196ec243SRafael J. Wysocki set to an invalid time after a resume. 183196ec243SRafael J. Wysocki 1847726942fSRalf Baechleconfig APM_EMULATION 1857726942fSRalf Baechle tristate "Advanced Power Management Emulation" 1867726942fSRalf Baechle depends on PM && SYS_SUPPORTS_APM_EMULATION 1877726942fSRalf Baechle help 1887726942fSRalf Baechle APM is a BIOS specification for saving power using several different 1897726942fSRalf Baechle techniques. This is mostly useful for battery powered laptops with 1907726942fSRalf Baechle APM compliant BIOSes. If you say Y here, the system time will be 1917726942fSRalf Baechle reset after a RESUME operation, the /proc/apm device will provide 1927726942fSRalf Baechle battery status information, and user-space programs will receive 1937726942fSRalf Baechle notification of APM "events" (e.g. battery status change). 1947726942fSRalf Baechle 1957726942fSRalf Baechle In order to use APM, you will need supporting software. For location 1962dc98fd3SMichael Witten and more information, read <file:Documentation/power/apm-acpi.txt> 1972dc98fd3SMichael Witten and the Battery Powered Linux mini-HOWTO, available from 1987726942fSRalf Baechle <http://www.tldp.org/docs.html#howto>. 1997726942fSRalf Baechle 2007726942fSRalf Baechle This driver does not spin down disk drives (see the hdparm(8) 2017726942fSRalf Baechle manpage ("man 8 hdparm") for that), and it doesn't turn off 2027726942fSRalf Baechle VESA-compliant "green" monitors. 2037726942fSRalf Baechle 2047726942fSRalf Baechle Generally, if you don't have a battery in your machine, there isn't 2057726942fSRalf Baechle much point in using this driver and you should say N. If you get 2067726942fSRalf Baechle random kernel OOPSes or reboots that don't seem to be related to 2077726942fSRalf Baechle anything, try disabling/enabling this option (or disabling/enabling 2087726942fSRalf Baechle APM in your BIOS). 2095e928f77SRafael J. Wysocki 21043e60861SMark Brownconfig ARCH_HAS_OPP 21143e60861SMark Brown bool 21243e60861SMark Brown 213e1f60b29SNishanth Menonconfig PM_OPP 214e1f60b29SNishanth Menon bool "Operating Performance Point (OPP) Layer library" 21543e60861SMark Brown depends on ARCH_HAS_OPP 216e1f60b29SNishanth Menon ---help--- 217e1f60b29SNishanth Menon SOCs have a standard set of tuples consisting of frequency and 218e1f60b29SNishanth Menon voltage pairs that the device will support per voltage domain. This 219e1f60b29SNishanth Menon is called Operating Performance Point or OPP. The actual definitions 220e1f60b29SNishanth Menon of OPP varies over silicon within the same family of devices. 221e1f60b29SNishanth Menon 222e1f60b29SNishanth Menon OPP layer organizes the data internally using device pointers 223e1f60b29SNishanth Menon representing individual voltage domains and provides SOC 224e1f60b29SNishanth Menon implementations a ready to use framework to manage OPPs. 225e1f60b29SNishanth Menon For more information, read <file:Documentation/power/opp.txt> 22685eb8c8dSRafael J. Wysocki 227b7b95920SRafael J. Wysockiconfig PM_CLK 22885eb8c8dSRafael J. Wysocki def_bool y 229b7b95920SRafael J. Wysocki depends on PM && HAVE_CLK 230f721889fSRafael J. Wysocki 231f721889fSRafael J. Wysockiconfig PM_GENERIC_DOMAINS 232f721889fSRafael J. Wysocki bool 233f721889fSRafael J. Wysocki depends on PM 234*17f2ae7fSRafael J. Wysocki 235*17f2ae7fSRafael J. Wysockiconfig PM_GENERIC_DOMAINS_RUNTIME 236*17f2ae7fSRafael J. Wysocki def_bool y 237*17f2ae7fSRafael J. Wysocki depends on PM_RUNTIME && PM_GENERIC_DOMAINS 238