LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-14-2018, 07:40 AM   #16
jsbjsb001
Registered User
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: Currently OpenMandriva. Previously openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,440

Rep: Reputation: 1782Reputation: 1782Reputation: 1782Reputation: 1782Reputation: 1782Reputation: 1782Reputation: 1782Reputation: 1782Reputation: 1782Reputation: 1782Reputation: 1782

Quote:
Originally Posted by ersa21 View Post
When I resume from hibernation,it starts from beginning as if being powered off.
It sounds like it does actually create the hibernation image in your SWAP, but doesn't actually resume from that image when you start your machine again. I think kilgoretrout's advice may well explain it.
 
Old 11-14-2018, 07:58 AM   #17
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,749

Rep: Reputation: 266Reputation: 266Reputation: 266
Quote:
Could replacing swap file with partition be leading to these problems?
Hibernation to a swap file was not supported by default last time I looked at ubuntu. Apparently, you can get it to work with a swap file but the procedure is somewhat complex. See for example here:

https://askubuntu.com/questions/1034...fter-hibernate

If you don't want to go through all that, you need to have a swap partition which was not present at installation so none of the underlying plumbing to support hibernation was configured. You'll have to do that by hand now to get it to work properly.
Quote:
I replaced my swap file with swap partition in fstab after which I am able to hibernate but that led to another problem i.e. applications are closed when resuming from hibernation.
Then you're not hibernating the system; you're just rebooting.

The fix depends on which version of of ubuntu you have. 18.04 is different than prior versions of ubuntu from what I can see googling around a bit. See for example:

https://ubuntu-mate.community/t/hibe...te-18-04/16924

That person is using ubuntu 18.04 mate but the procedure should be the same for standard ubuntu 18.04. You'll just have to change the text editor from pluma to gedit which is the standard text editor for gnome. Take a look at the above link and see if you can understand what's going on and give it a try. Post back with questions if you're not sure. This person is just editing the grub configuration files to properly identify where the hibernation data has been stored on the hard drive, i.e. the swap partition.

However, that may not be the end of things. See the discussion here:

https://askubuntu.com/questions/1033...p-part#1033139

There they talk about editing a host of configuration files trying to get hibernation to work properly, including generating a new initrd, edits to systemd files and edits to grub configuration. That's pretty heady stuff for a beginner. It all may be a little over your head if your not familiar with linux. If you don't have a lot invested in this installation, you may just want to reinstall but this time create a swap partition at least as large as your ram. That way all this underlying plumbing to support hibernation will hopefully be done for you during installation.

Last edited by kilgoretrout; 11-14-2018 at 08:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 12 04-25-2019 07:33 AM
swap partition size for hibernation dimm0k Slackware 9 09-28-2010 05:01 AM
Proper swap size for hibernation dimm0k Linux - Laptop and Netbook 5 09-23-2010 11:14 AM
hibernation with two swap partitions in squeeze map250r Debian 4 07-29-2010 10:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration