Skip to content
Technology News Information & Jobs

Technology News Information & Jobs

Ubuntu Tutorials, Ubuntu How To , Linux Tips, Tech Jobs

  • Work with US
  • Search Jobs
  • Post a Job
  • Contact Us
  • Ubuntu
    • Ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Themes
  • Linux
  • Laptops
  • Tutorials
  • Job Dashboard
  • Toggle search form
Ubuntu 23.04 Official Flavors Released

How To Enable Hibernate in Ubuntu 22.04 LTS

Posted on May 20, 2024 By admin No Comments on How To Enable Hibernate in Ubuntu 22.04 LTS

How To Enable Hibernate in Ubuntu 22.04 LTS

In this Ubuntu tutorial, we will show you how to enable the Hibernate power options in Ubuntu 22.04 LTS.

How To Enable Hibernate in Ubuntu 22.04 LTS

Let’s begin the process to enable hibernate in Ubuntu. At first, you need to make sure that the swap size of your Ubuntu and the installed memory size of your computer should be the same otherwise you won’t be able to enable hibernate feature.

Run the following command in the terminal to find the swap size of your Ubuntu with the following command:

swapon --show

You will see the swap size of your Ubuntu. If your swap size is smaller than the physical memory of your laptop or computer, then you need to increase the swap size of Ubuntu.

If swap size of Ubuntu is less, then go through the following steps.

You need to disable or turn off the current swap file so that you can increase the swap file size

sudo swapoff /swapfile

Run the following command to increase the swap file size. Here, we are going to increase the swap file size to 5 GB:

sudo dd if=/dev/zero of=/swapfile bs=1MB count=$((5*1024)) status=progress

It might take time to increase the swap file size.
After increasing the swap file size, you need to set the swap file permission to only the user readable and writable with the following command:

sudo chmod 600 /swapfile

Now, run the following command to format the swap file:

sudo mkswap /swapfile

After formatting the swap file, you need enable the newly created swap file. To do so,run the following command:

sudo swapon /swapfile

Now, run the following command to find the physical offset number of the swap file:

sudo filefrag -v /swapfile | head--lines=10

Now, run the following command to find the UUID of the root filesystem:

sudo blkid /dev/sda2

Now, it’s time to configure the GRUB bootloader so that you can have the feature of the hibernation. Open the GRUB configuration file /etc/default/grub with the “gedit” text editor as follows:

READ More Relevant Stuff:  Install Ubuntu 22.04 LTS Container On Docker

sudo gedit >/etc/default/grub

Now, you should be careful here while providing the details. Add the text resume=UUID=<your-root-filesystem-UUID> resume_offset=<swapfile_physical_offset> at the end of the GRUB_CMDLINE_LINUX_DEFAULT Once you’re done, press <Ctrl> + S to save the file.

Now, Run the following command to update the GRUB loader.

sudo update-grub
How To Ubuntu, Ubuntu 22.04

Post navigation

Previous Post: Popular Ubuntu Games: Top 5 Games To Play

Related Posts

[Fixed] “Temporary failure in name resolution” Issue How To Resolve Temporary failure in name resolution Issue How To Ubuntu
How To Install jq On Ubuntu 22.04 LTS How To Install jq On Ubuntu 22.04 LTS Linux
Install NVIDIA Drivers On Debian 11 Install NVIDIA Drivers On Debian 11 [Updated] Debian
Ubuntu 20.10 Groovy Gorilla Release Schedule Ubuntu 20.10 Groovy Gorilla Daily Builds Now Available For Download How To Ubuntu
How To install OnlyOffice Suite On Ubuntu 22.04 LTS How To install OnlyOffice Suite On Ubuntu 22.04 LTS Ubuntu 22.04
How To Fix GRUB Not Showing In A Dual-Boot Setup How To Fix GRUB Not Showing In A Dual-Boot Setup How To Ubuntu

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • How To Enable Hibernate in Ubuntu 22.04 LTS May 20, 2024
  • Popular Ubuntu Games: Top 5 Games To Play March 17, 2024
  • WordPress | Your site doesn’t include support for the “generateblocks/container” block GenerateBlocks Plugin February 11, 2024
  • Ubuntu Autoremove Command Debian Autoremove Command February 10, 2024
  • How To Mount Windows 11 Shares on Debian Linux December 7, 2023
  • Anonymous Browsing 101: A Deep Dive Into Residential Proxies November 20, 2023
  • How To Correctly Install Uninstall Linux Ubuntu Nvidia Drivers Fast October 31, 2023
  • Ethical Web Design: The Dos and Don’ts October 28, 2023
  • Understanding the Role of Security Operations Center October 25, 2023
  • The Positive Effects of AI Tools and Online Services on Students Successful Essay-Writing Skills October 3, 2023
  • Linux Wget Examples September 27, 2023

Categories

  • Android
  • Apple
  • Blogs
  • Debian
  • Fix
  • Gadgets
  • Game
  • Google
  • How To Ubuntu
  • Internet
  • Laptops
  • Linux
  • Linux Commands
  • Linux Game
  • Linux Mint
  • News
  • Operating Systems
  • Security
  • Technology
  • Themes
  • Tools
  • Tutorials
  • Ubuntu
  • ubuntu 18.04
  • Ubuntu 20.04
  • Ubuntu 22.04
  • Windows 11
  • Wordpress
  • Search Jobs
  • Post a Job
  • Job Dashboard
  • Contact Us
  • About US
  • Cookie Policy
  • Terms and Conditions
  • Privacy Policy
  • Sitemap
  • Write For US

Tags

android apps centos ChatGPT command Commands Debian deepin Desktop docker Fedora fix game games Gaming gnome google kernel linux linux commands linux kernel Linux laptops Linux Mint Linux themes minecraft NVIDIA Python Raspberry Pi sysadmin themes ubuntu ubuntu 18.04 Ubuntu 18.04 LTS Ubuntu 20.04 ubuntu 20.04 lts Ubuntu 22.04 LTS Ubuntu games Ubuntu kernel ubuntu themes ubuntu tutorial VirtualBox Windows Windows 11 Wine WSL
itsubuntu.com is an Equal Opportunity Employer. For Advertisement, Jobs, Guest posts, and any other thoughts, email us at [email protected]
  • Writer

    • Los Angeles, CA
    • YZ Productions
    • Full Time
  • Customs Entry Writer

    • Elk Grove Village, IL
    • Cavalier Logistics
    • Full Time
  • Lead Data Engineer ( Enterprise Platforms Technology)

    • Newport News, VA
    • Capital One Bank
    • Full Time
  • Technical Writer

    • North Haven, CT
    • ATR International
    • Full Time
  • Sr. Data Engineer

    • Williamsburg, VA
    • Capital One Bank
    • Full Time
  • Senior Data Engineer (Enterprise Platforms Technology)

    • Longview, TX
    • Capital One Bank
    • Full Time
  • Machine Learning Engineer/Applied Data Scientist, E-Commerce Risk – USDS

    • Seattle, WA (Remote)
    • TikTok
    • Full Time
  • Digital Engagement Writer

    • Sacramento, CA
    • Kavaliro
    • Full Time

Copyright © 2025 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme