power_management.can_suspend_to_disk

Stefan Seyfried seife at suse.de
Sun Nov 5 23:53:20 PST 2006


On Fri, Nov 03, 2006 at 08:37:04PM +0200, S.Çağlar Onur wrote:
> Hi;
> 
> Although this property only shows kernel has this support, powermanagement 
> applications uses this value. 
> 
> But suspend code in kernel needs seperate swap partition, so machines that 
> just using a swap files can't suspend to disk but hal reports this machine 
> can suspend to disk (which is true, kernel has that).
> 
> caglar at bankai ~ $ lshal | grep suspend
>   power_management.can_suspend_to_disk = true  (bool)
> 
> caglar at bankai ~ $ cat /proc/swaps
> Filename                                Type            Size    Used    
> Priority
> /.swap                                  file            307192  0       -1
> 
> What do you think adding a extra control to 
> osspec.c/set_suspend_hibernate_keys to checking swap is file or partition?

Today, with a recent kernel, you can already suspend/resume to/from a 
swapfile. Suspend2 also can do this for a long time.
-- 
Stefan Seyfried
QA / R&D Team Mobile Devices        |              "Any ideas, John?"
SUSE LINUX Products GmbH, Nürnberg  | "Well, surrounding them's out." 


More information about the hal mailing list