How To Enable Hibernation in *buntu 14.04


Recommended Posts

simonlang

 

This simple and brief tutorial is going to show you how to enable the hibernate feature in Ubuntu 14.04 Trusty Tahr.

Hibernate is disabled by default in Ubuntu, when the computer hibernates, all of your applications and documents are stored and the computer completely switches off so it does not use any power, but the applications and documents will still be open when you switch on the computer again.

hibernate-ubuntu1310.jpg

 

To enable hibernate, you actually have to have several things done:

 

- make sure, your swap partition is at least as big as your installed RAM. if you don't have a swap partition yet, create one using gparted for exmaple. as soon as it's created, activate it and it will be used right on.

 

then:

first, open Konsole and create/opem the following file via your favorite text-editor, here i am gonna use kwrite

sudo kwrite /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla

then, copy-paste the following content:

[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
ResultActive=yes

save the file.

 

this gives you the entry seen in the screenshot above, however the system still needs to know, when it wakes up, if there is a written hibernate file on the swap partition and if it exists, grub2 needs a command to boot it instead of just booting the normal system.

therefore you need to add the UUID of your swap partition with a resume command to your grub_cmdline parameter.

 

first get the UUID of your swap partition, for example by opening Konsole and type:

sudo blkid

will list you all partitions. look for your swap partition and it's UUID for example:

6a12a4d5-e9e6-4568-afcc-34c70b24a668

Then in the Konsole enter:

sudo kwrite /etc/default/grub

this will open your grub config file, check for GRUB_CMDLINE_LINUX_DEFAULT (in my case it was line 11) it will look like:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

change it to make it look like this:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID="6a12a4d5-e9e6-4568-afcc-34c70b24a668"

save the file and do a reboot.

 

you should now have a working hibernation function with the entry in the startmenu. 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Copernic
      EdrawMax 10.1.4 Build 819
      by Razvan Serea



      Plan, brainstorm or design anything faster with EdrawMax 10. EdrawMax is a powerful, all-in-one, and yet easy-to-use diagramming tool that enables users to visualize the ideas effortlessly. With EdrawMax, you can create and customize flowcharts, Venn diagrams, mind maps, organizational charts, Gantt charts, UML diagrams, electrical drawings, genograms, building plans, etc.

      Share Anything Easier

      It's easy to export and share your amazing diagrams with EdrawMax. Once you finished your work, simply export it to any formats, including Office, PDF, Visio, Html, SVG, Graphics in one click. Meanwhile, you can share it on social media or just email it directly to your friends and colleagues.

      EdrawMax includes more than 2000 professional templates widely used in business, education, software and fashion industry. Moreover, there are over 280 types of diagrams which is 3 times the quantity of Visio to optimize your visualization solutions.

      EdrawMax 10.1.4 changelog:

      You can have access to the template gallery to get inspired in EdrawMax. You can register/sign in to an Edraw account and save the drawing files in the personal cloud. Add a user guide for beginners to learn how to use EdrawMax instantly. Add operation tips when you start to make flowcharts, mind maps, org charts, swimlane diagrams, or use smart shapes. Symbol Library: now you can import symbols of the VSSX file format. Theme & Style: Add new themes and change fill colors at the bottom of the interface. Theme & Style: When you modify the quick style of the whole diagram, the font size of the text will be unaffected if you have changed the size before. Theme & Style: Change the style of the connection point. Pin context menus on the interface. Double-click on the blank area to add a text box on the canvas. Add the formula editor under the Insert tab. Copy and paste any content between the desktop and online version of EdrawMax. Export shape data from the Data Properties pane. Zoom the canvas from 10% to 1000% Gantt Chart: Add the functions of displaying delay tasks and critical paths. Gantt Chart: Show or hide all subtasks. Fix some bugs and crash issues that might happen in certain situations. Corrections and improvements in many small details. Download: EdrawMax 10.1.4 Build 819 | 266.0 MB (Shareware)
      View: Screenshot | EDraw Max Website

      Get alerted to all of our Software updates on Twitter at @NeowinSoftware

    • By zikalify
      Ubuntu 20.10 ‘Groovy Gorilla' is available to download now
      by Paul Hill



      Canonical has announced the immediate availability of Ubuntu 20.10 ‘Groovy Gorilla’. While this version is considered stable and fit to be run as a daily driver, it is not a Long Term Support (LTS) release and will therefore only receive security updates for nine months.

      The new version comes with a variety of new software including Linux Kernel 5.8 and GNOME 3.38. Developer tools such as programming languages and compilers have also received updates - this release ships with glibc 2.32, OpenJDK 11, rustc 1.41, GCC 10, LLVM 11, Python 3.8.6, ruby 2.7.0, php 7.4.9, perl 5.30, and golang 1.13.

      Another notable point about this upgrade is that Canonical has spun a new desktop image aimed at Raspberry Pi 4 devices that have at least 4GB of RAM. Raspberry Pi’s new Compute Module 4 is also supported by the Groovy Gorilla but you’ll need to have 4GB of RAM and 16GB of eMMC or equivalent SD card storage.

      Those who want to download and try the new version can download it from the Ubuntu download page. If you’re running Ubuntu 20.04 LTS and want to upgrade you’ll need to open Software & Updates, head to the Updates tab, and change the Notify me of a new Ubuntu version drop down to For any new version. From there, open the update manager and you’ll be offered the upgrade.

    • By Copernic
      KeePassXC 2.6.2
      by Razvan Serea



      KeePassXC is a community fork of KeePassX, a native cross-platform port of KeePass Password Safe, with the goal to extend and improve it with new features and bugfixes to provide a feature-rich, fully cross-platform and modern open-source password manager.

      KeePassXC currently uses the KeePass 2.x (.kdbx) password database format as its native file format in versions 3.1 and 4. Database files in version 2 can be opened, but will be upgraded to a newer format. KeePass 1.x (.kdb) databases can be imported into a .kdbx file, but this process is one-way.

      Main Features

      Secure storage of passwords and other private data with AES, Twofish or ChaCha20 encryption Cross-platform, runs on Linux, Windows and macOS without modifications File format compatibility with KeePass2, KeePassX, MacPass, KeeWeb and many others (KDBX 3.1 and 4.0) SSH Agent integration Auto-Type on all supported platforms for automagically filling in login forms Key file and YubiKey challenge-response support for additional security TOTP generation (including Steam Guard) CSV import from other password managers (e.g., LastPass) Command line interface Stand-alone password and passphrase generator Password strength meter Custom icons for database entries and download of website favicons Database merge functionality Automatic reload when the database was changed externally Browser integration with KeePassXC-Browser for Google Chrome, Chromium, Vivaldi, and Mozilla Firefox. KeePassXC 2.6.2 release notes:

      Added

      Add option to keep window always on top to view menu [#5542]

      Move show/hide usernames and passwords to view menu [#5542]

      Add command line options and environment variables for changing the config locations [#5452]

      Include TOTP settings in CSV import/export and add support for ISO datetimes [#5346]

      Changed

      Mask sensitive information in command execution confirmation prompt [#5542]

      SSH Agent: Avoid shortcut conflict on macOS by changing "Add key" to Ctrl+H on all platforms [#5484]

      Fixed

      Prevent data loss with drag and drop between databases [#5536] Fix crash when toggling Capslock rapidly [#5545] Don't mark URL references as invalid URL [#5380] Reset entry preview after search [#5483] Set Qt::Dialog flag on database open dialog [#5356] Fix sorting of database report columns [#5426] Fix IfDevice matching logic [#5344] Fix layout issues and a stray scrollbar appearing on top of the entry edit screen [#5424] Fix tabbing into the notes field [#5424] Fix password generator ignoring settings on load [#5340] Restore natural entry sort order on application load [#5438] Fix paperclip and TOTP columns not saving state [#5327] Enforce fixed password font in entry preview [#5454] Add scrollbar when new database wizard exceeds screen size [#5560] Do not mark database as modified when viewing Auto-Type associations [#5542] CLI: Fix two heap-use-after-free crashes [#5368,#5470] Browser: Fix key exchange not working with multiple simultaneous users on Windows [#5485] Browser: Fix entry retrieval when "only best matching" is enabled [#5316] Browser: Ignore recycle bin on KeePassHTTP migration [#5481] KeeShare: Fix import crash [#5542] macOS: Fix toolbar theming and breadcrumb display issues [#5482] macOS: Fix file dialog randomly closing [#5479] macOS: Fix being unable to select OPVault files for import [#5341] Download: KeePassXC 2.6.2 (32-bit) | Portable ~40.0 MB (Open Source)
      Download: KeePassXC 2.6.2 (64-bit) | Portable
      Links: KeePassXC Website | Other Operating Systems | Screenshots

      Get alerted to all of our Software updates on Twitter at @NeowinSoftware

    • By Copernic
      Bandicut 3.6.1.636
      by Razvan Serea



      Bandicut is super-fast video cutting/joining software with an easy-to-use interface. It allows users to trim parts of video quickly while keeping the original video quality. Users can also extract audio from video to MP3, join multiple video files, remove one or more parts from the video, or split the video into multiple files.

      Bandicut can cut large video files and remove unwanted parts like commercials, outtakes and trailers. Leave the scenes you like and remove the ones you don't. The easiest video cutting software can freely select regions by using the slider.

      Bandicut can cut/merge video files as an AVI cutter/joiner, MP4 cutter/joiner, MOV cutter/joiner or MPEG cutter/joiner. It works well with many file formats like AVI, MP4, MOV, M4V, MKV, MPEG, MPG, DAT, VOB, FLV, ASF, WMV, TS, TP, TRP, MPE, MPV2, MP2V, M2T, M2TS, K3G, DIVX, WM, WMX, WVX, RM, RMVB, RAM, IVF, OGM, VP6, XVD.

      Bandicut features:

      You can cut a part from the original copy without encoding. [High-Speed Mode] does not decrease the quality. You can precisely cut a video by frame. Various compression codecs (Xvid, MPEG-1, Motion JPEG, etc.) are supported High-speed video cutting is supported. Various video formats are supported. (*.avi, *.mp4, *.mov, *.m4v, *.mkv, *.mpeg, *.mpg, *.dat, *.vob, *.flv, *.asf, *.wmv, *.ts, *.tp, *.trp, *.mpe, *.mpv2, *.mp2v, *.m2t, *.m2ts, *.k3g, *.divx, *.wm, *.wmx, *.wvx, *.rm, *.rmvb, *.ram, *.ivf, *.ogm, *.vp6, *.xvd) Easy to use. Bandicut 3.6.1.636 changelog:

      Bandicut now works only on 64-bit Windows.

      Added the Project file recovery function.

      Improved display of the progress status bar.

      Improved the Bandicut project file UI.

      Bugs fixed

      Failed to open some .VOB files.

      High-speed mode: Some video files which used the HEVC codec couldn't be played after cutting.

      Synchronization problems occurred or encoding failed if a video had a lower frame rate.

      Audio was partially cut off when merging videos under certain conditions.

      Some buttons become inactive when changing modes.

      The Start button was invisible on the Bandicut UI on some computers.

      Some videos were unable to be processed and progress in the progress window halted.

      Bandicut crashed when the file size was large or the playback time was long.

      Bandicut crashed when when adding some video files.

      Bandicut crashed while using the High-speed mode on some high-end computers.

      Other minor bugs have been fixed.

      Download: Bandicut 3.6.1.636 | 17.7 MB (Shareware)
      View: Bandicut Website | Bandicut Screenshot

      Get alerted to all of our Software updates on Twitter at @NeowinSoftware

    • By Copernic
      WinContig 3.0.0.1
      by Razvan Serea



      WinContig is an easy-to-use stand-alone defragmentation tool that doesn't create any installation directories or Registry entries on your computer. Its purpose is to quick defrag files without the need to defrag the whole disk. In addition, WinContig allows you to group files into profiles, and also it accepts a number of optional command-line switches that you can use to control how the program operates. Freeware for personal and commercial use.

      WinContig is a standalone executable, and it doesn't require any installation process or additional DLLs. In order to start using it, just extract the contents of the ZIP archive to any folder you like, and run it.

      WinContig is not a GUI for Sysinternals Contig, nor Contig is embedded within WinContig.

      WinContig 3.0.0.1 changelog:

      WinContig may not correctly display messages and disk check results in East Asian systems. Fixed. Many thanks to Robert Choi (who pointed it out) for his continuous and commendable support.

      Updated the Korean language module.

      Download: WinContig 3.0.0.1 | 1.2 MB (Freeware)
      View: WinContig Website

      Get alerted to all of our Software updates on Twitter at @NeowinSoftware