F15 fails to suspend/hibernate on Thinkpad W510+
Darryl L. Pierce
dpierce at redhat.com
Wed Jun 29 15:11:00 UTC 2011
On Tue, Jun 28, 2011 at 04:31:32PM -0400, Bill Davidsen wrote:
> You have asked it to display the termination code if it terminates normally. Is
> that what you want? I would think you want to display it when it fails, maybe:
> pm-is-supported --suspend-hybrid && echo Supported || echo "Not supported $?"
>
> Remember zero is good status...
Trust me, I'm remembering that. ;)
From the pm-is-supported manpage:
RETURN VALUE
The result of the test for a certain powermanagement state is defined by the following exit codes.
Code Diagnostic
0 State available.
1 State NOT available.
--
Darryl L. Pierce, Sr. Software Engineer @ Red Hat, Inc.
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
Url : http://lists.fedoraproject.org/pipermail/users/attachments/20110629/4dcf1439/attachment-0001.bin
More information about the users
mailing list