power_management.can_suspend_to_disk

S.Çağlar Onur caglar at pardus.org.tr
Fri Nov 3 10:37:04 PST 2006


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?

Cheers
-- 
S.Çağlar Onur <caglar at pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20061103/3838602b/attachment-0001.pgp


More information about the hal mailing list