RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 613509 - pm-suspend returned 1
Summary: pm-suspend returned 1
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: pm-utils
Version: 6.0
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Jaroslav Škarvada
QA Contact: desktop-bugs@redhat.com
URL:
Whiteboard:
Depends On: 619265
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-12 04:51 UTC by Qian Cai
Modified: 2010-11-10 21:21 UTC (History)
3 users (show)

Fixed In Version: pm-utils-1.2.5-8.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-10 21:21:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Fix maybe_deallocvt, now it returns true if there is --quirk-no-chvt (same behaviour as maybe_chvt). (327 bytes, patch)
2010-07-13 07:34 UTC, Jaroslav Škarvada
no flags Details | Diff

Description Qian Cai 2010-07-12 04:51:59 UTC
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:

Comment 1 Jaroslav Škarvada 2010-07-13 07:34:48 UTC
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.

Comment 2 Jaroslav Škarvada 2010-07-13 07:53:23 UTC
Scratch build: https://brewweb.devel.redhat.com/taskinfo?taskID=2590861

Comment 3 Qian Cai 2010-07-13 09:57:30 UTC
It fixed for me. Thanks for the quick fix.

Comment 4 Jaroslav Škarvada 2010-07-14 07:23:49 UTC
Fixed in pm-utils-1.2.5-8.el6.

Comment 5 Vladimir Benes 2010-07-14 09:31:04 UTC
pm-suspend now returns 0 if successfully resumed
-> VERIFIED

Comment 6 releng-rhel@redhat.com 2010-11-10 21:21:17 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.