Ask Your Question
0

F20 Unable to hibernate, /sys/power/disk disabled

asked 2014-02-09 07:23:04 -0500

pschyska gravatar image

updated 2014-02-09 07:24:43 -0500

When I try to hibernate with systemctl hibernate, the unit systemd-hibernate.service enters failed state and I get the following entries in my journal:

Feb 09 14:18:14 pike systemd[1]: Starting Sleep.
Feb 09 14:18:14 pike systemd[1]: Reached target Sleep.
Feb 09 14:18:14 pike systemd[1]: Starting Hibernate...
Feb 09 14:18:14 pike systemd-sleep[2284]: Failed to write mode to /sys/power/disk: Operation not permitted
Feb 09 14:18:14 pike systemd[1]: systemd-hibernate.service: main process exited, code=exited, status=1/FAILURE
Feb 09 14:18:14 pike systemd[1]: Failed to start Hibernate.
Feb 09 14:18:14 pike systemd[1]: Dependency failed for Hibernate.
Feb 09 14:18:14 pike systemd[1]: Service sleep.target is not needed anymore. Stopping.
Feb 09 14:18:14 pike systemd[1]: Unit systemd-hibernate.service entered failed state.
Feb 09 14:18:14 pike systemd[1]: Stopping Sleep.
Feb 09 14:18:14 pike systemd[1]: Stopped target Sleep.

Indeed cat /sys/power/disk tells me:

[root@pike ~]# cat /sys/power/disk
[disabled]

How can I find out why it is disabled? My swap looks like this:

[root@pike ~]# swapon -s
Filename                Type        Size    Used    Priority
/dev/dm-0                               partition   16383996    0   -1

It is on the LVM and is called /dev/fedora/swap. My RAM size is 16248756 bytes, so the image should fit into swap.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-02-22 05:11:13 -0500

pschyska gravatar image

I had to disable UEFI Secure Boot because I needed to use VirtualBox. Incidentally, this also enabled standby. I can now systemctl hibernate and systemctl hybrid-sleep.

edit flag offensive delete link more

Comments

Fyi, this worked for me in the same situation. Might help to add a pointer: http://docs.fedoraproject.org/en-US/Fedora/18/html/UEFI_Secure_Boot_Guide/ch02s02.html

Christian gravatar imageChristian ( 2014-04-02 20:04:41 -0500 )edit

I'm using an HP laptop that has originally Windows 8 (it lasted only 5 minutes! Then I installed Fedora).

I followed your suggestion, found something called "soporte heredado" in spanish ("heritage support" in english), and it worked!.

I'm very happy! Now I don't need to turn off my computer! :-P

softlibre gravatar imagesoftlibre ( 2014-12-30 09:38:03 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2014-02-09 07:23:04 -0500

Seen: 2,617 times

Last updated: Feb 22 '14