From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernard Blackham Subject: Re: current ACPI status in 2.6.7 kernel Date: Wed, 11 Aug 2004 21:56:04 +0800 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040811135604.GL8124@blackham.com.au> References: <411881B1.9000903@ti.com> <1092132146.2666.3.camel@laptop.cunninghams> <4118D40D.5030404@ti.com> <4118F918.7070909@optonline.net> <4119024B.5060602@optonline.net> <4119CF6A.8020807@ti.com> <411A1CC5.5030401@optonline.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <411A1CC5.5030401-p32f3XyCuykqcZcGjlUOXw@public.gmane.org> Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Alexander Sirotkin Cc: ACPI List , Nathan Bryant List-Id: linux-acpi@vger.kernel.org On Wed, Aug 11, 2004 at 09:19:01AM -0400, Nathan Bryant wrote: > > know how to do this. Is there an utility to put PC into > > sleep/suspend ? I know I can switch to various S modes using > > /proc entry, but what about all the peripherals and user mode > > apps ? > > I would venture that there has to be some kind of subsystem in > > user mode to take care of all this. I probably did not phrase my > > question right, but when I Asked if ACPI suspend/sleep status is > > stable enough I was actually referring to the whole subsystem, > > not just kernel support. > > It's not that big of a deal for userspace, you just need scripts to > unload any problem device drives before suspend and reload them after > resume. You would also need to kill and restart any programs that will > be broken by those devices going away. APM already has config files that > specify a lot of this which could probably be adapted to ACPI. But the > ultimate goal is to get devices that don't even need to be unloaded, > since we now have proper suspend/resume hooks. ;) For Software Suspend 2, I've written a package called hibernate which can be used to activate Software Suspend 2, or alternately utilise the /sys/power/state interface. (It doesn't manipulate /proc/acpi/sleep, as I was under an impression it was getting deprecated - on the other hand if it isn't, writing a plugin to do so isn't hard). http://developer.berlios.de/project/showfiles.php?group_id=1412 under "Current Scripts". > I think there is a "pmsuspend" program floating around out there, don't > know how well it has been integrated with existing suspend/resume > scripts though. Seems a Mandrake thing, but covers much the same ground as hibernate. hibernate tries to cover most distributions. > Oh, and there's that annoying little problem where acpid sees the button > press that I have to use to resume, as a shutdown event... Does "rmmod button" just before suspending help? Bernard. -- Bernard Blackham ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285