Ask Your Question
1

Can't enable Hibernation

asked 2013-10-20 17:37:24 -0500

vulpusetvulpus gravatar image

updated 2014-09-12 19:42:11 -0500

mether gravatar image

So I installed an extension that adds hibernation to the shutdown dialog. Unfortunately, when I click it, nothing happens. I put in the terminal:systemctl hibernate and its output would be: A dependency job for hibernate.target failed. See 'journalctl -xn' for details. So then I tried the journalctl thing and its output was:

-- Logs begin at Tue 2013-09-17 16:00:08 PDT, end at Sun 2013-10-20 15:20:33 PDT. 
-- Oct 20 15:20:29 localhost.localdomain dbus[541]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service'
Oct 20 15:20:29 localhost.localdomain systemd[1]: Starting Fingerprint Authentication Daemon...
-- Subject: Unit fprintd.service has begun with start-up
-- Defined-By: systemd
-- 
-- Unit fprintd.service has begun starting up.
Oct 20 15:20:29 localhost.localdomain dbus-daemon[541]: dbus[541]: [system] Successfully activated service 'net.reactivated.Fprint'
Oct 20 15:20:29 localhost.localdomain dbus[541]: [system] Successfully activated service 'net.reactivated.Fprint'
Oct 20 15:20:29 localhost.localdomain systemd[1]: Started Fingerprint Authentication Daemon.
-- Subject: Unit fprintd.service has finished start-up
-- Defined-By: systemd
-- 
-- Unit fprintd.service has finished starting up.
-- 
-- The start-up result is done.
Oct 20 15:20:29 localhost.localdomain fprintd[7763]: Launching FprintObject
Oct 20 15:20:29 localhost.localdomain fprintd[7763]: ** Message: D-Bus service launched with name: net.reactivated.Fprint
Oct 20 15:20:29 localhost.localdomain fprintd[7763]: ** Message: entering main loop
Oct 20 15:20:33 localhost.localdomain su[7762]: (to root) jbeasy on pts/1
Oct 20 15:20:33 localhost.localdomain su[7762]: pam_unix(su:session): session opened for user root by jbeasy(uid=1000)

I have absolutely no idea what this means or what to look for. My installation was a minimal net install so I think something was not installed or set up that normally would with the default installation. Any suggestions?

edit retag flag offensive close merge delete

Comments

Did you try the command pm-hibernate? If it does not work then your current settings do not support hibernation, either because you did not allocate enough space for swap area or some hardware limitation. Probably.

yanglifu90 gravatar imageyanglifu90 ( 2013-10-26 03:15:50 -0500 )edit

As soon as I input the command it doesn't do anything. I have enabled hibernation with other distros and my computer has 4 GB of RAM and 4.2 GB have been allocated for SWAP so I'm not entirely sure what's the problem.

vulpusetvulpus gravatar imagevulpusetvulpus ( 2013-10-26 14:35:55 -0500 )edit

The journalctl output is not complete. Please look at the complete output and past the part that is relevant to hibernation.

FranciscoD_ gravatar imageFranciscoD_ ( 2014-07-18 00:19:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-07-17 12:49:46 -0500

zbyszek gravatar image

Under systemd hibernation is done by starting the hibernate.target. But unless you modified systemd configuration, all it does is start '/usr/lib/systemd/systemd-sleep hibernate'. What that does, is simply write 'disk' to /sys/power/state. Unlike pm-utils and other older scripts, it leaves all the work to the kernel.

So to skip all the middle-man, as root:

echo disk > /sys/power/state

If this fails, than for some reason the kernel does not allow you to suspend.

It is best to look at error messages by opening a terminal and starting journalctl before you start the hibernation, so it is easy to see which logs are related:

journalctl --dmesg -f
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-10-20 17:37:24 -0500

Seen: 2,112 times

Last updated: Jul 17 '14