LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063

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,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
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



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 14 02-23-2021 08:35 PM
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 11:52 PM.

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
Open Source Consulting | Domain Registration