Bug 483164

Summary: pm-utils needlessly logs an error when resuming from suspend
Product: [Fedora] Fedora Reporter: Daniel Qarras <dqarras>
Component: PackageKitAssignee: Richard Hughes <richard>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: lmacken, opensource, pknirsch, rhughes, richard, robin.norwood, smparrish
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.4.9-1.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-03 08:57:37 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:

Description Daniel Qarras 2009-01-29 22:10:19 UTC
Description of problem:
When doing a suspend/resume cycle everything works ok. If this is done again, say, an hour later, everything is still ok. However, doing another suspend/resume few minutes after the previous cycle, pm-suspend exits with 1 and logs an error:

/usr/lib/pm-utils/sleep.d/95packagekit resume suspend: Error org.freedesktop.Pa
ckageKit.InvalidState: Already asked to refresh normal state less than 600 secon
ds ago
Returned exit code 1.

I think this is innocent and could be ignored in 95packagekit script.

Version-Release number of selected component (if applicable):
pm-utils-1.2.2.1-2.fc10.i386

How reproducible:
Always.

Steps to Reproduce:
1. Suspend/resume
2. Suspend/resume again with 10 minutes since the previous cycle
3. Notice the error in log and the return value from the command indicating an error
  
Additional info:
This comes up at least for zsh users as many of them have zsh to print non-zero exit status from commands.

Comment 1 Phil Knirsch 2009-02-06 16:48:59 UTC
That should be easy to fix.

Thanks & regards, Phil

Comment 2 Daniel Qarras 2009-04-03 15:53:26 UTC
Well I now tested with F11ß, the script looks identical to F10 version but I was able to confirm the behaviour since the second resume from suspend never finished. So I can only assume that the original issue is still present in F11ß.

Comment 3 Daniel Qarras 2009-04-04 14:31:03 UTC
Resume work normally now with latest kernel update and I was able to confirm that the original issue still is still present.

Comment 4 Phil Knirsch 2009-04-08 13:32:24 UTC
Doh, silly me. This is of course part of PackageKit. Reassigning.

Thanks & regards, Phil

Comment 5 Richard Hughes 2009-06-03 08:57:37 UTC
commit 65a29665eb4e852e3c3c9ceae962a3968cd5601a
Author: Richard Hughes <richard>
Date:   Wed Jun 3 09:56:31 2009 +0100

    Never return FALSE from StateHasChanged(). Fixes rh#483164

Comment 6 Fedora Update System 2009-08-03 14:32:47 UTC
PackageKit-0.4.9-1.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/PackageKit-0.4.9-1.fc11

Comment 7 Fedora Update System 2009-08-22 01:00:43 UTC
PackageKit-0.4.9-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.