Bug 1326437

Summary: Dim screen activates swap
Product: [Fedora] Fedora Reporter: Sinbad <sinbad>
Component: gnome-power-managerAssignee: Richard Hughes <rhughes>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: rhughes, vrubezhny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 19:56:13 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:

Description Sinbad 2016-04-12 16:45:00 UTC
Description of problem: When the screen dims after given idle time 
and automatic suspend is off it writes the the whole session to swap
leading to about 3-5 minutes to be able to use desktop(in a 5400 RPM HDD).

I have bypassed the problem by activating automatic suspend only on battery power, witch seems to prevent it even when plugged in.

Prior to finding the above solution, I changed vm.swappiness to 10, but it had no effect.


Version-Release number of selected component (if applicable):
Fedora 23 Workstation x86_64
Gnome 3.18
gnome-control-center 3.18.2


How reproducible: Happened every time on my machine


Steps to Reproduce:
1.Enable "Dim screen when inactive" power option and set any time(1 minute for quick testing)
2.Turn off "Automatic Suspend" option for both battery and plugged in
3.Wait a few minutes for screen to turn off

Actual results: For a the few minutes after moving mouse or pressing any key
laptop will be sluggish and most, if not, all of the session will be on swap, resulting in waiting for it load from disk to ram.


Expected results: After key press or mouse toggle pc is in the exact state it was before dimming the screen with no part of the session being in swap.


Additional info:
HDD: 750 GB at 5400 RPM
RAM: 4 GB
Swappiness: 60
Swap partition: 4.2 GB
This might be expected behavior but since the above workaround gave the results it did i concluded that its most probably a bug, so my apologies if it isn't.
Also note that ram usage didn't exceed 1 GB

Comment 1 vrubezhny 2016-04-12 22:52:07 UTC
It happens for me too: every time when my fedora 23 goes into a sleep for more than about 3-5 minutes it looks like the memory is dropped to the swap. After that I have not a chance to wake it up - all it does is just constantly spinning the disks and probably goes into a hight CPU consumption as it's fan also actively rotates. The only way to get it back working is the hard reset.

ASUS n76v notebook/Intel
2xHDD: 1TB
RAM: 8GB
Swappines: 1 (that was an experiment, cause it works really slow if it hardly uses the swapping, but that is another issue)
Swap partition: 16GB
Linux 4.4.6-301.fc23.x86_64 #1 SMP Wed Mar 30 16:43:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

As the system cannot be waken up after such a sleep without hard-rebooting it I would consider it as a bug. 

It looks like the issue has started appeared few updates before (for sure there were few kernel updates as well as gnome related updates) - but unfortunately I cannot tell for sure which update has caused the issue.

Comment 2 Sinbad 2016-04-13 00:14:15 UTC
I have found another workaround/temporary solution:
Disable all these options and use xset dpms for the blank screen functionality if thats what your after (ie. no lock after blank etc.), witch works for me.

Comment 3 Sinbad 2016-04-13 01:28:04 UTC
Scratch the above, it seems xset dpms is causing the problem as well(or maybe its the source of it)

Comment 4 Fedora End Of Life 2016-11-25 07:20:33 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 5 Fedora End Of Life 2016-12-20 19:56:13 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.