F15 fails to suspend/hibernate on Thinkpad W510+

Chris Adams cmadams at hiwaay.net
Fri Jun 24 14:18:14 UTC 2011


Once upon a time, Darryl L. Pierce <dpierce at redhat.com> said:
> (mcpierce at mcpierce-laptop:~)$ pm-is-supported --suspend
> (mcpierce at mcpierce-laptop:~)$ echo $?
> 0
> (mcpierce at mcpierce-laptop:~)$ pm-is-supported --hibernate
> (mcpierce at mcpierce-laptop:~)$ echo $?
> 0
> (mcpierce at mcpierce-laptop:~)$ pm-is-supported --suspend-hybrid
> (mcpierce at mcpierce-laptop:~)$ echo $?
> 1
> 
> Though I'm questioning this last once since I tried to do:
> 
> pm-is-supported --suspend-hybrid && echo $?
> 
> and it never showed the RC, telling me the command itself failed.

Remember: exit code of zero is "success", non-zero is "failure".  It is
inverted from common usage, but allows for multiple "failure" exit
codes.

-- 
Chris Adams <cmadams at hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.


More information about the users mailing list