You are not logged in.

#1 2013-10-14 11:24:05

lugubrious
Member
Registered: 2013-09-04
Posts: 12

[SOLVED] Unable to hibernate (and garbles the screen when it fails)

Hello,  I'm unable to hibernate (but I can suspend fine).

When I run

sudo systemctl hibernate

it will run the command, turn off the screen and come back all garbled (like static from a tv), with the computer still on but the processes stopped.

I followed all the instructions on the hibernation wiki.
I rebuilt grub adding the swap partition and added the resume hook to mkinitcpio.

My swap partition is 23.4GB and my ram is 16gb, so that shouldn't be an issue.

I've had a look at my xorg logs, run systemctl --all | grep errors with nothing, and nothing came up from the system journal ( I forgot the command as it was deleted from my bash history).

What other logs can I provide to help determine the error?

Thanks

edit:

It's been solved now, I believe an update to the kernel has done the trick. I can suspend to disk fine now.

For those googling, I'm running 3.11.6-1-ARCH

Last edited by lugubrious (2013-11-13 00:21:27)

Offline

#2 2013-10-15 14:09:29

lugubrious
Member
Registered: 2013-09-04
Posts: 12

Re: [SOLVED] Unable to hibernate (and garbles the screen when it fails)

Anyone have any ideas? Should I post it under hardware instead?

Offline

#3 2013-10-15 14:20:18

muffinmad
Member
Registered: 2013-10-15
Posts: 5

Re: [SOLVED] Unable to hibernate (and garbles the screen when it fails)

What about this command?

sudo pm-hibernate

Offline

#4 2013-10-16 01:37:39

lugubrious
Member
Registered: 2013-09-04
Posts: 12

Re: [SOLVED] Unable to hibernate (and garbles the screen when it fails)

Screen turns black, then refreshes (without the garble this time)

Offline

#5 2013-10-16 01:51:25

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Unable to hibernate (and garbles the screen when it fails)

What command are you using to hibernate?

Did you check journalctl with root privileges?

If you can, uninstall pm-utils. If not, mask the relevant files. For example, I have

$ l /etc/pm/power.d/
total 8.0K
drwxr-xr-x 2 root root 4.0K Med   3  2012 ./
drwxr-xr-x 6 root root 4.0K Med  21  2012 ../
-rw-r--r-- 1 root root    0 Med   3  2012 cpupower
-rw-r--r-- 1 root root    0 Rha  19  2011 hal-cd-polling
-rw-r--r-- 1 root root    0 Rha  19  2011 intel-audio-powersave
-rw-r--r-- 1 root root    0 Rha  19  2011 journal-commit
-rw-r--r-- 1 root root    0 Rha  19  2011 laptop-mode
-rw-r--r-- 1 root root    0 Rha  19  2011 pcie_aspm
-rw-r--r-- 1 root root    0 Rha  19  2011 readahead
-rw-r--r-- 1 root root    0 Rha  19  2011 sata_alpm
-rw-r--r-- 1 root root    0 Rha  19  2011 sched-powersave
-rw-r--r-- 1 root root    0 Rha  19  2011 wireless
-rw-r--r-- 1 root root    0 Rha  19  2011 xfs_buffer

which mask the files installed under /usr/lib/pm-utils. (I can't uninstall it because I use KDE.)

Note: I've shown this for power.d because that's where I had trouble. But you probably want to mask the scripts for sleep.d.

Last edited by cfr (2013-10-16 01:52:32)


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

#6 2013-10-16 03:27:36

lugubrious
Member
Registered: 2013-09-04
Posts: 12

Re: [SOLVED] Unable to hibernate (and garbles the screen when it fails)

Still nothing unfortunately.

I masked alsa90 under /etc/pm/sleep.d to be -x. That was the only file out of the pm directories. (I only have it for KDE too).

I've also double checked my grub config to add resume, and mkinitcpio which has the resume hook.

This is the relevant part of journalctl, this is when I run sudo systemlctl hibernate

Oct 16 15:36:08 arch64 sudo[2228]: lugub : TTY=pts/0 ; PWD=/home/lugub ; USER=root ; COMMAND=/usr/bin/systemctl hibernate
Oct 16 15:36:08 arch64 sudo[2228]: pam_unix(sudo:session): session opened for user root by (uid=0)
Oct 16 15:36:08 arch64 systemd[1]: Cannot add dependency job for unit xscreensaver.service, ignoring: Unit xscreensaver.service failed to load: No such file or directory.
Oct 16 15:36:08 arch64 systemd[1]: Starting Sleep.
Oct 16 15:36:08 arch64 systemd[1]: Reached target Sleep.
Oct 16 15:36:08 arch64 systemd[1]: Starting Hibernate...
Oct 16 15:36:08 arch64 kernel: PM: Hibernation mode set to 'platform'
Oct 16 15:36:08 arch64 systemd-sleep[2231]: Suspending system...
Oct 16 15:36:08 arch64 slim[340]: (II) AIGLX: Suspending AIGLX clients for VT switch
Oct 16 15:36:08 arch64 kernel: PM: Marking nosave pages: [mem 0x00092000-0x000fffff]
Oct 16 15:36:08 arch64 kernel: PM: Marking nosave pages: [mem 0xcfda0000-0xffffffff]
Oct 16 15:36:08 arch64 kernel: PM: Marking nosave pages: [mem 0xc4000000-0xc7ffffff]
Oct 16 15:36:08 arch64 kernel: PM: Basic memory bitmaps created

The error with xscreensaver service comes up when I sleep, (and run xscreensaver lock && suspend), but I can sleep fine with it.

Oct 16 15:57:07 arch64 systemd[1]: Cannot add dependency job for unit xscreensaver.service, ignoring: Unit xscreensaver.service failed to load: No such file or directory.
Oct 16 15:57:07 arch64 systemd[1]: Starting Sleep.
Oct 16 15:57:07 arch64 systemd[1]: Reached target Sleep.
Oct 16 15:57:07 arch64 systemd[1]: Starting Suspend...
Oct 16 15:57:07 arch64 systemd-sleep[559]: Suspending system...
Oct 16 15:57:07 arch64 kernel: PM: Syncing filesystems ... done.
Oct 16 15:57:07 arch64 kernel: PM: Preparing system for mem sleep
Oct 16 15:57:08 arch64 slim[341]: (II) AIGLX: Suspending AIGLX clients for VT switch
Oct 16 15:57:17 arch64 kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
Oct 16 15:57:17 arch64 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
Oct 16 15:57:17 arch64 systemd[1]: Time has been changed
Oct 16 15:57:17 arch64 systemd[446]: Time has been changed
Oct 16 15:57:17 arch64 systemd-sleep[559]: System resumed.

When I ran pm-hibernate as suggested above it didn't suspend either, but this came up on journalctl

Oct 16 14:37:03 arch64 kernel: PM: Cannot find swap device, try swapon -a.
Oct 16 14:37:03 arch64 kernel: PM: Cannot get swap writer

Any ideas? Thanks

Last edited by lugubrious (2013-10-16 03:28:19)

Offline

#7 2013-10-16 22:40:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Unable to hibernate (and garbles the screen when it fails)

By the way, as of now, you can remove pm-utils - I just did! upower no longer depends on it...

Did you try swapon as suggested?


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

Board footer

Powered by FluxBB