LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-06-2013, 01:55 PM   #1
tuxboom747
LQ Newbie
 
Registered: May 2011
Posts: 19

Rep: Reputation: 10
jessie: hibernate does'nt work, though suspend does


hello there, I've a problem with hibernating the system, while s2ram works fine though using options -m (VBEMode) and -f (force). My system is a Gigabyte F2A75M-D3H with an AMD FM2 Socket ticked by an A6-5400K (3.6 GHz) APU. The APU has an integrated AMD Radeon HD 8000/7000-series graphics card, which I do not use, enstead I use my NVidia card & prop. driver. System: uname -a on Debian testing gives:
Code:
Linux tuxbox 3.10-3-amd64 #1 SMP Debian 3.10.11-1 (2013-09-10) x86_64 GNU/Linux
hibernate & uswsusp packages installed and setup as follows: ** /etc/default/grub: (modified lines only)
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet nosplash resume=UUID=42ec977e-9cd6-4f4a-8b4c-80a213835670"
** /etc/initramfs-tools/conf.d/resume:
Code:
UUID=42ec977e-9cd6-4f4a-8b4c-80a213835670
** /etc/hibernate/common.conf: (modified lines only)
Code:
Verbosity 0  LogFile /var/log/hibernate.log  LogVerbosity 1  LogTimestamp yes  # AlwaysForce yes  # AlwaysKill yes  HibernateVT 7  Distribution debian  # XDisplay :0   ### clock  SaveClock restore-only  #DirectIsa  ### diskcache  DisableWriteCacheOn /dev/sda /dev/sdb  ### hardware_tweaks  # IbmAcpi yes  # RadeonTool yes  # Runi915resolution yes  FullSpeedCPU yes  ### lock (generally you only want one of the following options)  # LockConsoleAs root  LockXScreenSaver yes  # LockGnomeScreenSaver yes  # LockFreedesktop  # LockKDE yes  # LockXLock yes  # LockXAutoLock yes  # LockXtrLock yes  ### modules  # UnloadModules snd_via82cxxx usb-ohci  # UnloadAllModules yes UnloadBlacklistedModules yes LoadModules auto # LoadModulesFromFile /etc/modules  ### vbetool EnableVbetool yes  # RestoreVbeStateFrom /var/lib/vbetool/vbestate  VbetoolPost yes  # RestoreVCSAData yes  ### xhacks  SwitchToTextMode yes  # UseDummyXServer yes  # DummyXServerConfig xorg-dummy.conf  ### xstatus # XStatus gnome  # XmessageDisable yes  XSuspendText Preparing to suspend...  XResumeText Resuming from suspend...   ### SSH and PGP keys  AgentsClearGPG yes  AgentsClearSSH yes
** /etc/hibernate/hibernate.conf:
Code:
TryMethod disk.conf TryMethod ram.conf
** /etc/hibernate/ususpend-disk.conf:
Code:
USuspendMethod disk Include common.conf
** /etc/hibernate/ususpend-ram.conf:
Code:
USuspendMethod ram  USuspendRamForce yes  USuspendRamVbeMode yes  USuspendRamVbePost yes  USuspendRamAcpiSleep 3 Include common.conf
** /etc/hibernate/{disk,ram}.conf
Code:
TryMethod ususpend-{disk,ram}.conf  TryMethod sysfs-{disk,ram}.conf
So, I ran
Code:
update-grub update-initramfs -u -k all
Now trying to suspend to disk everything seems to be halted and then the message
Code:
s2disk: snapshotting system
is shown and nothing else happens afterwards. Also: there's no /var/log/hibernate.log file. Could anyone tell me what I'm doing wrong? Thanks in advance
 
Old 10-06-2013, 03:16 PM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
confirm the UUID matches your swap

Code:
sudo lsblk -o NAME,SIZE,UUID,FSTYPE
if not , amend (Note size should be at least that of your ram )
then update your initramfs
Code:
sudo update-initramfs -u
 
Old 10-06-2013, 03:46 PM   #3
tuxboom747
LQ Newbie
 
Registered: May 2011
Posts: 19

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by Firerat View Post
confirm the UUID matches your swap

Code:
sudo lsblk -o NAME,SIZE,UUID,FSTYPE
if not , amend (Note size should be at least that of your ram )
then update your initramfs
Code:
sudo update-initramfs -u
Thanks for your response! yes, that the UUID is correct. I checked this more than once. I have two swap spaces on different disk, as I have five Linux OSes but it worked some times ago. I installed a new system (this one) and now it hangs as mentioned. Of course grub and ramfs are updated. I wonder when updating initramfs this message from cryptsetup is shown:
Code:
 cryptsetup: WARNING: found more than one resume device candidate:                      62a9ba15-bf93-4f4d-97c6-cb2ac76ff5ce                      42ec977e-9cd6-4f4a-8b4c-80a213835670
Any idears? EDIT: Somewhere I had read about /sys/power/disk is on '[platform]' which is the default, and needs to changed to [disk]. Can not find it and do not know how to change that entry.

Last edited by tuxboom747; 10-06-2013 at 03:56 PM.
 
Old 10-06-2013, 05:17 PM   #4
tuxboom747
LQ Newbie
 
Registered: May 2011
Posts: 19

Original Poster
Rep: Reputation: 10
Quote:
/sys/power/disk is on '[platform]' which is the default, and needs to changed to [disk]
this is solved by
Code:
echo shutdown > /sys/power/disk
playing on the other issue...
 
  


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
Has anyone been able to get suspend/hibernate to work with Nvidia Optimus? Captain Obvious Linux - Hardware 4 01-06-2012 12:47 AM
Hibernate/Suspend doesn't work ibrahim52 Linux - Newbie 14 08-10-2011 08:39 PM
Need to suspend or hibernate fletcher08 Linux - Newbie 1 04-18-2010 10:24 AM
Xfce 4.6 Suspend and Hibernate Function does not work properly with my notebook. phys Slackware 2 03-09-2009 05:46 PM
Boot from USB key, does suspend or hibernate work? paulsiu Linux - Hardware 1 05-02-2008 02:34 PM

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

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