Bug 1408692 - Suspend and hibernate not working after Fedora 25 upgrade
Summary: Suspend and hibernate not working after Fedora 25 upgrade
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: pm-utils
Version: 25
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-26 12:24 UTC by gjs
Modified: 2017-08-27 12:44 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-12-26 22:29:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description gjs 2016-12-26 12:24:16 UTC
Description of problem:
After upgrading (graphical) from 24 to 25 suspend and hibernate where not working nor was there an entry in Gnome > settings > energy to make this possible.


Version-Release number of selected component (if applicable):
Fedora 25


How reproducible:
Allways

Steps to Reproduce:
1. Close laptop lid
2. Laptop stays on
3. 

Actual results:
None

Expected results:
Got to suspend

Additional info:
In bios I have activated both graphics cards (intel and nvidia) due to better support in FC 25 (wayland) for switchable graphics.
Turned to intergrated (Intel) only.
Edited GRUB to:
GRUB_CMDLINE_LINUX="rd.lvm.lv=fedora/swap rd.lvm.lv=fedora/root rhgb quiet acpi=on acpi_osi=Linux"
and removed "i915.i915_enable_rc6=1".
Now suspend an hibernate works but I can not use the Nvida card.

Comment 1 gil cattaneo 2016-12-26 22:29:23 UTC
This bug is assinged to a wrong componet, because: Hibernate is a powerful, ultra-high performance object/relational persistence and query service for Java.

Comment 2 gil cattaneo 2016-12-26 22:32:32 UTC
suggestion:
$ locate hibernate
...
/usr/sbin/pm-hibernate
...

rpm -qf /usr/sbin/pm-hibernate

Comment 3 gjs 2016-12-28 11:47:48 UTC
/usr/sbin/pm-hibernate is available.
Result of rpm -qf /usr/sbin/pm-hibernate is pm-utils-1.4.1-30.fc21.x86_64

When selecting both graphic cards in BIOS suspend and hibernate do not work. Only when given the command from commandline but not when closing the laptop.
When selecting only Intel graphic card in BIOS suspend and hibernate work as expected.

Comment 4 gjs 2016-12-28 22:23:48 UTC
Hardware: Nvidia GForce 540M and Intel. 
Legacy BIOS, Acer TimelineX 3830TG
lspci |grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)

Comment 5 Jaroslav Škarvada 2017-01-02 15:40:03 UTC
Currently pm-utils are obsoleted. Suspend/resume is handled by kernel and as a frontend systemd is used which is usually called by desktop power manager.

Lid switch is handled by systemd. Check /etc/systemd/logind.conf
HandleLidSwitch should be commented (i.e. on the default settings which is suspend) or you can also set it the following way:
HandleLidSwitch=suspend

In case there are multiple monitors/GPUs or dock you may also need to set:
HandleLidSwitchDocked=suspend

Which is by default set to 'ignore'. For details see:
$ man logind.conf

If it still doesn't work, please reassign this bug to systemd.

Also please note this bug is currenty in 'CLOSED' state, i.e. resolved.

Comment 6 sandeep 2017-08-27 12:44:00 UTC
I have a hypothesis that this happening because of missing swap partitions. I have a similar issue on Fedora 26. And after a lot of trial and errors, I tried to see the dependence on swap partitions.

One of the things I noticed is that I dont have a swap partition
cat /proc/swaps
I then created a new swap file
sudo dd if=/dev/zero of=/swapfile bs=1024 count=8388608
sudo chmod 0600 /swapfile
sudo swapon /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab
It looks my suspend/resume is working fine again. I wonder how I ended up with no swap partition. I'm pretty sure I used Fedora default installation options


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