GithubHelp home page GithubHelp logo

hibernate-gnome-extension's Introduction

Hibernate GNOME extension

This is a stupid simple extension for enabling hibernation option for GNOME desktop environment

Before installation

IMPORTANT: this extension requires you to have configured and preinstalled some software!

  1. Install components:

    # for Debian based distros:
    $ sudo apt install pm-utils hibernate

    find and install pm-utils and hibernate for your system

  2. Configure swap partition or swapfile: basically you need to have swap space with size like your RAM, or bigger Then you should find UUID of your swap (if you are using swap file, then swap file offset too) use:

    # to get UUID:
    $ findmnt -no UUID -T /path_to_your_swap
    # to get swap file offset:
    $ filefrag -v /swapfile | awk '{ if($1=="0:"){print substr($4, 1, length($4)-2)} }'

    for more information see this

  3. Grub configuration: edit /etc/default/grub file you need to find or add GRUB_CMDLINE_LINUX_DEFAULT option to this file Set UUID (and offset if you are using swapfile) like this:

    # if you use swap partition:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=YOUR_VALUE"
    # if you use swapfile:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=YOUR_VALUE resume_offset=YOUR_OFFSET"
    

    Finally run:

    $ sudo update-grub
    $ reboot
  4. Test hibernation: to test if hibernation works run this command:

    $ sudo systemctl hibernate

    If hibernation works, then you can install this extension, if not, google your problems...

Installation

Clone extension project:

$ git clone https://github.com/IntegerVector/hibernate-gnome-extension.git

run install script:

$ ./install

It will pull changes from main branch and install extension to you system, so it also updates extension

Finally, you can enable extension using "Extensions" app (or tweak tools in older GNOME versions).

Removing

turn extension off, then run remove script:

$ ./remove

then you can remove project folder.

hibernate-gnome-extension's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.