LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-10-2013, 02:27 AM   #1
Lop3
LQ Newbie
 
Registered: Aug 2013
Distribution: Mint with Mate
Posts: 27

Rep: Reputation: Disabled
Question Resume (from suspend) only works 95% of the time


I installed Linux Mint Mate 15 x64 (based on Ubuntu 13.04) choosing the "encrypt home dir" option.
So my swap is encrypted as well. (configured automatically by the installation)

Challenge
Sometimes when I try resume the laptop's screen doesn't turn on. Resume from suspend only works 95% of the time.
Moving the mouse and pressing any buttons (incl function keys) does nothing. I have to do a hard power off.

===========================================================

Investigating Resume Settings
(I have obfuscated my UUID's below, using a different letter for each unique UUID)
[0] % cat /etc/initramfs-tools/conf.d/resume
RESUME=UUID=A

[0] % sudo blkid
/dev/mapper/cryptswap1: UUID="B" TYPE="swap"

as you can see the UUID in my resume file does not match my cryptswap1 UUID. (neither does it match any of my volumes listed by blkid)

I ran the command "ls -l /dev/disk/by-uuid" and the UUID specified by the resume doesn't match any of my disks.
I'm unable to get the blkid (using the blkid command) for the partition that the cryptswap1 partition is on, while the cryptswap is mounted.

[0] % cat /etc/fstab
#UUID=C none swap sw 0 0
/dev/mapper/cryptswap1 none swap sw 0 0

Okay, now I'm really confused. None of these UUIDs match.
===========================================================

My swap also disappeared recently on one occasion.
After a fresh boot (or when suspend/resume works properly), "free -m" reports many GB of free swap space.
I have suspended and resumed a few times today without problems. My swap is still intact. (shown by free -m)
 
Old 10-10-2013, 02:57 AM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,203

Rep: Reputation: 292Reputation: 292Reputation: 292
Suspend works by putting the OS state in RAM, not in swap, while hibernate uses swap. Sometimes the word suspend is used for either.

Which are you actually using?
 
Old 10-10-2013, 03:49 AM   #3
Lop3
LQ Newbie
 
Registered: Aug 2013
Distribution: Mint with Mate
Posts: 27

Original Poster
Rep: Reputation: Disabled
I am definitely not hibernating.
Mint Mate x64 has two distinct options "Suspend" and "Hibernate".
When I said suspend, I mean "Suspend".

---------
Out of interest...
Hibernation is not even possible with a standard installation where the swap is encrypted.
The reason for that is the swap volume is mounted with a randomized encryption key on every boot.
There is a hack to type in a password on boot to use the same swap encryption key every time, but I've not tried that yet, and so hibernation is not available to me.
 
Old 10-10-2013, 05:06 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,203

Rep: Reputation: 292Reputation: 292Reputation: 292
Quote:
Originally Posted by Lop3 View Post
I am definitely not hibernating.
Mint Mate x64 has two distinct options "Suspend" and "Hibernate".
When I said suspend, I mean "Suspend".
Then in that case all the info you provided about resume settings wouldn't affect the problem. Like I said, suspend works by using RAM, so it's that that you need to investigate.

How does manually activating suspend work for you? I mean by actually typing

echo -n mem > /sys/power/state

in a console. Is it more successful?
 
  


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
Long resume time (from suspend) with AMD Fusion DavidBanner Linux - General 1 07-09-2012 07:01 AM
[SOLVED] kernel 3.3rc2 - imon_mce not working on boot but WORKS after Suspend and Resume rodercot Linux - Hardware 3 02-03-2012 02:13 PM
Suspend Works But Resume Fails on Fedora 10 eegerda Linux - Laptop and Netbook 11 09-28-2009 02:02 AM
Lenovo Thinkpad T61p - Takes a long time to resume from suspend kwesadilo Linux - Laptop and Netbook 5 07-26-2008 12:53 PM
Suspend to disk in opensuse 11.0 works but resume loses the router. petermcp Suse/Novell 2 06-26-2008 07:06 AM


All times are GMT -5. The time now is 03:26 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration