LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-15-2018, 04:43 AM   #16
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by ferrari View Post
To get hardware and driver info use
Code:
sudo lspci -nnk | grep -EA2 'VGA|Display'
Here it is:
Code:
michele@michele-ubuntu:~$ sudo lspci -nnk | grep -EA2 'VGA|Display'
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09)
	Subsystem: Hewlett-Packard Company 2nd Generation Core Processor Family Integrated Graphics Controller [103c:3389]
	Kernel driver in use: i915
--
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6730M/6770M/7690M XT] [1002:6740] (rev ff)
	Kernel driver in use: radeon
	Kernel modules: radeon
 
Old 01-15-2018, 04:48 AM   #17
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
I'm not an Ubunu user, but just in case the following is helpful to you:
https://help.ubuntu.com/community/Hy...FWake_Freezing
Suggest me to follow the section Fix Suspend/Wake Freezing at that link? Is valid for hibernation too?
 
Old 01-15-2018, 04:53 AM   #18
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
It may well be a kernel regression.
You mean that the recent update have installed an update for the kernel and this may have caused the problem? I am afraid to handle kernel and back to a previous version (if necessary). I would not want to mess up
 
Old 01-15-2018, 01:30 PM   #19
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
Suggest me to follow the section Fix Suspend/Wake Freezing at that link? Is valid for hibernation too?
Yes, if you read the page (or the code), you'll see that it's valid for suspending and hibernating. (Whether it will help here or not I do not know.)
 
1 members found this post helpful.
Old 01-15-2018, 01:41 PM   #20
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Quote:
You mean that the recent update have installed an update for the kernel and this may have caused the problem? I am afraid to handle kernel and back to a previous version (if necessary). I would not want to mess up
If you search online with something like "ubuntu how to boot old kernel", you'll turn up lots of pages and youtube videos describing how to do this. Here's a couple of pages to start with
http://karlcode.owtelse.com/blog/201...evious-kernel/
https://askubuntu.com/questions/7642...-default-16-04
 
1 members found this post helpful.
Old 01-15-2018, 01:55 PM   #21
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Yes, if you read the page (or the code), you'll see that it's valid for suspending and hibernating. (Whether it will help here or not I do not know.)
Unfortunately, after following the method on that page, I still got the problem.
 
Old 01-15-2018, 02:02 PM   #22
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
A bug report might be your best course of action here.
 
1 members found this post helpful.
Old 01-15-2018, 02:06 PM   #23
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
A bug report might be your best course of action here.
How to get it?
 
Old 01-15-2018, 02:08 PM   #24
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
Here you go...
https://help.ubuntu.com/community/ReportingBugs
 
Old 01-15-2018, 02:11 PM   #25
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
Thanks. As soon as possible I will try. Is something new for me.
 
Old 01-16-2018, 01:23 AM   #26
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
hold the horses for a second!!!

Quote:
Originally Posted by michele_deb View Post
So, swap size is:
Code:
free -h
              total        used        free      shared  buff/cache   available
Mem:           7,7G        1,1G        5,5G        236M        1,1G        6,1G
Swap:          7,6G          0B        7,6G
why is your swap size 7.6G, when your physical memory is 7.7G?
afaiu, hibernate needs a swap size at least the same size as physical RAM!!! (please re-read the ubuntu article to get more definite advice on this)
fixing that will be tricky; you have to boot live and resize the swap partition, likely make more space by shrinking another partition first.
but i think you should have a closer look at this before filing a bug.
 
Old 01-16-2018, 02:40 AM   #27
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
hold the horses for a second!!!


why is your swap size 7.6G, when your physical memory is 7.7G?
afaiu, hibernate needs a swap size at least the same size as physical RAM!!! (please re-read the ubuntu article to get more definite advice on this)
fixing that will be tricky; you have to boot live and resize the swap partition, likely make more space by shrinking another partition first.
but i think you should have a closer look at this before filing a bug.
You are right ondoho! (I have just read here https://help.ubuntu.com/community/SwapFaq).
Please, can you send me a "safely" way to resize my swap partition? A link to a page or a clear procedure.
Thanks a lot.
 
Old 01-16-2018, 04:35 AM   #28
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,842

Rep: Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148Reputation: 1148
I'm not convinced that is a real issue here. I have a Toshiba laptop with 4GB RAM and 2GB swap partition. I don't normally hibernate the machine, but I've had no issues when I do, and that is because the used memory is nowhere near the swap size generally. The OP's machine is nearly 1:1 anyway, and the symptoms suggest something else.

Quote:
About swap partition/file size

Even if your swap partition is smaller than RAM, you still have a big chance of hibernating successfully. According to kernel documentation:

/sys/power/image_size controls the size of the image created by the suspend-to-disk mechanism. It can be written a string representing a non-negative integer that will be used as an upper limit of the image size, in bytes. The suspend-to-disk mechanism will do its best to ensure the image size will not exceed that number. However, if this turns out to be impossible, it will try to suspend anyway using the smallest image possible. In particular, if "0" is written to this file, the suspend image will be as small as possible. Reading from this file will display the current image size limit, which is set to 2/5 of available RAM by default.

You may either decrease the value of /sys/power/image_size to make the suspend image as small as possible (for small swap partitions), or increase it to possibly speed up the hibernation process.

See Systemd#Temporary files to make this change persistent.
https://wiki.archlinux.org/index.php...on.2Ffile_size
 
Old 01-16-2018, 08:47 AM   #29
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ferrari View Post
I'm not convinced that is a real issue here. I have a Toshiba laptop with 4GB RAM and 2GB swap partition. I don't normally hibernate the machine, but I've had no issues when I do, and that is because the used memory is nowhere near the swap size generally. The OP's machine is nearly 1:1 anyway, and the symptoms suggest something else.



https://wiki.archlinux.org/index.php...on.2Ffile_size
According to the table on this page https://help.ubuntu.com/community/Sw...p_do_I_need.3F for a machine with 8GB of mem a swap size of 11GB is required.

Quote:
/sys/power/image_size controls the size of the image created by the suspend-to-disk mechanism.
The current value in file image_size is: 3302166528 (just this value)=2/5 of RAM size!

Last edited by michele_deb; 01-16-2018 at 09:26 AM.
 
Old 01-16-2018, 09:50 AM   #30
michele_deb
Member
 
Registered: Feb 2017
Location: Naples (Italy)
Distribution: Ubuntu 16.04 LTS
Posts: 85

Original Poster
Rep: Reputation: Disabled
Guys,
in a discussion I opened some days ago, on ask Ubuntu, a user wrote to me that the problem I encountered seem to be a bug, as reported here:https://bugs.launchpad.net/ubuntu/+s...4?comments=all. Solution is to downgrade to kernel version 4.10.0-42-generic, but, in this case, I'll lose patch for Meltdown and some Spectre mitigations.
So, I think the best I can do is to disable hibernation (keeping only suspension). You know how to do it?
Thanks to all.
 
  


Reply

Tags
hibernation, resume



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] What happens to the kernel when you resume from hibernation? hazel Linux - Kernel 13 04-27-2017 09:40 AM
unable to resume after hibernation rupeshforu Linux - Hardware 2 07-06-2013 04:42 PM
Network Can't be reloaded after resume from hibernation snowweb Linux - Networking 2 09-16-2012 09:53 PM
Ubuntu 11.10 - problems with hibernation, resume from it firekage Ubuntu 2 05-27-2012 04:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 09:32 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