Bug 102034 - suspend after closing lid on notebook stopped working after update to 0.99.5
Summary: suspend after closing lid on notebook stopped working after update to 0.99.5
Status: RESOLVED MOVED
Alias: None
Product: upower
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-04 05:37 UTC by M G
Modified: 2018-06-04 13:23 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description M G 2017-08-04 05:37:06 UTC
I use closing lid to suspend Linux every day. After updating from 0.99.4-2 to 0.99.5-1, Linux would not suspend with lid closing. Manual suspend works.
I downgraded upower to 0.99.4-2 and it works again.
I am on Fedora 25.
Comment 1 Bastien Nocera 2017-09-08 13:31:49 UTC
Pretty sure this is the bug fixed just after 0.99.5:
commit 502c63b54944064dfd5f5cc4463bfb3d457a95c0
Author: Benjamin Berg <bberg@redhat.com>
Date:   Thu Aug 3 17:12:50 2017 +0200

    linux: Correctly close inhibitor FD
    
    The unref of the FD list for the inhibitor was missing which means that
    the FD was leaked and the lock was never released. This means that for
    each suspend/resume cycle a new inhibitor would be added.
    
    Signed-off-by: Richard Hughes <richard@hughsie.com>


Which is also fixed in this version of UPower (and that's already in the updates)
https://koji.fedoraproject.org/koji/buildinfo?buildID=961016

Does that fix it for you?
Comment 2 M G 2017-09-08 15:28:07 UTC
Yes, it seems to be working fine now. Thank you
Comment 3 GitLab Migration User 2018-06-04 13:23:14 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/upower/upower/issues/17.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.