Can't get hibernate to work on Ubuntu 18.04
I can't get Hibernate to work on Ubuntu 18.04, I tried following these tutorials and after all the steps below hibernate still acts as a normal reboot.:
Github - gnome-shell-extension-hibernate-status
Askubuntu: Hibernation in 18.04
System:
ASUS N580VD with 16GB of ram and 20GB swap
Partition table:
sda 238,5G
├─sda1 499M Windows recovery
├─sda2 100M EFI System
├─sda3 16M Microsoft reserved
├─sda4 117,9G Microsoft basic data
├─sda5 20G Linux swap
└─sda6 100G Linux filesystem
Swap partition UUID:
sudo blkid | grep sda5
/dev/sda5: TYPE="swap" PARTLABEL="Basic data partition" PARTUUID="8d0c9f85-0436-48b5-8973-6aec3b8e3445"
Content of /etc/fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=27ed4a93-0aa1-d401-206c-4a930aa1d401 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
/dev/sda5 none swap sw 0 0
/dev/disk/by-uuid/01D4A10A933D25B0 /mnt/01D4A10A933D25B0 auto nosuid,nodev,nofail,noauto 0 0
/dev/disk/by-uuid/864A-6441 /mnt/864A-6441 auto nosuid,nodev,nofail 0 0
# Entry for Swap (added for hibernate):
UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445 none swap sw 0 0
Contents of /etc/default/grub:
GRUB_DEFAULT="saved"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="2"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445"
GRUB_CMDLINE_LINUX=""
export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="light-blue/black"
GRUB_SAVEDEFAULT="true"
Contents of /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
[Enable hibernate to be run via cron]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=yes
Content of /etc/initramfs-tools/conf.d/resume:
resume=UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445
Did these commands:
sudo update-initramfs -u -k all
sudo update-grub
I also installed gnome-shell-extension-hibernate-status. Any help would really be apreciated!
EDIT 1: Not only doesn't hibernate work, also my boot time from cold boot became incredibly slow!!
18.04 swap hibernate
New contributor
add a comment |
I can't get Hibernate to work on Ubuntu 18.04, I tried following these tutorials and after all the steps below hibernate still acts as a normal reboot.:
Github - gnome-shell-extension-hibernate-status
Askubuntu: Hibernation in 18.04
System:
ASUS N580VD with 16GB of ram and 20GB swap
Partition table:
sda 238,5G
├─sda1 499M Windows recovery
├─sda2 100M EFI System
├─sda3 16M Microsoft reserved
├─sda4 117,9G Microsoft basic data
├─sda5 20G Linux swap
└─sda6 100G Linux filesystem
Swap partition UUID:
sudo blkid | grep sda5
/dev/sda5: TYPE="swap" PARTLABEL="Basic data partition" PARTUUID="8d0c9f85-0436-48b5-8973-6aec3b8e3445"
Content of /etc/fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=27ed4a93-0aa1-d401-206c-4a930aa1d401 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
/dev/sda5 none swap sw 0 0
/dev/disk/by-uuid/01D4A10A933D25B0 /mnt/01D4A10A933D25B0 auto nosuid,nodev,nofail,noauto 0 0
/dev/disk/by-uuid/864A-6441 /mnt/864A-6441 auto nosuid,nodev,nofail 0 0
# Entry for Swap (added for hibernate):
UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445 none swap sw 0 0
Contents of /etc/default/grub:
GRUB_DEFAULT="saved"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="2"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445"
GRUB_CMDLINE_LINUX=""
export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="light-blue/black"
GRUB_SAVEDEFAULT="true"
Contents of /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
[Enable hibernate to be run via cron]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=yes
Content of /etc/initramfs-tools/conf.d/resume:
resume=UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445
Did these commands:
sudo update-initramfs -u -k all
sudo update-grub
I also installed gnome-shell-extension-hibernate-status. Any help would really be apreciated!
EDIT 1: Not only doesn't hibernate work, also my boot time from cold boot became incredibly slow!!
18.04 swap hibernate
New contributor
2
There is no need to add Solved in the title. Just accept the answer which solved the problem (after 2 days of posting the question if answered by you).
– Kulfy
Jan 2 at 8:49
add a comment |
I can't get Hibernate to work on Ubuntu 18.04, I tried following these tutorials and after all the steps below hibernate still acts as a normal reboot.:
Github - gnome-shell-extension-hibernate-status
Askubuntu: Hibernation in 18.04
System:
ASUS N580VD with 16GB of ram and 20GB swap
Partition table:
sda 238,5G
├─sda1 499M Windows recovery
├─sda2 100M EFI System
├─sda3 16M Microsoft reserved
├─sda4 117,9G Microsoft basic data
├─sda5 20G Linux swap
└─sda6 100G Linux filesystem
Swap partition UUID:
sudo blkid | grep sda5
/dev/sda5: TYPE="swap" PARTLABEL="Basic data partition" PARTUUID="8d0c9f85-0436-48b5-8973-6aec3b8e3445"
Content of /etc/fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=27ed4a93-0aa1-d401-206c-4a930aa1d401 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
/dev/sda5 none swap sw 0 0
/dev/disk/by-uuid/01D4A10A933D25B0 /mnt/01D4A10A933D25B0 auto nosuid,nodev,nofail,noauto 0 0
/dev/disk/by-uuid/864A-6441 /mnt/864A-6441 auto nosuid,nodev,nofail 0 0
# Entry for Swap (added for hibernate):
UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445 none swap sw 0 0
Contents of /etc/default/grub:
GRUB_DEFAULT="saved"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="2"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445"
GRUB_CMDLINE_LINUX=""
export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="light-blue/black"
GRUB_SAVEDEFAULT="true"
Contents of /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
[Enable hibernate to be run via cron]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=yes
Content of /etc/initramfs-tools/conf.d/resume:
resume=UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445
Did these commands:
sudo update-initramfs -u -k all
sudo update-grub
I also installed gnome-shell-extension-hibernate-status. Any help would really be apreciated!
EDIT 1: Not only doesn't hibernate work, also my boot time from cold boot became incredibly slow!!
18.04 swap hibernate
New contributor
I can't get Hibernate to work on Ubuntu 18.04, I tried following these tutorials and after all the steps below hibernate still acts as a normal reboot.:
Github - gnome-shell-extension-hibernate-status
Askubuntu: Hibernation in 18.04
System:
ASUS N580VD with 16GB of ram and 20GB swap
Partition table:
sda 238,5G
├─sda1 499M Windows recovery
├─sda2 100M EFI System
├─sda3 16M Microsoft reserved
├─sda4 117,9G Microsoft basic data
├─sda5 20G Linux swap
└─sda6 100G Linux filesystem
Swap partition UUID:
sudo blkid | grep sda5
/dev/sda5: TYPE="swap" PARTLABEL="Basic data partition" PARTUUID="8d0c9f85-0436-48b5-8973-6aec3b8e3445"
Content of /etc/fstab:
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda6 during installation
UUID=27ed4a93-0aa1-d401-206c-4a930aa1d401 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
/dev/sda5 none swap sw 0 0
/dev/disk/by-uuid/01D4A10A933D25B0 /mnt/01D4A10A933D25B0 auto nosuid,nodev,nofail,noauto 0 0
/dev/disk/by-uuid/864A-6441 /mnt/864A-6441 auto nosuid,nodev,nofail 0 0
# Entry for Swap (added for hibernate):
UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445 none swap sw 0 0
Contents of /etc/default/grub:
GRUB_DEFAULT="saved"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="2"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445"
GRUB_CMDLINE_LINUX=""
export GRUB_COLOR_NORMAL="white/black"
export GRUB_COLOR_HIGHLIGHT="light-blue/black"
GRUB_SAVEDEFAULT="true"
Contents of /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
[Enable hibernate to be run via cron]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=yes
Content of /etc/initramfs-tools/conf.d/resume:
resume=UUID=8d0c9f85-0436-48b5-8973-6aec3b8e3445
Did these commands:
sudo update-initramfs -u -k all
sudo update-grub
I also installed gnome-shell-extension-hibernate-status. Any help would really be apreciated!
EDIT 1: Not only doesn't hibernate work, also my boot time from cold boot became incredibly slow!!
18.04 swap hibernate
18.04 swap hibernate
New contributor
New contributor
edited Jan 2 at 8:48
Kulfy
3,58341139
3,58341139
New contributor
asked Jan 1 at 23:34
Denisuu
124
124
New contributor
New contributor
2
There is no need to add Solved in the title. Just accept the answer which solved the problem (after 2 days of posting the question if answered by you).
– Kulfy
Jan 2 at 8:49
add a comment |
2
There is no need to add Solved in the title. Just accept the answer which solved the problem (after 2 days of posting the question if answered by you).
– Kulfy
Jan 2 at 8:49
2
2
There is no need to add Solved in the title. Just accept the answer which solved the problem (after 2 days of posting the question if answered by you).
– Kulfy
Jan 2 at 8:49
There is no need to add Solved in the title. Just accept the answer which solved the problem (after 2 days of posting the question if answered by you).
– Kulfy
Jan 2 at 8:49
add a comment |
2 Answers
2
active
oldest
votes
there is a package that you can use easily to hibernate,
open the terminal and write sudo apt install hibernate
, it will ask you some questions and then you can hibernate using sudo hibernate
New contributor
Haha, thanks for letting me know! I'll remember for the future! It's working now, and if it aint broke don't fix it!
– Denisuu
2 days ago
add a comment |
I solved this by formatting the swap partition in Gparted. The partition had a msftdata
flag and showed as a Microsoft basic data
Size Type in staid of Linux swap
under fdisk -l
. After the removing the flag and formating the partition to linx-swap, the UUID changed and I replaced it in all the files.
It worked and my boot time went back from 2 minutes to 10 seconds!
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Denisuu is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106113%2fcant-get-hibernate-to-work-on-ubuntu-18-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
there is a package that you can use easily to hibernate,
open the terminal and write sudo apt install hibernate
, it will ask you some questions and then you can hibernate using sudo hibernate
New contributor
Haha, thanks for letting me know! I'll remember for the future! It's working now, and if it aint broke don't fix it!
– Denisuu
2 days ago
add a comment |
there is a package that you can use easily to hibernate,
open the terminal and write sudo apt install hibernate
, it will ask you some questions and then you can hibernate using sudo hibernate
New contributor
Haha, thanks for letting me know! I'll remember for the future! It's working now, and if it aint broke don't fix it!
– Denisuu
2 days ago
add a comment |
there is a package that you can use easily to hibernate,
open the terminal and write sudo apt install hibernate
, it will ask you some questions and then you can hibernate using sudo hibernate
New contributor
there is a package that you can use easily to hibernate,
open the terminal and write sudo apt install hibernate
, it will ask you some questions and then you can hibernate using sudo hibernate
New contributor
New contributor
answered Jan 2 at 8:38
Malek Adawi
162
162
New contributor
New contributor
Haha, thanks for letting me know! I'll remember for the future! It's working now, and if it aint broke don't fix it!
– Denisuu
2 days ago
add a comment |
Haha, thanks for letting me know! I'll remember for the future! It's working now, and if it aint broke don't fix it!
– Denisuu
2 days ago
Haha, thanks for letting me know! I'll remember for the future! It's working now, and if it aint broke don't fix it!
– Denisuu
2 days ago
Haha, thanks for letting me know! I'll remember for the future! It's working now, and if it aint broke don't fix it!
– Denisuu
2 days ago
add a comment |
I solved this by formatting the swap partition in Gparted. The partition had a msftdata
flag and showed as a Microsoft basic data
Size Type in staid of Linux swap
under fdisk -l
. After the removing the flag and formating the partition to linx-swap, the UUID changed and I replaced it in all the files.
It worked and my boot time went back from 2 minutes to 10 seconds!
New contributor
add a comment |
I solved this by formatting the swap partition in Gparted. The partition had a msftdata
flag and showed as a Microsoft basic data
Size Type in staid of Linux swap
under fdisk -l
. After the removing the flag and formating the partition to linx-swap, the UUID changed and I replaced it in all the files.
It worked and my boot time went back from 2 minutes to 10 seconds!
New contributor
add a comment |
I solved this by formatting the swap partition in Gparted. The partition had a msftdata
flag and showed as a Microsoft basic data
Size Type in staid of Linux swap
under fdisk -l
. After the removing the flag and formating the partition to linx-swap, the UUID changed and I replaced it in all the files.
It worked and my boot time went back from 2 minutes to 10 seconds!
New contributor
I solved this by formatting the swap partition in Gparted. The partition had a msftdata
flag and showed as a Microsoft basic data
Size Type in staid of Linux swap
under fdisk -l
. After the removing the flag and formating the partition to linx-swap, the UUID changed and I replaced it in all the files.
It worked and my boot time went back from 2 minutes to 10 seconds!
New contributor
New contributor
answered Jan 2 at 1:17
Denisuu
124
124
New contributor
New contributor
add a comment |
add a comment |
Denisuu is a new contributor. Be nice, and check out our Code of Conduct.
Denisuu is a new contributor. Be nice, and check out our Code of Conduct.
Denisuu is a new contributor. Be nice, and check out our Code of Conduct.
Denisuu is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106113%2fcant-get-hibernate-to-work-on-ubuntu-18-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
There is no need to add Solved in the title. Just accept the answer which solved the problem (after 2 days of posting the question if answered by you).
– Kulfy
Jan 2 at 8:49