{"id":3501,"date":"2024-05-25T10:00:59","date_gmt":"2024-05-25T10:00:59","guid":{"rendered":"https:\/\/draculaservers.com\/tutorials\/?p=3501"},"modified":"2024-08-05T00:18:04","modified_gmt":"2024-08-05T00:18:04","slug":"enable-hibernate-in-ubuntu-22-04-lts","status":"publish","type":"post","link":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/","title":{"rendered":"How to Enable Hibernate in Ubuntu 22.04 LTS"},"content":{"rendered":"<div class=\"cl-preview-section\"><\/div>\n<div class=\"cl-preview-section\">\n<p>Hibernate is a method of shutting down your computer while keeping the user session saved on a hard disk or solid-state drive (SSD). This allows you to restore your session when the computer is powered back on, saving power compared to the sleep mode which continues to consume battery. This comprehensive guide will walk you through enabling the Hibernate power option in Ubuntu 22.04 LTS, ensuring you have a fully functional and energy-efficient system.<\/p>\n\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Hibernate stores the data from the memory (RAM) of a running computer onto the disk and then shuts it down. Upon restarting, the data is read back from the disk to the memory, and the user session is restored. Unlike sleep mode, which still draws power to keep the session in RAM, hibernate does not use any power, making it ideal for longer periods of inactivity.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"advantages-of-hibernate-over-sleep\">Advantages of Hibernate Over Sleep<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<ul>\n<li><strong>Power Savings<\/strong>: Hibernate saves more power compared to sleep because the computer is completely powered off.<\/li>\n<li><strong>Session Persistence<\/strong>: Even if the battery runs out, your session can be restored from the disk.<\/li>\n<\/ul>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"when-to-use-hibernate\">When to Use Hibernate?<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Hibernate is particularly useful when you do not plan to use your computer for an extended period but want to resume your work exactly where you left off. It is also beneficial when traveling with a laptop, as it conserves battery life.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"checking-the-current-swap-and-memory-size\">Checking the Current Swap and Memory Size<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>For hibernate to function correctly, the swap size of your Ubuntu machine must be equal to or greater than the installed memory (RAM). This ensures that all the data in RAM can be saved to the swap space during hibernation.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-check-swap-size\">Step 1: Check Swap Size<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Use the following command to check the current swap size on your system:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\">swapon --show\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>This command lists all active swap areas.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-check-memory-size\">Step 2: Check Memory Size<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Next, check the amount of installed memory (RAM) with the command:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">free<\/span> -h\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>The\u00a0<code>-h<\/code>\u00a0flag makes the output human-readable, displaying sizes in a more understandable format (e.g., MB, GB).<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>If the swap size is smaller than your physical memory, you will need to increase it.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"creating-a-new-swap-file-to-enable-hibernate\">Creating a New Swap File to Enable Hibernate<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>If your current swap size is insufficient, you will need to create a new swap file that matches or exceeds the size of your installed RAM.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-disable-current-swap\">Step 1: Disable Current Swap<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>First, disable the current swap file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> swapoff \/swapfile\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-create-a-new-swap-file\">Step 2: Create a New Swap File<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Create a new swap file with the desired size (e.g., 4GB). Adjust the size according to your installed RAM.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">dd<\/span> if<span class=\"token operator\">=<\/span>\/dev\/zero of<span class=\"token operator\">=<\/span>\/swapfile bs<span class=\"token operator\">=<\/span>1M count<span class=\"token operator\">=<\/span>4096 status<span class=\"token operator\">=<\/span>progress\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>In this command:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<ul>\n<li><code>if=\/dev\/zero<\/code>\u00a0specifies the input file as a source of zero bytes.<\/li>\n<li><code>of=\/swapfile<\/code>\u00a0specifies the output file (swap file location).<\/li>\n<li><code>bs=1M<\/code>\u00a0sets the block size to 1 Megabyte.<\/li>\n<li><code>count=4096<\/code>\u00a0sets the number of blocks (4GB in this case).<\/li>\n<li><code>status=progress<\/code>\u00a0shows the progress of the command.<\/li>\n<\/ul>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-3-set-swap-file-permissions\">Step 3: Set Swap File Permissions<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Set the correct permissions to ensure only the root user can read and write to the swap file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> 600 \/swapfile\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-4-format-the-swap-file\">Step 4: Format the Swap File<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Format the file to swap:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> mkswap \/swapfile\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-5-enable-the-new-swap-file\">Step 5: Enable the New Swap File<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Enable the newly created swap file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> swapon \/swapfile\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-6-verify-the-swap-file\">Step 6: Verify the Swap File<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Verify that the new swap file is active and the swap size is correct:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\">swapon --show\r\n<span class=\"token function\">free<\/span> -h\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"ensuring-swap-is-enabled-on-startup\">Ensuring Swap is Enabled on Startup<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>To ensure that the swap file is enabled upon system startup, it must be added to the\u00a0<code>\/etc\/fstab<\/code>\u00a0file.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-open-etcfstab\"><span id=\"step-1-open-etc-fstab\">Step 1: Open\u00a0<code>\/etc\/fstab<\/code><\/span><\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Edit the\u00a0<code>\/etc\/fstab<\/code>\u00a0file with a text editor such as\u00a0<code>gedit<\/code>:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> gedit \/etc\/fstab\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-add-swap-file-entry\">Step 2: Add Swap File Entry<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Add the following line to the file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre><code>\/swapfile none swap sw 0 0\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-3-save-and-close\">Step 3: Save and Close<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Save the file and close the text editor.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"finding-the-filesystem-uuid-and-the-physical-offset-number-of-the-swapfile\">Finding the Filesystem UUID and the Physical Offset Number of the Swapfile<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>To configure the system to resume from hibernation, you need to find the UUID of the filesystem where the swap file is located and the physical offset number of the swap file.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-find-physical-offset\">Step 1: Find Physical Offset<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Find the physical offset number of the swap file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> filefrag -v \/swapfile <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span> -n 1\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>The output will display the physical offset number. Note this number as it is required for the next steps.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-identify-root-filesystem\">Step 2: Identify Root Filesystem<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Identify the root filesystem device:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">df<\/span> -h \/\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>This command shows the filesystem details of the root directory.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-3-get-uuid-of-root-filesystem\">Step 3: Get UUID of Root Filesystem<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Retrieve the UUID of the root filesystem:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> blkid \/dev\/sda1\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Replace\u00a0<code>\/dev\/sda1<\/code>\u00a0with your root filesystem device name.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"configuring-grub-to-resume-ubuntu-from-hibernate\">Configuring GRUB to Resume Ubuntu from Hibernate<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>To enable hibernation, you must configure the GRUB bootloader to resume from hibernation.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-open-grub-configuration\">Step 1: Open GRUB Configuration<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Open the GRUB configuration file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> gedit \/etc\/default\/grub\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-edit-grub_cmdline_linux_default\">Step 2: Edit GRUB_CMDLINE_LINUX_DEFAULT<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Add the following parameters to the\u00a0<code>GRUB_CMDLINE_LINUX_DEFAULT<\/code>\u00a0line:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre><code>resume=UUID=&lt;your-root-filesystem-UUID&gt; resume_offset=&lt;swapfile_physical_offset&gt;\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Replace\u00a0<code>&lt;your-root-filesystem-UUID&gt;<\/code>\u00a0with the UUID of your root filesystem and\u00a0<code>&lt;swapfile_physical_offset&gt;<\/code>\u00a0with the physical offset of the swap file.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-3-update-grub-configuration\">Step 3: Update GRUB Configuration<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Update the GRUB configuration:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> update-grub\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"enabling-hibernate-in-initramfs\">Enabling Hibernate in Initramfs<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Next, you need to configure the initramfs to enable hibernation.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-create-initramfs-configuration-file\">Step 1: Create Initramfs Configuration File<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Create a new initramfs configuration file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> gedit \/etc\/initramfs-tools\/conf.d\/resume\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-add-resume-configuration\">Step 2: Add Resume Configuration<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Add the following line to the file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre><code>RESUME=UUID=&lt;your-root-filesystem-UUID&gt; resume_offset=&lt;swapfile_physical_offset&gt;\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Again, replace\u00a0<code>&lt;your-root-filesystem-UUID&gt;<\/code>\u00a0and\u00a0<code>&lt;swapfile_physical_offset&gt;<\/code>\u00a0with the appropriate values.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-3-update-initramfs\">Step 3: Update Initramfs<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Update the initramfs:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> update-initramfs -c -k all\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<div class=\"cl-preview-section\">\n<h2 id=\"affordable-vps-hosting-with-dracula-servers\"><span style=\"color: #ff2600;\">Affordable VPS Hosting With Dracula Servers<\/span><\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Looking for reliable and budget-friendly Virtual Private Server (VPS) hosting? Look no further than\u00a0<a href=\"https:\/\/draculaservers.com\/\">Dracula Servers<\/a>. Dracula Servers offers a range of VPS hosting plans tailored to meet diverse needs. With competitive pricing, robust performance, and a user-friendly interface, it\u2019s an excellent choice for individuals and businesses alike.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Explore the\u00a0<a href=\"https:\/\/draculaservers.com\/\">Dracula Servers website<\/a> to discover hosting solutions that align with your requirements and take your online presence to new heights with their affordable and efficient VPS hosting services.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<p><a href=\"https:\/\/draculaservers.com\/\"><strong>Visit Dracula Servers<\/strong><\/a>\u00a0and experience reliable VPS hosting without breaking the bank.<\/p>\n<\/div>\n<h2 id=\"adding-the-hibernate-option-in-the-system-tray-power-offlog-out-menu\"><span id=\"adding-the-hibernate-option-in-the-system-tray-power-off-log-out-menu\">Adding the Hibernate Option in the System Tray Power Off\/Log Out Menu<\/span><\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>To make hibernation easily accessible, you can add the hibernate option to the system tray power off\/log out menu.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-1-create-policy-file\">Step 1: Create Policy File<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Create a new policy file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> gedit \/etc\/polkit-1\/localauthority\/50-local.d\/com.ubuntu.enable-hibernate.pkla\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-2-add-the-following-configuration\">Step 2: Add the Following Configuration<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Add the following lines to the file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre><code>[Re-enable hibernate by default in upower]\r\nIdentity=unix-user:*\r\nAction=org.freedesktop.upower.hibernate\r\nResultActive=yes\r\n\r\n[Re-enable hibernate by default in logind]\r\nIdentity=unix-user:*\r\nAction=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit\r\nResultActive=yes\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-3-install-gnome-extension-manager\">Step 3: Install GNOME Extension Manager<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Update the package list and install the GNOME Extension Manager:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> apt update\r\n<span class=\"token function\">sudo<\/span> apt <span class=\"token function\">install<\/span> gnome-shell-extension-manager\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"step-4-open-extension-manager-and-install-hibernate-extension\">Step 4: Open Extension Manager and Install Hibernate Extension<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<ol>\n<li><strong>Open the GNOME Extension Manager<\/strong>\u00a0from the application menu.<\/li>\n<li><strong>Navigate to the Browse Section<\/strong>: Search for \u201chibernate\u201d.<\/li>\n<li><strong>Install the Hibernate Status Button Extension<\/strong>.<\/li>\n<\/ol>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"restarting-ubuntu-for-the-changes-to-take-effect\">Restarting Ubuntu for the Changes to Take Effect<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>To apply all the changes, restart your Ubuntu machine:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">reboot<\/span>\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"hibernating-ubuntu-from-the-command-line\">Hibernating Ubuntu from the Command Line<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>To hibernate your system from the command line, use the following command:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> systemctl hibernate\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"hibernating-ubuntu-from-the-system-tray-power-off-menu\">Hibernating Ubuntu from the System Tray Power Off Menu<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>To hibernate your system using the graphical user interface:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<ol>\n<li><strong>Access the System Tray<\/strong>.<\/li>\n<li><strong>Select &#8221; Power Off\/Log Out&#8221;<\/strong>.<\/li>\n<li><strong>Click on \u201cHibernate\u201d<\/strong>.<\/li>\n<\/ol>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"troubleshooting-hibernate-issues\">Troubleshooting Hibernate Issues<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>While enabling hibernate, you might encounter some issues. Here are some common problems and their solutions:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"secure-boot\">Secure Boot<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>In some systems, hibernate may not work if Secure Boot is enabled. Secure Boot is a security feature in your computer\u2019s BIOS that ensures only trusted software is loaded at boot time.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-1-check-secure-boot-status\">Step 1: Check Secure Boot Status<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>To check if Secure Boot is enabled, restart your computer and enter the BIOS\/UEFI settings. This can usually be done by pressing a key like\u00a0<code>F2<\/code>,\u00a0<code>F10<\/code>,\u00a0<code>F12<\/code>,\u00a0<code>Del<\/code>, or\u00a0<code>Esc<\/code>\u00a0during the boot process (the exact key depends on your system manufacturer).<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-2-disable-secure-boot\">Step 2: Disable Secure Boot<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>If Secure Boot is enabled, disable it from the BIOS\/UEFI settings. The option is usually found under the \u201cBoot\u201d or \u201cSecurity\u201d tab, but it can vary based on the BIOS\/UEFI version and manufacturer.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"swap-file-not-properly-configured\">Swap File Not Properly Configured<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>If hibernate doesn\u2019t work, it could be due to incorrect swap file configuration. Ensure that the swap file size is correctly set and that the UUID and physical offset are correctly specified in the GRUB and initramfs configurations.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-1-verify-swap-file-configuration\">Step 1: Verify Swap File Configuration<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Run the following commands to ensure the swap file is configured correctly:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> swapon --show\r\n<span class=\"token function\">sudo<\/span> filefrag -v \/swapfile <span class=\"token operator\">|<\/span> <span class=\"token function\">head<\/span> -n 1\r\n<span class=\"token function\">sudo<\/span> blkid \/dev\/sda1\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Replace\u00a0<code>\/dev\/sda1<\/code>\u00a0with your root filesystem device name. Make sure the UUID and physical offset match the values in your GRUB and initramfs configurations.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-2-check-grub-configuration\">Step 2: Check GRUB Configuration<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Ensure that the\u00a0<code>resume<\/code>\u00a0parameters are correctly added to the\u00a0<code>GRUB_CMDLINE_LINUX_DEFAULT<\/code>\u00a0line in\u00a0<code>\/etc\/default\/grub<\/code>:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> gedit \/etc\/default\/grub\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Look for:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre><code>GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash resume=UUID=&lt;your-root-filesystem-UUID&gt; resume_offset=&lt;swapfile_physical_offset&gt;\"\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Update GRUB if needed:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> update-grub\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-3-check-initramfs-configuration\">Step 3: Check Initramfs Configuration<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Verify the initramfs configuration file:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> gedit \/etc\/initramfs-tools\/conf.d\/resume\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Ensure it contains:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre><code>RESUME=UUID=&lt;your-root-filesystem-UUID&gt; resume_offset=&lt;swapfile_physical_offset&gt;\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Update initramfs if needed:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> update-initramfs -c -k all\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"hardware-compatibility\">Hardware Compatibility<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Some hardware configurations might not support hibernate due to drivers or firmware issues. Check the Ubuntu hardware compatibility list or forums to see if your hardware is known to have issues with hibernation.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-1-update-drivers-and-firmware\">Step 1: Update Drivers and Firmware<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Ensure all your system drivers and firmware are up to date. Use the following commands to update your system:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">sudo<\/span> apt update\r\n<span class=\"token function\">sudo<\/span> apt upgrade\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Also, check your hardware manufacturer\u2019s website for any firmware updates.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-2-test-hibernation-with-minimal-peripherals\">Step 2: Test Hibernation with Minimal Peripherals<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Disconnect all unnecessary peripherals (external drives, printers, etc.) and test hibernation. Sometimes, peripherals can interfere with the hibernation process.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"logs-and-diagnostics\">Logs and Diagnostics<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Examine system logs to diagnose hibernation issues. The logs can provide insights into what might be going wrong.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-1-check-system-logs\">Step 1: Check System Logs<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Use the following command to view system logs:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\">journalctl -xe\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Look for any errors or warnings related to hibernation.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-2-use-dmesg-for-kernel-messages\">Step 2: Use dmesg for Kernel Messages<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>The\u00a0<code>dmesg<\/code>\u00a0command displays kernel-related messages, which can help diagnose hardware issues:<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<pre class=\" language-bash\"><code class=\"prism language-bash\"><span class=\"token function\">dmesg<\/span> <span class=\"token operator\">|<\/span> <span class=\"token function\">grep<\/span> -i hibernate\r\n<\/code><\/pre>\n<\/div>\n<div class=\"cl-preview-section\">\n<h3 id=\"hibernate-from-live-cd\">Hibernate from Live CD<\/h3>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>As a last resort, you can try hibernating from a live CD to see if it\u2019s a software issue with your installed system.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-1-boot-from-live-cd\">Step 1: Boot from Live CD<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Boot your system from an Ubuntu live CD or USB.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h4 id=\"step-2-configure-swap-and-hibernate\">Step 2: Configure Swap and Hibernate<\/h4>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Follow the same steps to configure swap and hibernate in the live environment. If hibernation works here, it indicates a configuration issue with your installed system rather than a hardware problem.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<h2 id=\"conclusion\">Conclusion<\/h2>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>Enabling hibernate in Ubuntu 22.04 LTS can significantly improve your system\u2019s power efficiency by allowing you to save your session and power off the computer completely. This guide walked you through checking and configuring swap space, updating GRUB and initramfs configurations, and adding hibernation options to the system tray. Additionally, we covered common troubleshooting steps to resolve hibernation issues.<\/p>\n<\/div>\n<div class=\"cl-preview-section\">\n<p>By following these steps, you can enjoy the benefits of hibernation, ensuring that your work is saved and your system remains energy efficient. Whether you are a casual user or a power user, enabling hibernate can enhance your Ubuntu experience, providing a seamless way to manage your sessions and conserve power.<\/p>\n<p>Check out More Linux Tutorials <a href=\"https:\/\/draculaservers.com\/tutorials\/\" target=\"_blank\" rel=\"noopener\">Here!<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Hibernate is a method of shutting down your computer while keeping the user session saved on a hard disk or solid-state drive (SSD). This allows you to restore your session when the computer is powered back on, saving power compared to the sleep mode which continues to consume battery. This comprehensive guide will walk you [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3502,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[626,627,628],"class_list":["post-3501","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ubuntu","tag-hibernate-ubuntu","tag-how-to-enable-hybernation-in-ubuntu","tag-how-to-put-your-ubuntu-machine-to-hybernation"],"blocksy_meta":[],"featured_image_urls_v2":{"full":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53.png",1280,720,false],"thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53-150x150.png",150,150,true],"medium":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53-300x169.png",300,169,true],"medium_large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53-768x432.png",768,432,true],"large":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53-1024x576.png",1024,576,true],"1536x1536":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53.png",1280,720,false],"2048x2048":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53.png",1280,720,false],"pk-small":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53-80x80.png",80,80,true],"pk-thumbnail":["https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53-300x225.png",300,225,true]},"post_excerpt_stackable_v2":"<p>Hibernate is a method of shutting down your computer while keeping the user session saved on a hard disk or solid-state drive (SSD). This allows you to restore your session when the computer is powered back on, saving power compared to the sleep mode which continues to consume battery. This comprehensive guide will walk you through enabling the Hibernate power option in Ubuntu 22.04 LTS, ensuring you have a fully functional and energy-efficient system. Hibernate stores the data from the memory (RAM) of a running computer onto the disk and then shuts it down. Upon restarting, the data is read&hellip;<\/p>\n","category_list_v2":"<a href=\"https:\/\/draculaservers.com\/tutorials\/category\/ubuntu\/\" rel=\"category tag\">Ubuntu<\/a>","author_info_v2":{"name":"Abdul Mannan","url":"https:\/\/draculaservers.com\/tutorials\/author\/abdul-mannan-tbgmail-com\/"},"comments_num_v2":"1 comment","yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Enable Hibernate in Ubuntu 22.04 LTS - Dracula Servers Tutorials<\/title>\n<meta name=\"description\" content=\"You can start by updating GRUB and initramfs configurations, and adding hibernation options to the system tray.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Enable Hibernate in Ubuntu 22.04 LTS - Dracula Servers Tutorials\" \/>\n<meta property=\"og:description\" content=\"You can start by updating GRUB and initramfs configurations, and adding hibernation options to the system tray.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/\" \/>\n<meta property=\"og:site_name\" content=\"Dracula Servers Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2024-05-25T10:00:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-08-05T00:18:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Abdul Mannan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Abdul Mannan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/\"},\"author\":{\"name\":\"Abdul Mannan\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\"},\"headline\":\"How to Enable Hibernate in Ubuntu 22.04 LTS\",\"datePublished\":\"2024-05-25T10:00:59+00:00\",\"dateModified\":\"2024-08-05T00:18:04+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/\"},\"wordCount\":1692,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Dracula-Servers-Thumbnail-53.png\",\"keywords\":[\"Hibernate Ubuntu\",\"How to enable Hybernation in Ubuntu\",\"How to put your Ubuntu machine to hybernation\"],\"articleSection\":[\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/\",\"name\":\"How to Enable Hibernate in Ubuntu 22.04 LTS - Dracula Servers Tutorials\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Dracula-Servers-Thumbnail-53.png\",\"datePublished\":\"2024-05-25T10:00:59+00:00\",\"dateModified\":\"2024-08-05T00:18:04+00:00\",\"description\":\"You can start by updating GRUB and initramfs configurations, and adding hibernation options to the system tray.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/#primaryimage\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Dracula-Servers-Thumbnail-53.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2024\\\/08\\\/Dracula-Servers-Thumbnail-53.png\",\"width\":1280,\"height\":720,\"caption\":\"How to Enable Hibernate in Ubuntu 22.04 LTS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/enable-hibernate-in-ubuntu-22-04-lts\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Enable Hibernate in Ubuntu 22.04 LTS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"name\":\"Dracula Servers Tutorials\",\"description\":\"Dedicated Servers\",\"publisher\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#organization\",\"name\":\"Dracula Servers\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"contentUrl\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/dracula_full_logo_smaller.png\",\"width\":1625,\"height\":200,\"caption\":\"Dracula Servers\"},\"image\":{\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/draculaservers.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/ac89d0281f4fb596bfaa0bc1e746c8a6\",\"name\":\"Abdul Mannan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g\",\"caption\":\"Abdul Mannan\"},\"description\":\"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Enable Hibernate in Ubuntu 22.04 LTS - Dracula Servers Tutorials","description":"You can start by updating GRUB and initramfs configurations, and adding hibernation options to the system tray.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/","og_locale":"en_US","og_type":"article","og_title":"How to Enable Hibernate in Ubuntu 22.04 LTS - Dracula Servers Tutorials","og_description":"You can start by updating GRUB and initramfs configurations, and adding hibernation options to the system tray.","og_url":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/","og_site_name":"Dracula Servers Tutorials","article_published_time":"2024-05-25T10:00:59+00:00","article_modified_time":"2024-08-05T00:18:04+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53.png","type":"image\/png"}],"author":"Abdul Mannan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Abdul Mannan","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/#article","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/"},"author":{"name":"Abdul Mannan","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6"},"headline":"How to Enable Hibernate in Ubuntu 22.04 LTS","datePublished":"2024-05-25T10:00:59+00:00","dateModified":"2024-08-05T00:18:04+00:00","mainEntityOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/"},"wordCount":1692,"commentCount":1,"publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53.png","keywords":["Hibernate Ubuntu","How to enable Hybernation in Ubuntu","How to put your Ubuntu machine to hybernation"],"articleSection":["Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/","url":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/","name":"How to Enable Hibernate in Ubuntu 22.04 LTS - Dracula Servers Tutorials","isPartOf":{"@id":"https:\/\/draculaservers.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/#primaryimage"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/#primaryimage"},"thumbnailUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53.png","datePublished":"2024-05-25T10:00:59+00:00","dateModified":"2024-08-05T00:18:04+00:00","description":"You can start by updating GRUB and initramfs configurations, and adding hibernation options to the system tray.","breadcrumb":{"@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/#primaryimage","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2024\/08\/Dracula-Servers-Thumbnail-53.png","width":1280,"height":720,"caption":"How to Enable Hibernate in Ubuntu 22.04 LTS"},{"@type":"BreadcrumbList","@id":"https:\/\/draculaservers.com\/tutorials\/enable-hibernate-in-ubuntu-22-04-lts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/draculaservers.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Enable Hibernate in Ubuntu 22.04 LTS"}]},{"@type":"WebSite","@id":"https:\/\/draculaservers.com\/tutorials\/#website","url":"https:\/\/draculaservers.com\/tutorials\/","name":"Dracula Servers Tutorials","description":"Dedicated Servers","publisher":{"@id":"https:\/\/draculaservers.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/draculaservers.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/draculaservers.com\/tutorials\/#organization","name":"Dracula Servers","url":"https:\/\/draculaservers.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","contentUrl":"https:\/\/draculaservers.com\/tutorials\/wp-content\/uploads\/2016\/06\/dracula_full_logo_smaller.png","width":1625,"height":200,"caption":"Dracula Servers"},"image":{"@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/draculaservers.com\/tutorials\/#\/schema\/person\/ac89d0281f4fb596bfaa0bc1e746c8a6","name":"Abdul Mannan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2809442d44177cab4f90e1d9b3295560462063881ca1374b6d597d8f0b48fc21?s=96&d=mm&r=g","caption":"Abdul Mannan"},"description":"An individual trying to decipher the enigmas of technology by the sheer driving force of curiosity. Interested in learning new skills and being better at those skills than the lot."}]}},"_links":{"self":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/3501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/comments?post=3501"}],"version-history":[{"count":4,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/3501\/revisions"}],"predecessor-version":[{"id":3506,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/posts\/3501\/revisions\/3506"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media\/3502"}],"wp:attachment":[{"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/media?parent=3501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/categories?post=3501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/draculaservers.com\/tutorials\/wp-json\/wp\/v2\/tags?post=3501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}