Bug 1346811

Summary: Hibernation fails when Google Chrome is running, not otherwise
Product: [Fedora] Fedora Reporter: Patrick O'Callaghan <poc>
Component: hibernateAssignee: gil cattaneo <puntogil>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: java-sig-commits, puntogil, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-15 12:19:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Section of journal showing hibernation failure none

Description Patrick O'Callaghan 2016-06-15 11:42:51 UTC
Created attachment 1168334 [details]
Section of journal showing hibernation failure

Description of problem:
On selecting Hibernate from the KDE menu when Google Chrome is running, the screen blanks for a few seconds and then comes back up as before. If Chrome is not running, the system hibernates correctly (and restores correctly).

Version-Release number of selected component (if applicable):
kernel-4.4.9-300.fc23.x86_64
google-chrome-stable-51.0.2704.84-1.x86_64
systemd-222-14.fc23.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Run Chrome
2. Select Hibernate from KDE menu

Actual results:
Screen blanks, then returns to normal.

Expected results:
System hibernates.

Additional info:
The first time this happened, journalctl showed an error (see attachment), but on subsequent occasions there is nothing related to hibernation, just many SElinux violations for Chrome. However these have been going on for months now with no obvious effect, while the present bug started only on a recent system update.

Comment 1 gil cattaneo 2016-06-15 12:18:29 UTC
This is a Java package.
What has that to do with the issues reported?
Nothing.
Please, select the correct component.
This bug will be closed.

Comment 2 Rex Dieter 2016-06-15 12:22:56 UTC
If I recall correctly too, this is a chrome feature, to inhibit sleep/shutdown if there are active downloads.

Comment 3 gil cattaneo 2016-06-15 12:29:47 UTC
(In reply to Rex Dieter from comment #2)
> If I recall correctly too, this is a chrome feature, to inhibit
> sleep/shutdown if there are active downloads.

Sorry, this is not the right component.
This library provides "object/relational persistence and query service for Java"

Comment 4 Patrick O'Callaghan 2016-06-15 12:32:53 UTC
(In reply to gil cattaneo from comment #3)
> (In reply to Rex Dieter from comment #2)
> > If I recall correctly too, this is a chrome feature, to inhibit
> > sleep/shutdown if there are active downloads.
> 
> Sorry, this is not the right component.
> This library provides "object/relational persistence and query service for
> Java"

In that case I would appreciate a pointer to what would be the correct component. Since it's unclear exactly what is failing, I simply searched for "hibernate" in the bug reporting tool and got this. Apologies if that's wrong.

Comment 5 Patrick O'Callaghan 2016-06-15 12:35:46 UTC
(In reply to Rex Dieter from comment #2)
> If I recall correctly too, this is a chrome feature, to inhibit
> sleep/shutdown if there are active downloads.

I've been using Chrome for years and hibernation for several months now, but this has never happened before. However, best leave discussion to whatever is the correct component.

Comment 6 gil cattaneo 2016-06-15 12:39:26 UTC
(In reply to Patrick O'Callaghan from comment #4)
> (In reply to gil cattaneo from comment #3)
> > (In reply to Rex Dieter from comment #2)
> > > If I recall correctly too, this is a chrome feature, to inhibit
> > > sleep/shutdown if there are active downloads.
> > 
> > Sorry, this is not the right component.
> > This library provides "object/relational persistence and query service for
> > Java"
> 
> In that case I would appreciate a pointer to what would be the correct
> component. Since it's unclear exactly what is failing, I simply searched for
> "hibernate" in the bug reporting tool and got this. Apologies if that's
> wrong.

run "locate hibernate"
after run "rpm -qf /usr/sbin/pm-hibernate"
maybe could help for the next time

Comment 7 Rex Dieter 2016-06-15 12:48:55 UTC
correct component would be "chrome" (not in fedora)

Comment 8 gil cattaneo 2016-06-15 12:57:38 UTC
(In reply to Rex Dieter from comment #7)
> correct component would be "chrome" (not in fedora)

then this bug is useless

Comment 9 Rex Dieter 2016-06-15 13:00:27 UTC
Yes it is, though as mentioned, I suspect this is a feature not a bug (in chrome)

Comment 10 gil cattaneo 2016-06-15 13:12:47 UTC
(In reply to Rex Dieter from comment #9)
> Yes it is, though as mentioned, I suspect this is a feature not a bug (in
> chrome)

Take a look here, if you are not aware: https://bugzilla.redhat.com/show_bug.cgi?id=1270322

Comment 11 Patrick O'Callaghan 2016-06-15 15:38:29 UTC
I do understand that Chrome is not a Fedora component. I reported the bug because I didn't realise that a non-privileged process could inhibit hibernation (the fact that it was Chrome wasn't really the point). I'm still somewhat surprised at that, but if it's system policy then there's nothing to be done. However the journal message quoted earlier doesn't say anything about policy, it reports the non-hibernation as a failure with no explanation.

I'll report this under systemd, which is where it should probably go.

Comment 12 Rex Dieter 2016-06-15 15:43:57 UTC
if you click on the plasma powermanagement/battery applet, it should display all current/active inhibitors.

other examples of where this inhibitor feature can be used:
media players:  you don't want your computer to go to sleep with playing a video, for example

Comment 13 Patrick O'Callaghan 2016-06-15 15:55:31 UTC
(In reply to Rex Dieter from comment #12)
> if you click on the plasma powermanagement/battery applet, it should display
> all current/active inhibitors.

I haven't been using that since this is a desktop system with no battery. I'll check it out.

> other examples of where this inhibitor feature can be used:
> media players:  you don't want your computer to go to sleep with playing a
> video, for example

I understand that, however there's a difference between automatic power-saving and deliberate hibernation. If I use a manual control to hibernate the system I actually want it to turn off.

In any case, I reported this under:

https://bugzilla.redhat.com/show_bug.cgi?id=1346908