[Pm-utils] [RFC] check for swap partition in pm-is-supported for hibernate / suspend-hybrid

Till Maas opensource at till.name
Fri Feb 8 12:34:21 PST 2008


Hiyas,

there is a bug report[1] in Red Hat Bugzilla against pm-utils which says that 
pm-is-supported should check, whether or not there is a swap partition 
available. I am not sure whether or not this should be done by pm-utils, 
because currently there are no sanity checks for any sleep method, except 
that it is checked, whether or not there is an interface to try to 
hibernate/suspend. Also hal uses pm-is-supported and probably makes the 
results available in the keys:

power_management.can_suspend (bool) 	 	Yes	 If suspend support is compiled 
into the kernel. NB. This may not mean the machine is able to suspend 
successfully.

power_management.can_suspend_hybrid (bool) 	 	Yes	If the system is capable of 
hybrid suspend.

power_management.can_hibernate (bool) 	 	Yes	If hibernation support is 
compiled into the kernel. NB. This may not mean the machine is able to 
hibernate successfully.

Therfore it seems that pm-is-supported should not do any sanity checks in case 
the output is used by hal, because it would break the hal specification. Do 
you have any ideas?

Regards,
Till

[1] https://bugzilla.redhat.com/show_bug.cgi?id=431956
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freedesktop.org/archives/pm-utils/attachments/20080208/60798670/attachment.pgp 


More information about the Pm-utils mailing list