Originally posted by vegabook
View Post
Announcement
Collapse
No announcement yet.
Fedora Wants To Know If Linux Hibernation Works For You
Collapse
X
-
-
My experience on lower-end desktops is that hibernation works. I would prefer to use suspend, but on a Kaveri the option to wake on a keypress had been removed from the bios/efi, and more generally suspend only works if a PS/2 keyboard is connected (and those connectors seem "fragile" nowadays, or maybe I'm just getting clumsy). But in theory PS/2 KVM switches are dying out, so not sure what will happen when I eventually move from a PS/2+VGA KVM switch to usb+hdmi.
For suspend, it worked on an i7 haswell until I broke the PS/2 connector, it works on old machines (i3 SandyBridge, old Phenom), and it works on my Ryzen 3 1300X now that I have an old Radeon graphics card. On that machine I initially fitted a GT710 - very low power consumption, ok with nouveau in a tty, but regularly crashed in X and was not able to suspend.
But "works" typically means that in one resume out of maybe 10 it doesn't come back properly (mostly, no video). But hibernation is a lot more reliable these days - when I first got this particular Kaveri mobo it harly ever managed to resume.
Comment
-
Well, just performed a few tests on my Asus GL552JX with the following configuration:
Code:raptor description: Notebook product: GL552JX (ASUS-NotebookSKU) vendor: ASUSTeK COMPUTER INC. version: 1.0 serial: F4N0CV333467167 width: 64 bits capabilities: smbios-2.7 dmi-2.7 smp vsyscall32 configuration: boot=normal chassis=notebook family=GL sku=ASUS-NotebookSKU uuid=B9E58D73-84F3-4245-A157-125187360F2C *-core description: Motherboard product: GL552JX vendor: ASUSTeK COMPUTER INC. physical id: 0 version: 1.0 serial: BSN12345678901234567 slot: MIDDLE *-firmware description: BIOS vendor: American Megatrends Inc. physical id: 0 version: GL552JX.202 date: 02/05/2015 size: 64KiB capacity: 6MiB capabilities: pci upgrade shadowing cdboot bootselect socketedrom edd int13floppy1200 int13floppy720 int13floppy2880 int5printscreen int9keyboard int14serial int17printer acpi usb smartbattery biosbootspecification uefi *-cpu description: CPU product: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz vendor: Intel Corp. physical id: 7 bus info: cpu@0 version: Intel(R) Core(TM) i7-4720HQ CPU @ 2.60GHz slot: SOCKET 0 size: 2987MHz capacity: 3800MHz width: 64 bits clock: 100MHz capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid xsaveopt dtherm ida arat pln pts flush_l1d cpufreq configuration: cores=4 enabledcores=4 threads=8 *-cache:0 description: L2 cache physical id: 8 slot: CPU Internal L2 size: 1MiB capacity: 1MiB capabilities: internal write-back unified configuration: level=2 *-cache:1 description: L1 cache physical id: 9 slot: CPU Internal L1 size: 256KiB capacity: 256KiB capabilities: internal write-back configuration: level=1 *-cache:2 description: L3 cache physical id: a slot: CPU Internal L3 size: 6MiB capacity: 6MiB capabilities: internal write-back unified configuration: level=3 *-memory description: System Memory physical id: b slot: System board or motherboard size: 12GiB *-bank:0 description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns) product: HMT41GS6BFR8A-PB vendor: Hynix/Hyundai physical id: 0 serial: 085A378B slot: ChannelA-DIMM0 size: 8GiB width: 64 bits clock: 1600MHz (0.6ns) *-bank:1 description: DIMM [empty] product: [Empty] vendor: [Empty] physical id: 1 serial: [Empty] slot: ChannelA-DIMM1 *-bank:2 description: SODIMM DDR3 Synchronous 1600 MHz (0.6 ns) product: HMT451S6BFR8A-PB vendor: Hynix/Hyundai physical id: 2 serial: 0F66EC70 slot: ChannelB-DIMM0 size: 4GiB width: 64 bits clock: 1600MHz (0.6ns) *-bank:3 description: DIMM [empty] product: [Empty] vendor: [Empty] physical id: 3 serial: [Empty] slot: ChannelB-DIMM1 *-pci description: Host bridge product: Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller vendor: Intel Corporation physical id: 100 bus info: pci@0000:00:00.0 version: 06 width: 32 bits clock: 33MHz *-pci:0 description: PCI bridge product: Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller vendor: Intel Corporation physical id: 1 bus info: pci@0000:00:01.0 version: 06 width: 32 bits clock: 33MHz capabilities: pci pm msi pciexpress normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:26 ioport:e000(size=4096) memory:f6000000-f70fffff ioport:e0000000(size=301989888) *-display description: 3D controller product: GM107M [GeForce GTX 950M] vendor: NVIDIA Corporation physical id: 0 bus info: pci@0000:01:00.0 version: a2 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list rom configuration: driver=nvidia latency=0 resources: irq:39 memory:f6000000-f6ffffff memory:e0000000-efffffff memory:f0000000-f1ffffff ioport:e000(size=128) memory:f7000000-f707ffff *-display description: VGA compatible controller product: 4th Gen Core Processor Integrated Graphics Controller vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 06 width: 64 bits clock: 33MHz capabilities: msi pm vga_controller bus_master cap_list rom configuration: driver=i915 latency=0 resources: irq:35 memory:f7400000-f77fffff memory:d0000000-dfffffff ioport:f000(size=64) memory:c0000-dffff *-multimedia:0 description: Audio device product: Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller vendor: Intel Corporation physical id: 3 bus info: pci@0000:00:03.0 version: 06 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=snd_hda_intel latency=0 resources: irq:38 memory:f7a14000-f7a17fff *-usb:0 description: USB controller product: 8 Series/C220 Series Chipset Family USB xHCI vendor: Intel Corporation physical id: 14 bus info: pci@0000:00:14.0 version: 05 width: 64 bits clock: 33MHz capabilities: pm msi xhci bus_master cap_list configuration: driver=xhci_hcd latency=0 resources: irq:32 memory:f7a00000-f7a0ffff *-communication description: Communication controller product: 8 Series/C220 Series Chipset Family MEI Controller #1 vendor: Intel Corporation physical id: 16 bus info: pci@0000:00:16.0 version: 04 width: 64 bits clock: 33MHz capabilities: pm msi bus_master cap_list configuration: driver=mei_me latency=0 resources: irq:36 memory:f7a1e000-f7a1e00f *-usb:1 description: USB controller product: 8 Series/C220 Series Chipset Family USB EHCI #2 vendor: Intel Corporation physical id: 1a bus info: pci@0000:00:1a.0 version: 05 width: 32 bits clock: 33MHz capabilities: pm debug ehci bus_master cap_list configuration: driver=ehci-pci latency=0 resources: irq:16 memory:f7a1c000-f7a1c3ff *-multimedia:1 description: Audio device product: 8 Series/C220 Series Chipset High Definition Audio Controller vendor: Intel Corporation physical id: 1b bus info: pci@0000:00:1b.0 version: 05 width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list configuration: driver=snd_hda_intel latency=0 resources: irq:37 memory:f7a10000-f7a13fff *-pci:1 description: PCI bridge product: 8 Series/C220 Series Chipset Family PCI Express Root Port #1 vendor: Intel Corporation physical id: 1c bus info: pci@0000:00:1c.0 version: d5 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:27 *-pci:2 description: PCI bridge product: 8 Series/C220 Series Chipset Family PCI Express Root Port #2 vendor: Intel Corporation physical id: 1c.1 bus info: pci@0000:00:1c.1 version: d5 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:28 ioport:2000(size=4096) memory:cfe00000-cfffffff ioport:f2000000(size=2097152) *-pci:3 description: PCI bridge product: 8 Series/C220 Series Chipset Family PCI Express Root Port #3 vendor: Intel Corporation physical id: 1c.2 bus info: pci@0000:00:1c.2 version: d5 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:29 memory:f7900000-f79fffff *-network description: Wireless interface product: QCA9565 / AR9565 Wireless Network Adapter vendor: Qualcomm Atheros physical id: 0 bus info: pci@0000:04:00.0 logical name: wlp4s0 version: 01 serial: dc:85:de:f8:3b:6d width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless configuration: broadcast=yes driver=ath9k driverversion=4.18.9-200.fc28.x86_64 firmware=N/A ip=192.168.1.66 latency=0 link=yes multicast=yes wireless=IEEE 802.11 resources: irq:18 memory:f7900000-f797ffff memory:f7980000-f798ffff *-pci:4 description: PCI bridge product: 8 Series/C220 Series Chipset Family PCI Express Root Port #4 vendor: Intel Corporation physical id: 1c.3 bus info: pci@0000:00:1c.3 version: d5 width: 32 bits clock: 33MHz capabilities: pci pciexpress msi pm normal_decode bus_master cap_list configuration: driver=pcieport resources: irq:30 ioport:d000(size=4096) memory:f7800000-f78fffff *-generic description: Unassigned class product: RTL8411B PCI Express Card Reader vendor: Realtek Semiconductor Co., Ltd. physical id: 0 bus info: pci@0000:05:00.0 version: 01 width: 32 bits clock: 33MHz capabilities: pm msi pciexpress msix vpd bus_master cap_list rom configuration: driver=rtsx_pci latency=0 resources: irq:33 memory:f7815000-f7815fff memory:f7800000-f780ffff *-network description: Ethernet interface product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller vendor: Realtek Semiconductor Co., Ltd. physical id: 0.1 bus info: pci@0000:05:00.1 logical name: enp5s0f1 version: 12 serial: 1c:b7:2c:1c:e1:d2 size: 10Mbit/s capacity: 1Gbit/s width: 64 bits clock: 33MHz capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8411-2_0.0.1 07/08/13 latency=0 link=no multicast=yes port=MII speed=10Mbit/s resources: irq:19 ioport:d000(size=256) memory:f7814000-f7814fff memory:f7810000-f7813fff *-usb:2 description: USB controller product: 8 Series/C220 Series Chipset Family USB EHCI #1 vendor: Intel Corporation physical id: 1d bus info: pci@0000:00:1d.0 version: 05 width: 32 bits clock: 33MHz capabilities: pm debug ehci bus_master cap_list configuration: driver=ehci-pci latency=0 resources: irq:23 memory:f7a1b000-f7a1b3ff *-isa description: ISA bridge product: HM86 Express LPC Controller vendor: Intel Corporation physical id: 1f bus info: pci@0000:00:1f.0 version: 05 width: 32 bits clock: 33MHz capabilities: isa bus_master cap_list configuration: driver=lpc_ich latency=0 resources: irq:0 *-sata description: SATA controller product: 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] vendor: Intel Corporation physical id: 1f.2 bus info: pci@0000:00:1f.2 logical name: scsi2 logical name: scsi4 version: 05 width: 32 bits clock: 66MHz capabilities: sata msi pm ahci_1.0 bus_master cap_list emulated configuration: driver=ahci latency=0 resources: irq:31 ioport:f0b0(size=8) ioport:f0a0(size=4) ioport:f090(size=8) ioport:f080(size=4) ioport:f060(size=32) memory:f7a1a000-f7a1a7ff *-cdrom description: DVD-RAM writer product: DVD-RAM UJ8G6 vendor: MATSHITA physical id: 0 bus info: scsi@2:0.0.0 logical name: /dev/cdrom logical name: /dev/sr0 version: 1.00 capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram configuration: ansiversion=5 status=nodisc *-disk description: ATA Disk product: WDC WDS100T1B0A- vendor: Western Digital physical id: 1 bus info: scsi@4:0.0.0 logical name: /dev/sda version: 10WD serial: 171918800099 size: 931GiB (1TB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=5 guid=674b4be3-3ee2-41d8-b02a-4d9dc0659372 logicalsectorsize=512 sectorsize=512 ------ *-serial description: SMBus product: 8 Series/C220 Series Chipset Family SMBus Controller vendor: Intel Corporation physical id: 1f.3 bus info: pci@0000:00:1f.3 version: 05 width: 64 bits clock: 33MHz configuration: driver=i801_smbus latency=0 resources: irq:18 memory:f7a19000-f7a190ff ioport:f040(size=32) ---- *-network:0 description: Ethernet interface physical id: 1 logical name: virbr0 serial: 52:54:00:dd:00:99 capabilities: ethernet physical configuration: broadcast=yes driver=bridge driverversion=2.3 firmware=N/A ip=192.168.122.1 link=no multicast=yes *-network:1 DISABLED description: Ethernet interface physical id: 2 logical name: virbr0-nic serial: 52:54:00:dd:00:99 size: 10Mbit/s capabilities: ethernet physical configuration: autonegotiation=off broadcast=yes driver=tun driverversion=1.6 duplex=full link=no multicast=yes port=twisted pair speed=10Mbit/s
- Resume from suspend - Works flawlessly for various cycles, but seemingly randomly wireless reliability is lost, status is connected, just no communications are possible, and the AP is working correctly as corroborated by an assortment of other wireless devices (phones, tablets).
- Hibernation does not work - While sending the system to hibernate seems to work (system shows a LOT of disk activity and then shuts down), resuming from hibernation does not work.
The system is installed with Fedora 28 in single-boot mode, i.e no Secure Boot nonsense or fast boot enabled in the BIOS, partitioning and boot are in UEFI mode. Sending the system to hibernation does not allow resume from GRUB (no option or entry to resume from swap).
Comment
-
Suspend was working perfectly for my Dell Latitude E7440 with Fedora 24-28. I was having uptimes of over 30-50 days, with sleeping at least once a day. Never had to use hibernate on that system, as battery while sleeping will last over the whole weekend.
Now with my new Dell XPS 15 9570 ( BIOS 1.4.1), neither suspend nor hibernate work on a Fedora 28. On suspend, most times it gets stuck in a powered on state, and I can't wake it up but it still drains the battery. Hibernate sometimes works, but more often than not, it will pretend to hibernate, then come back up to the login screen seconds later. This forces me to resort to full shutdowns each time, or I end up with a roasting laptop in my backpack.
There are known issues with the XPS 9570 and Dell was "kind" enough to disable S3 in BIOSes later than 1.2.x (factory bios). What is worse, after a suspend, CPU usually gets stuck in C2 state, and can't get to the low powered states (C6-C7).
I currently have 16GB RAM and 8GB swap, so I will try hibernate with a bigger swap, as that could be the issue in my case.
Comment
-
Originally posted by Thetargos View PostThe system is installed with Fedora 28 in single-boot mode, i.e no Secure Boot nonsense or fast boot enabled in the BIOS, partitioning and boot are in UEFI mode. Sending the system to hibernation does not allow resume from GRUB (no option or entry to resume from swap).
Suspend (S3, to RAM) isn't working (fails to resume) on my Archlinux + MSI B350M BAZOOKA + Ryzen 7 2700X + R9 Fury, but I haven't had time to investigate. I didn't try to hibernate, as it seems like sleep would be needed first.
On the other hand, it is working perfectly on my work laptop, a DELL Lattitude 5580 + Archlinux. However, I never tried to suspend to disk (hibernate), because:- It's a security issue, as my harddisk keys would remain in the swap. I would need to set encrypted swap up, but that's a hassle. I would like the TPM to protect the decryption key, and this be handled automatically, but that's likely not a common use-case outside of corporate.
- Well, I'm not sure it would boot faster. The longest part of my boot process is me entering the decryption key (due to being too lazy to configure the TPM for this). Then KDE takes a good chunk of the remaining boot time.
Comment
-
This is how suspend (not hibernation!) works on my 3 machines:
- Desktop: Arch Linux, AMD Ryzen 5 1600, AMD Radeon Fury X, Some ASUS motherboard (works fine every time)
- Laptop: Archi Linux, Some Intel Broadwell i5 (3rd gen ThinkPad Carbon X1) and Intel graphics (works fine every time)
- Desktop at work: Debian 9.4, Intel 7700K, NVidia 1050ti, Unknown motherboard (Works 9/10 times, the last 1/10 times it simply does not wake up from suspend and reboots)
Comment
-
It's mostly horrible.
I had a Lenovo thinkpad T540, T580, and now have a DELL XPS 15 9570, all have suspend and resume issues.
Problems are:
- failing to suspend (goes to 100% cpu usage or hangs)
- failing to resume (starts from fresh boot instead)
- waking up for no reason and running super hot inside my bag almost baking the laptop because of no ventilation, presumably because it burns 100% cpu (rare, but happened)
- time not synchronized after resume (ntpd exits for some reason and needs to be restarted)
I noticed it depends on the order of docking/undocking and have had better experience if I undock first, then suspend, then wake up and only after that dock back. That is, dock/undock has to be on a running system, if docking/undocking happens while suspended if frequently dies.
Last edited by daml; 05 October 2018, 02:59 AM.
Comment
-
I only used hibernation when TuxonIce was available with a Pentium 4 256MB and a Core 2 duo 2GB MBP. It made suspend to disk reliable, stable and convenient:- Caches would be restored, giving a responsive system after hibernation (Windows and vanilla Linux dump all caches)
- Memory could be compressed, reducing disk size
- It could use a file instead of swap space, therefore avoiding race conditions during hibernation
For hibernation to be useful, these features should be ported to mainline.
(BTW if you own a 6th gen X1, you can now fully use S3 sleep since last BIOS upgrade in September, thanks Lenovo for supporting Linux!)
Comment
Comment