Bug 483164 - pm-utils needlessly logs an error when resuming from suspend
Summary: pm-utils needlessly logs an error when resuming from suspend
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: PackageKit
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-01-29 22:10 UTC by Daniel Qarras
Modified: 2009-08-22 01:01 UTC (History)
7 users (show)

Fixed In Version: 0.4.9-1.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-06-03 08:57:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


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