Hi all, seeing as it is that the current software suspend allows suspending only from built-in devices I've hacked the swsusp code to allow also for manual resume. Thus it is now be capable to suspend to modular devices also. This is actually based on a previous patch by mjg59 at scrf.ucam.org, augmented by suggestions from Pavel Machek. For a clean implementation I've split up the function swsusp_read() into the distinct functions swsusp_check() and swsusp_read(). Furthermore the function prepare() has been split into prepare_processes() and prepare_devices(). With this we now have the functionality to first check whether the device really contains a resume image, then freeze all processes and free some memory, read in the resume image and shut down all devices. It actually makes checking for a resume image faster than the current implementation. resume can be started by 'echo : > /sys/power/resume". Note that this _only_ works from within initramfs when _no_ devices are mounted. Otherwise resume will not be able to freeze the swapper task and consequently fail. And yes, it needs to be properly documented. Will do once the patch is accepted in principle :-). Oh, and the usual applies: works for me, might eat your disk, beware of nasal demons. Cheers, Hannes -- Dr. Hannes Reinecke hare@suse.de SuSE Linux AG S390 & zSeries Maxfeldstraße 5 +49 911 74053 688 90409 Nürnberg http://www.suse.de