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:  Configure CTRL+ALT+DEL As Task Manager In Ubuntu 20.04/18.04

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
Next Post: New Job Search

Related Posts

3 Ways to Install Skype in Ubuntu 22.04 LTS 3 Ways to Install Skype in Ubuntu 22.04 LTS In 2023 Ubuntu 22.04
Ubuntu 20.10 Groovy Gorilla Release Schedule Ubuntu 20.10 Groovy Gorilla Daily Builds Now Available For Download How To Ubuntu
Install NVIDIA Drivers On Debian 11 Install NVIDIA Drivers On Debian 11 [Updated] Debian
Linux For Students: Must-Have Apps for Effective Education Linux For Students: Must-Have Apps for Effective Education How To Ubuntu
Ubuntu 22.04.1 LTS (Jammy Jellyfish) Is Now Available for Download Ubuntu 22.04.1 LTS (Jammy Jellyfish) Is Now Available for Download Ubuntu 22.04
10+ Basic Cat Command Examples in Linux [2023] 10+ Basic Cat Command Examples in Linux [2023] How To Ubuntu

Leave a Reply Cancel reply

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

Recent Posts

  • New Job Search October 10, 2025
  • 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

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
itsubuntu.com is an Equal Opportunity Employer. For Advertisement, Jobs, Guest posts, and any other thoughts, email us at info@itsubuntu.com
  • Remote Writer/Journalist Internship – Poverty Advocacy

    • Vermillion, SD
    • The Borgen Project
    • Internship
  • Reporter/Writer, Justice, CNN

    • Washington DC
    • Warner Bros Discovery
    • Full Time
  • Technical Writer Level II

    • Arlington, OH
    • ATTAINX INC
    • Full Time
  • Government and Infrastructure – Business Transformation – Technical Writer – Staff

    • California
    • EY
    • Full Time
  • Service Writer

    • Georgetown, KY
    • Meade Tractor
    • Full Time
  • Estimate Writer aka Friendly Outgoing

    • Griffin, GA
    • Cambri Ventures, Inc
    • Full Time
  • Remote Grant Writer for Arts Education Impact

    • Hamden, CT
    • Arts for Schools Inc formerly Arts in CT
    • Full Time
  • Grant Writer

    • United States
    • JerseySTEM
    • Full Time

Copyright © 2026 Technology News Information & Jobs.

Powered by PressBook Grid Blogs theme