LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-13-2018, 09:30 AM   #1
ersa21
LQ Newbie
 
Registered: Nov 2018
Posts: 10

Rep: Reputation: Disabled
after resuming from hibernation,all applications are closed.


https://www.linuxquestions.org/quest...nd-4175642245/

After solving this problem,there arises another problem.When waking after hibernation,all my applications are closed like being shutdown.I found a similar problem on another forum and tried the method mentioned in the post for hibernation instead of suspend.
https://askubuntu.com/questions/7200...upon-awakening
There is no problem for suspend but it doesn't work for hibernation.

How do I solve this problem? Any new ideas are welcomed.

Last edited by ersa21; 11-13-2018 at 09:48 AM.
 
Old 11-14-2018, 02:59 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,998

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
My initial guess would be that it is not actually going into hibernation. Other idea may be that some distro or user setting is telling it to close on hibernate and that would be odd.

Usually the problem is some deal between bios/motherboard and the OS acpi.

Might have to test a clean install and be sure to see what S states your system has and if your boot to linux has correctly selected acpi and the availability to select swap partition.

I'll ask this too. You aren't using some live cd or usb pendrive deal?
 
Old 11-14-2018, 03:26 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Try debugging or set hibernation to never:-

https://01.org/blogs/rzhang/2015/bes...bernate-issues
 
1 members found this post helpful.
Old 11-15-2018, 03:28 AM   #4
ersa21
LQ Newbie
 
Registered: Nov 2018
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
My initial guess would be that it is not actually going into hibernation. Other idea may be that some distro or user setting is telling it to close on hibernate and that would be odd.

Usually the problem is some deal between bios/motherboard and the OS acpi.

Might have to test a clean install and be sure to see what S states your system has and if your boot to linux has correctly selected acpi and the availability to select swap partition.

I'll ask this too. You aren't using some live cd or usb pendrive deal?

I just installed windows too and rebuild ubuntu GRUB. So now as I try to hibernate, I see that it restarts and go to the page where it asks to select which OS I want to use. I have tried a lot trying to install ubuntu. If I can figure some ways without having to install again,that's great else,I will try suspend instead of hibernate.
 
Old 11-15-2018, 04:35 AM   #5
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Hibernation makes an image of your current situation, saves this to an image file which then starts again.

It is perfectly normal that you have to choose your startup in grub, even when using hibernation. When you select whatever same boot that you hibernated with, it will open the hibernation file and start you up where you were.

I don't use hibernation because I like suspend, and I am no expert on hibernation, but as far as I understand your boot settings have to be correct for it to work. On the entry you use hibernation and then restart you must have the correct "resume=/dev/xxx" boot prompt for it to work. I think.
 
Old 11-15-2018, 06:36 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
Quote:
Originally Posted by zeebra View Post
On the entry you use hibernation and then restart you must have the correct "resume=/dev/xxx" boot prompt for it to work. I think.
Correct. The partition that is used for the dump is your swap partition, so that is what you have to give as the "resume" device. Also it must be big enough to hold a complete memory image. Your machine seems to be rebooting rather than resuming so maybe you have specified the wrong device. dmesg should say what partition the kernel was trying to resume from.

Last edited by hazel; 11-15-2018 at 06:38 AM.
 
Old 11-15-2018, 07:27 AM   #7
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,376

Rep: Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756Reputation: 2756
I suspect that you are in the same boat as me. I used to be able to suspend to disk and resume on an old netbook that I use. Somewhere between kernel 4.14.56 and 4.14.62, a regression occurred in the kernel, so that the resume proceeds until the image is restored, but then the screen goes blank and the system reboots.
The problem is likely to be a hardware quirk, but I have not felt motivated to do the kernel git bisect to isolate the problem.
My advice, try kernel 4.14.56 to see if the the problem is resolved.
 
Old 11-15-2018, 09:35 AM   #8
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
Quote:
Originally Posted by hazel View Post
Correct. The partition that is used for the dump is your swap partition, so that is what you have to give as the "resume" device. Also it must be big enough to hold a complete memory image. Your machine seems to be rebooting rather than resuming so maybe you have specified the wrong device. dmesg should say what partition the kernel was trying to resume from.
I also guess it cannot be encrypted.. As there is no way for GRUB to decrypt a partition..

And yes, if the "resume=dev/xxx" is not correct, the system will just restart your distribution, right.. Is it always the swap partition?

Last edited by zeebra; 11-15-2018 at 09:38 AM.
 
Old 11-15-2018, 09:57 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,613
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
I think it has to be either a swap partition or a swap file.
 
Old 11-15-2018, 11:09 AM   #10
zeebra
Senior Member
 
Registered: Dec 2011
Distribution: Slackware
Posts: 1,833
Blog Entries: 17

Rep: Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640Reputation: 640
I think we gave OP a few things to think about here.. Maybe enough to get this situation resolved. Let's hope so!
 
  


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
LXer: Restore Running Applications after Hibernation in Ubuntu LXer Syndicated Linux News 0 10-31-2018 11:11 AM
[SOLVED] connection to pulseaudio failed automatic retry in 5s after resuming from hibernation nitecrawler Slackware 2 01-22-2017 12:59 PM
Hibernation file / resuming "difficulties" yogo1212 Linux - General 1 10-15-2013 09:29 AM
Touchpad not working after resuming back from suspend/hibernation nelufarup Fedora 3 02-19-2010 04:10 PM
Resuming from hibernation FC5 dycotiles Fedora 2 06-27-2006 08:19 AM

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

All times are GMT -5. The time now is 06:23 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
Open Source Consulting | Domain Registration