You are not logged in.
I had initially installed Arch without swap and hence I guess I did not get the hibernate option. I then followed the instruction at https://wiki.archlinux.org/index.php/Su … ibernation to add the required kernel parameters, add a swap file (https://wiki.archlinux.org/index.php/Su … _swap_file) and recreated the initial ram disk (https://wiki.archlinux.org/index.php/Su … al_ramdisk). But I still do not get the hibernate option. Anybody got any hints?
Offline
How do you start KDE?
Edit: I just noticed this is a follow on from https://bbs.archlinux.org/viewtopic.php … 8#p1031098
Last edited by ewaller (2013-10-13 22:46:09)
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
KDM. I only installed the KDE windowing system. No gnome, No xfce, etc.
Offline
KDM. I only installed the KDE windowing system. No gnome, No xfce, etc.
Drat, that eliminates all of the easy answers ![]()
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
I guess you've done this but if not, check:
System Settings
> Startup and Shutdown
> Session Management (make sure "Offer shutdown options" is checked)
> Login Screen
> Shutdown (just to be sure check for weirdness here)
Last edited by cfr (2013-10-13 23:55:30)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Yes, both those screens have the correct options checked.
Offline
tazee: I think I'm having the same issue. Hibernate does not appear in any of KDE's menus (power management, poweroff dialogue, etc). However, if I type "hibernate" in krunner, I get the option "Suspend to Disk". Pressing it does nothing.
Additionally, I can hibernate using "# systemctl hibernate", but when I do, I get some weird behaviour:
Screen turns off, power button flashes quickly, screen comes back on and then it hibernates successfully.
Are we having the same issue or have I inadvertently hijacked your thread?
Offline
achilleas : Today I switch from swapfile to swap partition, hoping that I could get hibernate functionality that way, but still no luck. When I run hibernate in krunner, like you, I too get nothing. I also tried "# systemctl hibernate" as sudo, but I get the error message
"A dependency job for hibernate.target failed. See 'journalctl -xn' for details."
Offline
What does the journal tell you when it attempts to hibernate?
I have a second setup (desktop) which uses a swap partition on an LVM and works perfectly. Hibernate is in all the KDE menus and power options. I have no idea what I did differently between the two setups and I'm not sure where to start looking to figure out why KDE doesn't like making hibernation available on the laptop.
In your case though, I think you might first get hibernation working (check the journal) and then figure out why KDE hides it (if getting it to work doesn't make the option available, that is).
Offline
achilleas : Thanks for pointing me in this direction. It seems that my swap partition or something else is not doing it's job. Here are relevant lines for journalctl
Oct 20 21:42:40 AsusArchLinux systemd[1]: Starting Sleep.
-- Subject: Unit sleep.target has begun with start-up
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
--
-- Unit sleep.target has begun starting up.
Oct 20 21:42:40 AsusArchLinux systemd[1]: Reached target Sleep.
-- Subject: Unit sleep.target has finished start-up
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
--
-- Unit sleep.target has finished starting up.
--
-- The start-up result is done.
Oct 20 21:42:40 AsusArchLinux systemd[1]: Starting Hibernate...
-- Subject: Unit systemd-hibernate.service has begun with start-up
ct 20 21:42:40 AsusArchLinux kernel: PM: Hibernation mode set to 'platform'
Oct 20 21:42:40 AsusArchLinux systemd-sleep[3507]: Suspending system...
-- Subject: System sleep state hibernate entered
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
--
-- The system has now entered the hibernate sleep state.
Oct 20 21:42:40 AsusArchLinux kernel: PM: Marking nosave pages: [mem 0x0009f000-0x000fffff]
Oct 20 21:42:40 AsusArchLinux kernel: PM: Basic memory bitmaps created
Oct 20 21:42:42 AsusArchLinux kernel: PM: Syncing filesystems ... done.
Oct 20 21:42:42 AsusArchLinux systemd[1]: systemd-hibernate.service: main process exited, code=exited, status=1/FAILURE
Oct 20 21:42:42 AsusArchLinux systemd[1]: Failed to start Hibernate.
-- Subject: Unit systemd-hibernate.service has failed
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
-- Documentation: [url]http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d[/url]
--
-- Unit systemd-hibernate.service has failed.
--
-- The result is failed.
Oct 20 21:42:42 AsusArchLinux systemd[1]: Dependency failed for Hibernate.
-- Subject: Unit hibernate.target has failed
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
-- Documentation: [url]http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d[/url]
--
-- Unit hibernate.target has failed.
--
-- The result is dependency.
Oct 20 21:42:42 AsusArchLinux systemd[1]: Service sleep.target is not needed anymore. Stopping.
Oct 20 21:42:42 AsusArchLinux systemd[1]: Unit systemd-hibernate.service entered failed state.
Oct 20 21:42:42 AsusArchLinux systemd[1]: Stopping Sleep.
-- Subject: Unit sleep.target has begun shutting down
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
--
-- Unit sleep.target has begun shutting down.
Oct 20 21:42:42 AsusArchLinux systemd[1]: Stopped target Sleep.
-- Subject: Unit sleep.target has finished shutting down
-- Defined-By: systemd
-- Support: [url]http://lists.freedesktop.org/mailman/listinfo/systemd-devel[/url]
-- Documentation: [url]http://www.freedesktop.org/wiki/Software/systemd/catalog/9d1aaa27d60140bd96365438aad20286[/url]
--
-- Unit sleep.target has finished shutting down.
Oct 20 21:42:42 AsusArchLinux NetworkManager[277]: <warn> Connection disconnected (reason -3)
Oct 20 21:42:42 AsusArchLinux kernel: mei_me 0000:00:16.0: suspend
Oct 20 21:42:42 AsusArchLinux kernel: PM: freeze of devices complete after 135.279 msecs
Oct 20 21:42:42 AsusArchLinux kernel: PM: late freeze of devices complete after 0.244 msecs
Oct 20 21:42:42 AsusArchLinux kernel: PM: noirq freeze of devices complete after 0.623 msecs
Oct 20 21:42:42 AsusArchLinux kernel: ACPI: Preparing to enter system sleep state S4
Oct 20 21:42:42 AsusArchLinux kernel: PM: Saving platform NVS memory
Oct 20 21:42:42 AsusArchLinux kernel: Disabling non-boot CPUs ...
Oct 20 21:42:42 AsusArchLinux kernel: smpboot: CPU 1 is now offline
Oct 20 21:42:42 AsusArchLinux kernel: smpboot: CPU 2 is now offline
Oct 20 21:42:42 AsusArchLinux kernel: smpboot: CPU 3 is now offline
Oct 20 21:42:42 AsusArchLinux kernel: PM: Creating hibernation image:
Oct 20 21:42:42 AsusArchLinux kernel: PM: Need to copy 380214 pages
Oct 20 21:42:42 AsusArchLinux kernel: PM: Normal pages needed: 380214 + 1024, available pages: 638993
Oct 20 21:42:42 AsusArchLinux kernel: PM: Hibernation image created (380214 pages copied)
Oct 20 21:42:42 AsusArchLinux kernel: Enabling non-boot CPUs ...
Oct 20 21:42:42 AsusArchLinux kernel: smpboot: Booting Node 0 Processor 1 APIC 0x2
Oct 20 21:42:42 AsusArchLinux kernel: Intel pstate controlling: cpu 1
Oct 20 21:42:42 AsusArchLinux kernel: CPU1 is up
Oct 20 21:42:42 AsusArchLinux kernel: smpboot: Booting Node 0 Processor 2 APIC 0x1
Oct 20 21:42:42 AsusArchLinux kernel: Intel pstate controlling: cpu 2
Oct 20 21:42:42 AsusArchLinux kernel: CPU2 is up
Oct 20 21:42:42 AsusArchLinux kernel: smpboot: Booting Node 0 Processor 3 APIC 0x3
Oct 20 21:42:42 AsusArchLinux kernel: Intel pstate controlling: cpu 3
Oct 20 21:42:42 AsusArchLinux kernel: CPU3 is up
Oct 20 21:42:42 AsusArchLinux kernel: ACPI: Waking up from system sleep state S4
Oct 20 21:42:42 AsusArchLinux kernel: PM: noirq thaw of devices complete after 0.216 msecs
Oct 20 21:42:42 AsusArchLinux kernel: PM: early thaw of devices complete after 0.165 msecs
Oct 20 21:42:42 AsusArchLinux kernel: mei_me 0000:00:16.0: irq 42 for MSI/MSI-X
Oct 20 21:42:42 AsusArchLinux kernel: ahci 0000:00:1f.2: setting latency timer to 64
Oct 20 21:42:42 AsusArchLinux kernel: alx 0000:03:00.0: irq 43 for MSI/MSI-X
Oct 20 21:42:42 AsusArchLinux kernel: snd_hda_intel 0000:00:1b.0: irq 45 for MSI/MSI-X
Oct 20 21:42:42 AsusArchLinux kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Oct 20 21:42:42 AsusArchLinux kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
Oct 20 21:42:42 AsusArchLinux kernel: ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
Oct 20 21:42:42 AsusArchLinux kernel: ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
Oct 20 21:42:42 AsusArchLinux kernel: ata1.00: ACPI cmd f5/00:00:00:00:00:a0 (SECURITY FREEZE LOCK) filtered out
Oct 20 21:42:42 AsusArchLinux kernel: ata1.00: ACPI cmd ef/10:06:00:00:00:a0 (SET FEATURES) succeeded
Oct 20 21:42:42 AsusArchLinux kernel: ata1.00: ACPI cmd ef/10:03:00:00:00:a0 (SET FEATURES) filtered out
Oct 20 21:42:42 AsusArchLinux kernel: ata1.00: configured for UDMA/133
Oct 20 21:42:42 AsusArchLinux kernel: PM: thaw of devices complete after 399.440 msecs
Oct 20 21:42:42 AsusArchLinux kernel: PM: writing image.
Oct 20 21:42:42 AsusArchLinux kernel: PM: Cannot find swap device, try swapon -a.
Oct 20 21:42:42 AsusArchLinux kernel: PM: Cannot get swap writer
Oct 20 21:42:42 AsusArchLinux kernel: Restarting tasks ... done.I already have enabled "swapon -a". Here is my /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# UUID=13369c7e-ad47-4227-a8e5-c20a9f5a7178
/dev/sda1 / ext4 rw,relatime,data=ordered 0 1
/dev/sda3 none swap defaults 0 0Any clues? Thanks.
Last edited by tazee (2013-10-21 02:17:02)
Offline
Please edit your post to use code tags
like thisas it will make the code much more readable.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
tazee:
Sorry to go back to basics but have you set up hibernation properly?
- resume hook in /etc/mkinicpio.conf
- "resume=/dev/sda3" in your bootloader's cmdline
Offline
Can you post the output of:
$ swapon
$ cat /proc/cmdline
$ grep HOOKS /etc/mkinitcpio.conf | grep -v "^#"
$ lsblk -f?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
achilleas : thanks for your reply. You were correct and I was able to solve my problem. All I needed to do was add "resume=/dev/sda3" in my bootloader's cmdline and then run "grub-mkconfig -o /boot/grub/grub.cfg" as per the instructions.
I think I also forgot to mention that on Oct 20, after I switched from swapfile to swap partition the hibernate option magically reappeared in my KDE menus.
So this issue is now solved for me. But I still don't understand why did the hibernate option did not appear when I tried to use swapfile and only appeared when I used swap partition.
Offline
Thanks! Here's one suspicion confirmed: KDE doesn't like swap files. I just created a swap partition on an SD card, added it to fstab, mounted it, logged out and back in and "Hibernate" appeared in the KDE menu and in the power management drop down lists.
Not sure if this is a bug. I'll have a good browse of the KDE buglist and see whether this has been reported or is related to something else.
Offline
I am glad that you got hibernate to appear and I agree; it seems that KDE does not like swap files. I would appreciate if you could let us know here, any interesting findings in the KDE bugs list.
Thanks.
Offline
Chatting on freenode's #kde, I've been told that KDE reads polkit. In particular
qdbus --system org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanHibernateshould output "yes". In my case, it outputs "na".
I've been told that I should find a way to solve it at the polkit level and it should appear in KDE as well.
Offline
If I try to do anything with qdbus I get
qdbus: could not exec '/usr/lib/qt/bin/qdbus': No such file or directoryEDIT: OK. Need qt5-tools for this to work.
Last edited by cfr (2013-10-24 01:52:07)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline