Bug 613509
| Summary: | pm-suspend returned 1 | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Qian Cai <qcai> | ||||
| Component: | pm-utils | Assignee: | Jaroslav Škarvada <jskarvad> | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | desktop-bugs <desktop-bugs> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0 | CC: | jskarvad, rvokal, vbenes | ||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | pm-utils-1.2.5-8.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2010-11-10 21:21:17 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | 619265 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
Created attachment 431375 [details]
Fix maybe_deallocvt, now it returns true if there is --quirk-no-chvt (same behaviour as maybe_chvt).
Happened only on machines with --quirk-no-chvt. Please try the attached patch.
Scratch build: https://brewweb.devel.redhat.com/taskinfo?taskID=2590861 It fixed for me. Thanks for the quick fix. Fixed in pm-utils-1.2.5-8.el6. pm-suspend now returns 0 if successfully resumed -> VERIFIED Red Hat Enterprise Linux 6.0 is now available and should resolve the problem described in this bug report. This report is therefore being closed with a resolution of CURRENTRELEASE. You may reopen this bug report if the solution does not work for you. |
Description of problem: This caused hardware test suite (v7) suspend test failure on several laptops (x200, T400). /var/run/pm-utils/pm-suspend/storage/inhibit was created during the test. The call flow is like this, pm-suspend -> do_suspend -> run_hooks sleep 'resume suspend' reverse -> maybe_deallocvt -> state_exists console -> [ -O "${STORAGEDIR}/state:$1" ] (/var/run/pm-utils/pm-suspend/storage/state:console not there) -> state_exists console || return (return 1) -> hook_exit_status 1 -> inhibit -> echo "$*" > "$INHIBIT" -> inhibited -> exit 1 Version-Release number of selected component (if applicable): kernel-2.6.32-44.el6 pm-utils-1.2.5-7.el6 RHEL6.0-20100707.4 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: