Re: CONFIG_SOFTWARE_SUSPEND=y, ACPI, and uswsusp
On Tue, 27 Mar 2007 12:16:48 -0400
Nick Lidakis <email@example.com> wrote:
> Celejar wrote:
> > On Tue, 27 Mar 2007 01:29:40 -0400
> > Nick Lidakis <firstname.lastname@example.org> wrote:
> >> I am attempting to get uswsusp working on my Debian Sid machine. After
> >> reading the docs, a couple of SuSe web pages
> >> (http://en.opensuse.org/S2disk) regarding s2ram and s2disk I am stuck on
> >> one detail: CONFIG_SOFTWARE_SUSPEND=y. I can not find this kernel option
> >> anywhere when attempting to configure the kernel. Whether it's the
> >> debian 2.6.18 source or the kernel.org 2.6.20 source; can't be found.
> >> Not under the ACPI options, nor the CPU frequency scaling options.
> >> Attempting to dpkg-reconfigure uswsusp results in:
> >> Your kernel doesn't support userspace software
> >> suspend
> >> Your kernel doesn't support userspace sofware suspend. Please
> >> reconfigure your kernel to include
> >> CONFIG_SOFTWARE_SUSPEND=y and recompile.
> >> Can someone point me in the right direction?
> > In 2.6.18, it's under 'Power Management Options'. Check 'Software
> > Suspend'.
> > Celejar
> No. It is not. That's why I went to the trouble of downloading 2.6.20
> from kernel.org. These are my options in either kernel:
> [*] Power Management support
> ? ? [*] Legacy Power Management API (DEPRECATED)
> ? ? [ ] Power Management Debug Support
> ? ? [ ] Driver model /sys/devices/.../power/state files (DEPRECATED) (NEW)
> ? ? ACPI (Advanced Configuration and Power Interface) Support --->
> ? ? APM (Advanced Power Management) BIOS Support --->
> ? ? CPU Frequency scaling --->
> And under ACPI:
> [*] ACPI Support
> ? ? < > AC Adapter
> ? ? < > Battery
> ? ? <*> Button
> ? ? < > Video
> ? ? < > Generic Hotkey (EXPERIMENTAL)
> ? ? <*> Fan
> ? ? < > Dock
> ? ? <*> Processor
> ? ? <*> Thermal Zone
> ? ? < > ASUS/Medion Laptop Extras
> ? ? < > IBM ThinkPad Laptop Extras
> ? ? < > Toshiba Laptop Extras
> ? ? (0) Disable ACPI for systems before Jan 1st this year
> ? ? [ ] Debug Statements
> ? ? < > ACPI0004,PNP0A05 and PNP0A06 Container Driver (EXPERIMENTAL)
> ? ? < > Smart Battery System (EXPERIMENTAL)
> ? ?
> Now, the only thing I can think of is in regards to the error message I
> get whenever a new version of uwsusp get installed, which is:
> Configuring uswsusp
> ? Your kernel doesn't support userspace software suspend
> ? Your kernel doesn't support userspace sofware suspend. Please
> reconfigure your kernel to include
> ? CONFIG_SOFTWARE_SUSPEND=y and recompile.
> ? <Ok>
> So, how come software suspend is not listed under my kernel options??
Well, like many kernel options, it does depend on other things. For
example, if swap (General Setup / support for paging anonymous memory
(swap)) isn't enabled, you won't get an option for software suspend.
> config SOFTWARE_SUSPEND
> bool "Software Suspend"
> depends on PM && SWAP && ((X86 && (!SMP || SUSPEND_SMP) && !X86_PAE) ||
> ((FRV || PPC32) && !SMP))
> Enable the possibility of suspending the machine.
> It doesn't need ACPI or APM.
> You may suspend your machine by 'swsusp' or 'shutdown -z <time>'
> (patch for sysvinit needed).