Recommended Posts

 

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. 

 

This topic is now closed to further replies.
  • Posts

    • Any Video Converter Free 9.2.3 by Razvan Serea Any Video Converter is an All-in-One video converting tool with an easy-to-use graphical interface, fast converting speed and excellent video quality. Any Video Converter supports all popular video formats and converts your videos to different video formats including MP4, MOV, MKV, M2TS, M4V, MPEG, AVI, WMV, ASF, OGV, WEBM, and more. It supports converting videos to customized percent (50%, 100%, 200%, and more) or resolution (480p, 720p, 1080p, 4K, and more); It supports encoding videos into x264, x265, h263p, xvid, mpeg, wmv, and more. Any Video Converter Free key features: Compatible with Windows 11/10/8.1/8/7 (32-64bit) User interface are available in 14 languages Convert all kinds of video formats including high-definition videos Extract audio from any videos and save as MP3/WMA for your mp3 player Take snapshot from any videos and build your own picture collection Support high-definition for both input and output Batch add videos from hard drive and batch convert Customize output parameters completely as you like Manage your output videos files by group or output profile Merge several video files into a single and long one Clip a video into segments Free Audio Filter: Adjust audio volume and add audio effects Crop frame size to remove black bars and retain what you want only Adjust the brightness, contrast, saturation Rotate or flip or add noise/sharpen effects Produce output video with subtitles of your own dialogue and much, much more... Any Video Converter Free 9.2.3 changelog: Fixed video download engine auto-update failures. Added custom speed control support in the speed change tool. Added support for downloading YouTube AI-generated subtitles. Added support for preserving original audio stream in the format convert tool (e.g., Dolby Atmos, DTS:X). Fixed other bugs and improved overall performance. Download: Any Video Converter Free 9.2.3 | 7.6 MB (Freeware) View: Any Video Converter Free Home Page | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Not sure what country you’re in but in many countries you can absolutely jail the sellers behind businesses… in fact I’d say in most countries you can do that
    • I guess we are done since you refuse to read my comment you replied to or my other comment in another thread you were also a part of here.
    • I hate Slack, but Teams is much worse - maybe they've already optimized it, but it was a huge slog the last time I've checked about half a year ago. I miss my Skype.
    • Just ended up switching to Ubuntu. Not sure why I waited.
  • Recent Achievements

    • Dedicated
      jordanspringer earned a badge
      Dedicated
    • Rookie
      Rimplesnort went up a rank
      Rookie
    • One Year In
      Markus94287 earned a badge
      One Year In
    • One Month Later
      Markus94287 earned a badge
      One Month Later
    • Week One Done
      Markus94287 earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      510
    2. 2
      +Edouard
      173
    3. 3
      PsYcHoKiLLa
      155
    4. 4
      ATLien_0
      91
    5. 5
      Steven P.
      79
  • Tell a friend

    Love Neowin? Tell a friend!